|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eocontrol.EOCustomObject
com.webobjects.eocontrol.EOGenericRecord
er.extensions.eof.ERXGenericRecord
er.extensions.partials.ERXPartialGenericRecord
public class ERXPartialGenericRecord
For overview information on partials, read the package.html in er.extensions.partials.
ERXPartialGenericRecord is the base class of any entity that allows itself to be extended with partials.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class er.extensions.eof.ERXGenericRecord |
---|
ERXGenericRecord.ERXGenericRecordClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>, ERXGenericRecord.InverseRelationshipUpdater, ERXGenericRecord.LocalizedBinding, ERXGenericRecord.TouchingBinding |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
com.webobjects.eocontrol.EOGenericRecord._DictionaryBinding, com.webobjects.eocontrol.EOGenericRecord._LazyDictionaryBinding |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOCustomObject |
---|
com.webobjects.eocontrol.EOCustomObject._BooleanFieldBinding, com.webobjects.eocontrol.EOCustomObject._FieldBinding, com.webobjects.eocontrol.EOCustomObject._LazyFieldBinding, com.webobjects.eocontrol.EOCustomObject._NumberFieldBinding |
Nested classes/interfaces inherited from interface er.extensions.eof.ERXEnterpriseObject |
---|
ERXEnterpriseObject.Observer, ERXEnterpriseObject.Processor |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
---|
com.webobjects.eocontrol.EOKeyValueCodingAdditions.DefaultImplementation, com.webobjects.eocontrol.EOKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
---|
com.webobjects.eocontrol.EOKeyValueCoding._BestBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._KeyBindingCreation, com.webobjects.eocontrol.EOKeyValueCoding._StoredForwardingBinding |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.ValidationException |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol._EOPrivateMemento |
---|
com.webobjects.eocontrol._EOPrivateMemento.DefaultImplementation |
Field Summary |
---|
Fields inherited from class er.extensions.eof.ERXGenericRecord |
---|
_primaryKey, _touchSource, insertionStackTrace |
Fields inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
_CLASS |
Fields inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
---|
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
_KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
---|
NullValue |
Constructor Summary | |
---|---|
ERXPartialGenericRecord()
|
Method Summary | ||
---|---|---|
java.util.Collection<ERXPartial> |
_partials()
|
|
com.webobjects.foundation.NSDictionary<java.lang.Class,ERXPartial> |
_partialsDictionary()
|
|
protected java.lang.Object |
_validateValueForKey(java.lang.Object value,
java.lang.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. |
|
void |
mightDelete()
Called as part of the augmented transaction process. |
|
|
partialForClass(java.lang.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. |
|
java.lang.Object |
validateTakeValueForKeyPath(java.lang.Object value,
java.lang.String keyPath)
|
|
java.lang.Object |
valueForKey(java.lang.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. |
Methods inherited from class com.webobjects.eocontrol.EOGenericRecord |
---|
__setClassDescription, _keyGetBindingForKey, _keySetBindingForKey, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, classDescription, usesDeferredFaultCreation |
Methods inherited from class com.webobjects.eocontrol.EOCustomObject |
---|
__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, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, inverseForRelationshipKey, invokeRemoteMethod, isFault, 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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webobjects.eocontrol.EOEnterpriseObject |
---|
allPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, userPresentableDescription, willChange |
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCodingAdditions |
---|
takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMapping |
Methods inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
takeValueForKeyPath, valueForKeyPath |
Methods inherited from interface com.webobjects.eocontrol.EOKeyValueCoding |
---|
storedValueForKey |
Methods inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
---|
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey |
Methods inherited from interface com.webobjects.eocontrol.EORelationshipManipulation |
---|
addObjectToPropertyWithKey, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey |
Methods inherited from interface com.webobjects.eocontrol.EOValidation |
---|
validateClientUpdate, validateForDelete |
Methods inherited from interface com.webobjects.eocontrol.EOFaulting |
---|
clearFault, faultHandler, isFault, turnIntoFault, willRead |
Constructor Detail |
---|
public ERXPartialGenericRecord()
Method Detail |
---|
public com.webobjects.foundation.NSDictionary<java.lang.Class,ERXPartial> _partialsDictionary()
public java.util.Collection<ERXPartial> _partials()
public <U extends ERXPartial> U partialForClass(java.lang.Class<U> partialClass)
U
- the partial typepartialClass
- the partial type
public java.lang.Object valueForKey(java.lang.String key)
valueForKey
in interface com.webobjects.foundation.NSKeyValueCoding
valueForKey
in class com.webobjects.eocontrol.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.public 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 java.lang.Object _validateValueForKey(java.lang.Object value, java.lang.String key) throws com.webobjects.foundation.NSValidation.ValidationException
_validateValueForKey
in class ERXGenericRecord
com.webobjects.foundation.NSValidation.ValidationException
public java.lang.Object validateTakeValueForKeyPath(java.lang.Object value, java.lang.String keyPath) throws com.webobjects.foundation.NSValidation.ValidationException
validateTakeValueForKeyPath
in interface com.webobjects.foundation.NSValidation
validateTakeValueForKeyPath
in class com.webobjects.eocontrol.EOCustomObject
com.webobjects.foundation.NSValidation.ValidationException
public void validateForSave() throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecord
checkConsistency
will be called on this object.
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.
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |