public class ERXPartialGenericRecord extends ERXGenericRecord
package.html in
er.extensions.partials.
ERXPartialGenericRecord is the base class of any entity that allows
itself to be extended with partials.
ERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBindingEOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBindingEOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBindingERXEnterpriseObject.Observer, ERXEnterpriseObject.Processorcom.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utilitycom.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBindingcom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor_primaryKey, _touchSource, insertionStackTrace_CLASS__readOnlyapplyRestrictingQualifierOnInsert, DidDeleteProcessor, DidInsertProcessor, DidRevertProcessor, DidUpdateProcessor, FlushCachesProcessor, insertionTrackingLog, KEY_MARKER, log, logMod, tranLogDidDelete, tranLogDidInsert, tranLogDidRevert, tranLogDidUpdate, tranLogMightDelete, tranLogWillDelete, tranLogWillInsert, tranLogWillRevert, tranLogWillUpdate, validation, validationException, WillDeleteProcessor, WillInsertProcessor, WillRevertProcessor, WillUpdateProcessor| Constructor and Description |
|---|
ERXPartialGenericRecord() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ERXPartial> |
_partials() |
NSDictionary<Class,ERXPartial> |
_partialsDictionary() |
protected Object |
_validateValueForKey(Object value,
String key) |
void |
awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
Checks the editing context delegate before calling super's
implementation.
|
void |
awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
Checks the editing context delegate before calling super's
implementation.
|
void |
delete()
Implementation of
ERXGuardedObjectInterface. |
void |
didDelete(com.webobjects.eocontrol.EOEditingContext ec)
Called on the object after is has been deleted.
|
void |
didInsert()
Called on the object after is has successfully
been inserted into the database.
|
void |
didRevert(com.webobjects.eocontrol.EOEditingContext ec)
Called on the object after it has been reverted.
|
void |
didUpdate()
Called on the object after is has successfully
been updated in the database.
|
protected void |
init(com.webobjects.eocontrol.EOEditingContext editingContext)
used for initialization stuff instead of awakeFromInsertion.
|
void |
mightDelete()
Called as part of the augmented transaction process.
|
<U extends ERXPartial> |
partialForClass(Class<U> partialClass)
Returns the ERXPartial partial implementation for the given partial type.
|
void |
validateForInsert()
Calls up validateForInsert() on the class description if it supports it.
|
void |
validateForSave()
This method performs a few checks before invoking super's implementation.
|
void |
validateForUpdate()
Calls up validateForUpdate() on the class description if it supports it.
|
Object |
validateTakeValueForKeyPath(Object value,
String keyPath) |
Object |
valueForKey(String key) |
void |
willDelete()
Called as part of the augmented transaction process.
|
void |
willInsert()
Called as part of the augmented transaction process.
|
void |
willRevert()
Called on the object before it will be reverted.
|
void |
willUpdate()
Called as part of the augmented transaction process.
|
_otherStorageBinding, _setPrimaryKeyDictionary, _setUpdateInverseRelationships, _setValueForPrimaryKey, _updateInverseRelationships, addObjectsToBothSidesOfRelationshipWithKey, addObjectToBothSidesOfRelationshipWithKey, applyRestrictingQualifierOnInsert, awakeFromClientUpdate, batchFaultingRelationshipName, batchFaultingSourceGlobalID, batchFaultingTimeStamp, canDelete, canUpdate, changesFromCommittedSnapshot, checkMatchingEditingContexts, clearProperties, committedSnapshot, committedSnapshotValueForKey, committedSnapshotValueForKey, didCopyFromChildInEditingContext, encryptedPrimaryKey, entity, excludeObjectFromPropertyWithKey, flushCaches, foreignKeyForRelationshipWithKey, getClassLog, handleQueryWithUnboundKey, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshot, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotFromValueToNewValue, hasKeyChangedFromCommittedSnapshotToValue, hasKeyChangedFromCommittedSnapshotToValue, includeObjectIntoPropertyWithKey, isDeletedEO, isNewObject, isNonNull, isUpdatedObject, isValidatedWhenNested, localesForKey, localInstanceIn, localInstanceOf, localInstancesOf, localizationShouldFallbackToDefaultLanguage, localizedKey, parentObjectStoreIsObjectStoreCoordinator, permanentGlobalID, permanentGlobalID, primaryKey, primaryKeyAttributeNames, primaryKeyInTransaction, rawPrimaryKey, rawPrimaryKeyDictionary, rawPrimaryKeyInTransaction, refetchObjectFromDB, refetchObjectFromDBinEditingContext, removeObjectsFromBothSidesOfRelationshipWithKey, removeObjectsFromPropertyWithKey, self, setBatchFaultingTimestamp, setValidatedWhenNested, shouldSkipValidateForSave, shouldTrimSpaces, takeStoredValueForKey, takeValueForKey, takeValueForKey, toLongString, toString, touchFromBatchFaultingSource, trimSpaces, updateFromSnapshot, validateValueForKey, valueForKey, willReadRelationship__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _methodKeyGetBinding, _methodKeySetBinding, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, turnIntoFault, unableToSetNullForKey, userPresentableDescription, validateClientUpdate, validateForDelete, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willReadclone, finalize, getClass, notify, notifyAll, wait, wait, waitallPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChangetakeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMappingtakeValueForKeyPath, valueForKeyPathhandleTakeValueForUnboundKey, unableToSetNullForKeyaddObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKeypublic NSDictionary<Class,ERXPartial> _partialsDictionary()
public Collection<ERXPartial> _partials()
public <U extends ERXPartial> U partialForClass(Class<U> partialClass)
U - the partial typepartialClass - the partial typepublic Object valueForKey(String key)
valueForKey in interface com.webobjects.foundation.NSKeyValueCodingvalueForKey in class EOCustomObjectpublic void delete()
ERXGenericRecordERXGuardedObjectInterface. This is used to
work around a bug in EOF that doesn't refresh the relationship in the
parent editingContext for the object.delete in interface ERXGuardedObjectInterfacedelete in class ERXGenericRecordpublic void mightDelete()
ERXEnterpriseObjectmightDelete in interface ERXEnterpriseObjectmightDelete in class ERXGenericRecordpublic void willDelete()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXEnterpriseObjectvalidateForDelete is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willDelete in interface ERXEnterpriseObjectwillDelete in class ERXGenericRecordNSValidation.ValidationException - to stop the object
from being deleted.public void willInsert()
ERXEnterpriseObjectvalidateForInsert is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willInsert in interface ERXEnterpriseObjectwillInsert in class ERXGenericRecordpublic void willUpdate()
ERXEnterpriseObjectvalidateForSave is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willUpdate in interface ERXEnterpriseObjectwillUpdate in class ERXGenericRecordpublic void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectec
is a child context when doing something here that
can't be undone.didDelete in interface ERXEnterpriseObjectdidDelete in class ERXGenericRecordec - editing context that used to be associated
with the object.public void didUpdate()
ERXEnterpriseObjectdidUpdate in interface ERXEnterpriseObjectdidUpdate in class ERXGenericRecordpublic void didInsert()
ERXEnterpriseObjectdidInsert in interface ERXEnterpriseObjectdidInsert in class ERXGenericRecordpublic void willRevert()
ERXEnterpriseObjectwillRevert in interface ERXEnterpriseObjectwillRevert in class ERXGenericRecordpublic void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectflushCaches.didRevert in interface ERXEnterpriseObjectdidRevert in class ERXGenericRecordec - editing context that is either currently associated
with the object if the object was marked as changed or deleted before
the revert, otherwise the editing context that was associated with the object
before the revert.public void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromInsertion in interface com.webobjects.eocontrol.EOEnterpriseObjectawakeFromInsertion in class ERXGenericRecordeditingContext - to be checked to make sure it has the correct type of delegate
set.protected void init(com.webobjects.eocontrol.EOEditingContext editingContext)
ERXGenericRecordawakeFromInsertions is buggy because if an EO is deleted
and then its EOEditingContext is reverted using 'revert' for example then
EOF will -insert- this EO again in its EOEditingContext which in turn
calls awakeFromInsertion again.init in class ERXGenericRecordeditingContext - the EOEditingContext in which this new EO is insertedpublic void awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromFetch in interface com.webobjects.eocontrol.EOEnterpriseObjectawakeFromFetch in class ERXGenericRecordeditingContext - to be checked to make sure it has the correct type of delegate
set.protected Object _validateValueForKey(Object value, String key) throws com.webobjects.foundation.NSValidation.ValidationException
_validateValueForKey in class ERXGenericRecordcom.webobjects.foundation.NSValidation.ValidationExceptionpublic Object validateTakeValueForKeyPath(Object value, String keyPath) throws com.webobjects.foundation.NSValidation.ValidationException
validateTakeValueForKeyPath in interface com.webobjects.foundation.NSValidationvalidateTakeValueForKeyPath in class EOCustomObjectcom.webobjects.foundation.NSValidation.ValidationExceptionpublic void validateForSave()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecordvalidateForSave in interface com.webobjects.eocontrol.EOValidationvalidateForSave in class ERXGenericRecordNSValidation.ValidationException - if the object does not pass validation for saving to the
database.public void validateForInsert()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecordvalidateForInsert in interface com.webobjects.eocontrol.EOValidationvalidateForInsert in class ERXGenericRecordNSValidation.ValidationException - if the object does not pass validation for saving to the
database.public void validateForUpdate()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecordvalidateForUpdate in interface com.webobjects.eocontrol.EOValidationvalidateForUpdate in class ERXGenericRecordNSValidation.ValidationException - if the object does not pass validation for saving to the
database.Copyright © 2002 – 2020 Project Wonder.