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.TouchingBinding
EOGenericRecord._DictionaryBinding, EOGenericRecord._LazyDictionaryBinding
EOCustomObject._BooleanFieldBinding, EOCustomObject._FieldBinding, EOCustomObject._LazyFieldBinding, EOCustomObject._NumberFieldBinding
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding
com.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
__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
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, 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
handleTakeValueForUnboundKey, unableToSetNullForKey
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey
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 com.webobjects.foundation.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 com.webobjects.foundation.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(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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(com.webobjects.eocontrol.EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromInsertion
in interface com.webobjects.eocontrol.EOEnterpriseObject
awakeFromInsertion
in class ERXGenericRecord
editingContext
- to be checked to make sure it has the correct type of delegate
set.protected void init(com.webobjects.eocontrol.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(com.webobjects.eocontrol.EOEditingContext editingContext)
ERXGenericRecord
_checkEditingContextDelegate
for an explanation as to what this check does.awakeFromFetch
in interface com.webobjects.eocontrol.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 com.webobjects.foundation.NSValidation.ValidationException
_validateValueForKey
in class ERXGenericRecord
com.webobjects.foundation.NSValidation.ValidationException
public Object validateTakeValueForKeyPath(Object value, String keyPath) throws com.webobjects.foundation.NSValidation.ValidationException
validateTakeValueForKeyPath
in interface com.webobjects.foundation.NSValidation
validateTakeValueForKeyPath
in class EOCustomObject
com.webobjects.foundation.NSValidation.ValidationException
public void validateForSave() throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecord
validateForSave
in interface com.webobjects.eocontrol.EOValidation
validateForSave
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void validateForInsert() throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecord
validateForInsert
in interface com.webobjects.eocontrol.EOValidation
validateForInsert
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.public void validateForUpdate() throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecord
validateForUpdate
in interface com.webobjects.eocontrol.EOValidation
validateForUpdate
in class ERXGenericRecord
NSValidation.ValidationException
- if the object does not pass validation for saving to the
database.Copyright © 2002 – 2020 Project Wonder.