|
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.NSKeyValueCodingvalueForKey in class com.webobjects.eocontrol.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()
ERXEnterpriseObject
mightDelete in interface ERXEnterpriseObjectmightDelete in class ERXGenericRecord
public 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()
ERXEnterpriseObject
didUpdate in interface ERXEnterpriseObjectdidUpdate in class ERXGenericRecordpublic void didInsert()
ERXEnterpriseObject
didInsert in interface ERXEnterpriseObjectdidInsert in class ERXGenericRecordpublic void willRevert()
ERXEnterpriseObject
willRevert 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.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.EOEnterpriseObjectawakeFromFetch in class ERXGenericRecordeditingContext - 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 ERXGenericRecordcom.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.NSValidationvalidateTakeValueForKeyPath in class com.webobjects.eocontrol.EOCustomObjectcom.webobjects.foundation.NSValidation.ValidationException
public void validateForSave()
throws com.webobjects.foundation.NSValidation.ValidationException
ERXGenericRecordcheckConsistency will be called on this object.
validateForSave 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
ERXGenericRecord
validateForInsert 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
ERXGenericRecord
validateForUpdate in interface com.webobjects.eocontrol.EOValidationvalidateForUpdate in class ERXGenericRecordNSValidation.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 | |||||||||||