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 EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
EOKeyValueCoding._BestBindingCreation, EOKeyValueCoding._KeyBindingCreation, EOKeyValueCoding._StoredForwardingBinding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.ValidationException
_EOPrivateMemento.DefaultImplementation
_primaryKey, _touchSource, insertionStackTrace
_CLASS
__readOnly
applyRestrictingQualifierOnInsert, 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
_CLASS
_KeyPathSeparatorChar, KeyPathSeparator
NullValue
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(EOEditingContext editingContext)
Checks the editing context delegate before calling super's
implementation.
|
void |
awakeFromInsertion(EOEditingContext editingContext)
Checks the editing context delegate before calling super's
implementation.
|
void |
delete()
Implementation of
ERXGuardedObjectInterface . |
void |
didDelete(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(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(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, willRead
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping
takeValueForKeyPath, valueForKeyPath
storedValueForKey
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
validateClientUpdate, validateForDelete
clearFault, faultHandler, isFault, turnIntoFault, willRead
public 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 NSKeyValueCoding
valueForKey
in class EOCustomObject
public void delete()
ERXGenericRecord
ERXGuardedObjectInterface
. 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 ERXGuardedObjectInterface
delete
in class ERXGenericRecord
public void mightDelete()
ERXEnterpriseObject
mightDelete
in interface ERXEnterpriseObject
mightDelete
in class ERXGenericRecord
public void willDelete() throws NSValidation.ValidationException
ERXEnterpriseObject
validateForDelete
is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate
.willDelete
in interface ERXEnterpriseObject
willDelete
in class ERXGenericRecord
NSValidation.ValidationException
- to stop the object
from being deleted.public void willInsert()
ERXEnterpriseObject
validateForInsert
is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate
.willInsert
in interface ERXEnterpriseObject
willInsert
in class ERXGenericRecord
public void willUpdate()
ERXEnterpriseObject
validateForSave
is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate
.willUpdate
in interface ERXEnterpriseObject
willUpdate
in class ERXGenericRecord
public void didDelete(EOEditingContext ec)
ERXEnterpriseObject
ec
is a child context when doing something here that
can't be undone.didDelete
in interface ERXEnterpriseObject
didDelete
in class ERXGenericRecord
ec
- editing context that used to be associated
with the object.public void didUpdate()
ERXEnterpriseObject
didUpdate
in interface ERXEnterpriseObject
didUpdate
in class ERXGenericRecord
public void didInsert()
ERXEnterpriseObject
didInsert
in interface ERXEnterpriseObject
didInsert
in class ERXGenericRecord
public void willRevert()
ERXEnterpriseObject
willRevert
in interface ERXEnterpriseObject
willRevert
in class ERXGenericRecord
public void didRevert(EOEditingContext ec)
ERXEnterpriseObject
flushCaches
.didRevert
in interface ERXEnterpriseObject
didRevert
in class ERXGenericRecord
ec
- 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(EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromInsertion
in interface EOEnterpriseObject
awakeFromInsertion
in class ERXGenericRecord
editingContext
- to be checked to make sure it has the correct type of delegate
set.protected void init(EOEditingContext editingContext)
ERXGenericRecord
awakeFromInsertions
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 ERXGenericRecord
editingContext
- the EOEditingContext in which this new EO is insertedpublic void awakeFromFetch(EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromFetch
in interface EOEnterpriseObject
awakeFromFetch
in class ERXGenericRecord
editingContext
- to be checked to make sure it has the correct type of delegate
set.protected Object _validateValueForKey(Object value, String key) throws NSValidation.ValidationException
_validateValueForKey
in class ERXGenericRecord
NSValidation.ValidationException
public Object validateTakeValueForKeyPath(Object value, String keyPath) throws NSValidation.ValidationException
validateTakeValueForKeyPath
in interface NSValidation
validateTakeValueForKeyPath
in class EOCustomObject
NSValidation.ValidationException
public void validateForSave() throws NSValidation.ValidationException
ERXGenericRecord
validateForSave
in interface EOValidation
validateForSave
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void validateForInsert() throws NSValidation.ValidationException
ERXGenericRecord
validateForInsert
in interface EOValidation
validateForInsert
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void validateForUpdate() throws NSValidation.ValidationException
ERXGenericRecord
validateForUpdate
in interface EOValidation
validateForUpdate
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.Copyright © 2002 – 2024 Project Wonder.