public class ERXCustomObject extends EOCustomObject implements ERXGuardedObjectInterface, ERXGeneratesPrimaryKeyInterface, ERXEnterpriseObject
EOCustomObject class. Of notable
interest it contains built in support for generating
primary keys via the ERXGeneratesPrimaryKeyInterface,
support for an augmented transaction methods like
willUpdate and didDelete and a bunch
of handy utility methods like committedSnapshotValueForKey
. At the moment it is required that those wishing to take
advantage of templatized and localized validation exceptions
need to subclass this class. Hopefully in the future we can
get rid of this requirement.
Also, this class supports auto-updating of inverse relationships. You can
simply call eo.setFoo(other), eo.takeValueForKey(other),
eo.addObjectToBothSidesOfRelationshipWithKey(other, "foo") or eo.addToFoos(other)
and the inverse relationship will get
updated for you automagically, so that you don't need to call
other.addToBars(eo) or other.setBar(eo). Doing so doesn't hurt, though.
Giving a null value of removing the object from a to-many will result in the inverse
relationship getting cleared.
This feature should greatly help readability and reduce the number errors you make when you
forget to update an inverse relationship. To turn this feature on, you must set the system default
er.extensions.ERXEnterpriseObject.updateInverseRelationships=true.
| Name | Description |
|---|---|
er.extensions.ERXCustomObject.shouldTrimSpaces | er.extensions.ERXCustomObject.shouldTrimSpaces |
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXCustomObject.ERXCustomObjectClazz<T extends com.webobjects.eocontrol.EOEnterpriseObject>
Clazz object implementation for ERXCustomObject.
|
EOCustomObject._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._MethodBinding, 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| Modifier and Type | Field and Description |
|---|---|
protected String |
_primaryKey |
String |
insertionStackTrace |
protected boolean |
wasInitialized |
__readOnly, _CLASSapplyRestrictingQualifierOnInsert, 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 |
|---|
ERXCustomObject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_setUpdateInverseRelationships(boolean newValue)
Toggles whether or not inverse relationships should be updates.
|
void |
addObjectsToBothSidesOfRelationshipWithKey(NSArray objects,
String key)
Adds a collection of objects to a given relationship by calling
addObjectToBothSidesOfRelationshipWithKey for all
objects in the collection. |
void |
addObjectToBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo,
String key)
Adds a check to make sure that both the object being added and
this object are in the same editing context.
|
void |
awakeFromClientUpdate(com.webobjects.eocontrol.EOEditingContext editingContext)
Checks the editing context delegate before calling
super's implementation.
|
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.
|
boolean |
canDelete()
Implementation of
ERXGuardedObjectInterface. |
boolean |
canUpdate()
Implementation of
ERXGuardedObjectInterface. |
NSDictionary |
changesFromCommittedSnapshot()
Computes the current set of changes that this object has from the
currently committed snapshot.
|
Object |
committedSnapshotValueForKey(String key)
Determines what the value of the given key is in the committed
snapshot
|
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.
|
String |
encryptedPrimaryKey()
Takes the primary key of the object and encrypts it
with the blowfish cipher using
ERXCrypto. |
protected void |
excludeObjectFromPropertyWithKey(Object o,
String key)
Overridden to support two-way relationship setting.
|
void |
flushCaches()
This is called when an object has had
changes merged into it by the editing context.
|
Object |
foreignKeyForRelationshipWithKey(String rel)
Returns the foreign key for a given relationship.
|
Logger |
getClassLog()
This methods checks if we already have created an Logger for this class
If not, one will be created, stored and returned on next request.
|
protected void |
includeObjectIntoPropertyWithKey(Object o,
String key)
Overridden to support two-way relationship setting.
|
protected void |
init(com.webobjects.eocontrol.EOEditingContext ec)
used for initialization stuff instead of awakeFromInsertion.
|
boolean |
isDeletedEO()
Determines if this object is a deleted object by
checking to see if it is included in the deletedObjects
array of the editing context or - if it's editing context
is null - it already has a global id.
|
boolean |
isNewObject()
Determines if this object is a new object and
hasn't been saved to the database yet.
|
com.webobjects.eocontrol.EOEnterpriseObject |
localInstanceIn(com.webobjects.eocontrol.EOEditingContext ec)
Returns this EO in the supplied editing context.
|
com.webobjects.eocontrol.EOEnterpriseObject |
localInstanceOf(com.webobjects.eocontrol.EOEnterpriseObject eo)
Returns an EO in the same editing context as the caller.
|
NSArray |
localInstancesOf(NSArray eos)
Returns an array of EOs in the same editing context as the caller.
|
void |
mightDelete()
Called as part of the augmented transaction process.
|
boolean |
parentObjectStoreIsObjectStoreCoordinator()
Simple method that will return if the parent object store of this object's editing
context is an instance of
EOObjectStoreCoordinator. |
String |
primaryKey()
Primary key of the object as a String.
|
NSArray |
primaryKeyAttributeNames()
Returns the names of all primary key attributes.
|
String |
primaryKeyInTransaction()
Calling this method will return the primary key of the
given enterprise object or if one has not been assigned
to it yet, then it will have the adaptor channel generate
one for it, cache it and then use that primary key when it
is saved to the database.
|
Object |
rawPrimaryKey()
Gives the raw primary key of the object.
|
NSDictionary<String,Object> |
rawPrimaryKeyDictionary(boolean inTransaction)
Implementation of the interface
ERXGeneratesPrimaryKeyInterface. |
Object |
rawPrimaryKeyInTransaction()
Calling this method will return the primary key of the
given enterprise object or if one has not been assigned
to it yet, then it will have the adaptor channel generate
one for it, cache it and then use that primary key when it
is saved to the database.
|
ERXEnterpriseObject |
refetchObjectFromDBinEditingContext(com.webobjects.eocontrol.EOEditingContext ec)
Method that will make sure to fetch an eo from the Database and
place it in the editingContext provided
as an argument
|
void |
removeObjectsFromBothSidesOfRelationshipWithKey(NSArray objects,
String key)
Removes a collection of objects to a given relationship by calling
removeObjectFromBothSidesOfRelationshipWithKey for all
objects in the collection. |
void |
removeObjectsFromPropertyWithKey(NSArray objects,
String key)
Removes a collection of objects to a given relationship by calling
removeObjectFromPropertyWithKey for all
objects in the collection. |
ERXEnterpriseObject |
self()
self is useful for D2W purposes
|
static boolean |
shouldTrimSpaces() |
void |
takeStoredValueForKey(Object value,
String key) |
void |
takeValueForKey(Object value,
String key) |
String |
toLongString()
Returns the super classes implementation of toString
which prints out the current key-value pairs for all
of the attributes and relationships for the current
object.
|
String |
toString()
Overrides the EOGenericRecord's implementation to
provide a slightly less verbose output.
|
void |
trimSpaces()
This method will trim the leading and trailing white
space from any attributes that are mapped to a String
object.
|
static boolean |
usesDeferredFaultCreation() |
void |
validateForDelete()
Calls up validateForUpdate() on the class description if it supports it.
|
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 |
validateValueForKey(Object value,
String key)
Overrides the default validation mechanisms to provide
a few checks before invoking super's implementation,
which incidently just invokes validateValueForKey on the
object's class description.
|
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.
|
__classDescription, __clearPendingChanges, __editingContext, __globalID, __hasAuxillaryObservers, __hasPendingChanges, __hasPendingUpdate, __isInitialized, __isPendingDeletion, __isPendingInsertion, __isShared, __lastSnapshot, __originalSnapshot, __retainCount, __setAuxillaryObservers, __setClassDescription, __setEditingContext, __setGlobalID, __setInitialized, __setLastSnapshot, __setOriginalSnapshot, __setPendingDeletion, __setPendingInsertion, __setPendingUpdate, __setRetainCount, __setShared, _createKeyGetBindingForKey, _createKeySetBindingForKey, _createStoredKeyGetBindingForKey, _createStoredKeySetBindingForKey, _fieldKeyBinding, _forwardingBindingNeededForClass, _keyGetBindingForKey, _keySetBindingForKey, _methodKeyGetBinding, _methodKeySetBinding, _otherStorageBinding, _storedKeyGetBindingForKey, _storedKeySetBindingForKey, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, canAccessFieldsDirectly, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, clearFault, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, faultHandler, handleQueryWithUnboundKey, 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, updateFromSnapshot, userPresentableDescription, validateClientUpdate, validateTakeValueForKeyPath, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead, willReadRelationshipclone, finalize, getClass, notify, notifyAll, wait, wait, waitallPropertyKeys, attributeKeys, changesFromSnapshot, classDescription, classDescriptionForDestinationKey, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, inverseForRelationshipKey, invokeRemoteMethod, isReadOnly, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, reapplyChangesFromDictionary, snapshot, toManyRelationshipKeys, toOneRelationshipKeys, updateFromSnapshot, userPresentableDescription, willChangetakeValuesFromDictionary, takeValuesFromDictionaryWithMapping, valuesForKeys, valuesForKeysWithMappingtakeValueForKeyPath, valueForKeyPathhandleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKeypublic String insertionStackTrace
protected boolean wasInitialized
protected String _primaryKey
public static boolean shouldTrimSpaces()
public boolean _setUpdateInverseRelationships(boolean newValue)
ERXEnterpriseObject_setUpdateInverseRelationships in interface ERXEnterpriseObjectnewValue - whether or not inverse relationships should be updatedpublic Logger getClassLog()
ERXEnterpriseObjectgetClassLog in interface ERXEnterpriseObjectLogger for this objects classpublic ERXEnterpriseObject self()
ERXEnterpriseObjectself in interface ERXEnterpriseObjectpublic boolean canDelete()
ERXGuardedObjectInterface. This is checked
before the object is deleted in the willDelete method
which is in turn called by ERXEditingContextDelegate. The default
implementation returns true.canDelete in interface ERXGuardedObjectInterfacepublic boolean canUpdate()
ERXGuardedObjectInterface. This is checked
before the object is deleted in the willUpdate method
which is in turn called by ERXEditingContextDelegate. The default
implementation returns true.canUpdate in interface ERXGuardedObjectInterfacepublic void delete()
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 ERXGuardedObjectInterfacepublic void mightDelete()
ERXEnterpriseObjectmightDelete in interface ERXEnterpriseObjectpublic 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 ERXEnterpriseObjectNSValidation.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 ERXEnterpriseObjectpublic void willUpdate()
ERXEnterpriseObjectvalidateForSave is called on this
object. This method is called by the editing context
delegate ERXDefaultEditingContextDelegate.willUpdate in interface ERXEnterpriseObjectpublic void flushCaches()
ERXEnterpriseObjectERXDefaultEditingContextDelegate
after it merges changes. Any caches that an object
keeps based on any of it's values it should flush.
The default implementation of this method does
nothing.flushCaches in interface ERXEnterpriseObjectpublic void didDelete(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectec
is a child context when doing something here that
can't be undone.didDelete in interface ERXEnterpriseObjectec - editing context that used to be associated
with the object.public void didUpdate()
ERXEnterpriseObjectdidUpdate in interface ERXEnterpriseObjectpublic void didInsert()
ERXEnterpriseObjectdidInsert in interface ERXEnterpriseObjectpublic void willRevert()
ERXEnterpriseObjectwillRevert in interface ERXEnterpriseObjectpublic void didRevert(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectflushCaches.didRevert in interface ERXEnterpriseObjectec - 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 addObjectsToBothSidesOfRelationshipWithKey(NSArray objects, String key)
ERXEnterpriseObjectaddObjectToBothSidesOfRelationshipWithKey for all
objects in the collection.addObjectsToBothSidesOfRelationshipWithKey in interface ERXEnterpriseObjectobjects - objects to add to both sides of the given relationshipkey - relationship keypublic void removeObjectsFromBothSidesOfRelationshipWithKey(NSArray objects, String key)
ERXEnterpriseObjectremoveObjectFromBothSidesOfRelationshipWithKey for all
objects in the collection.removeObjectsFromBothSidesOfRelationshipWithKey in interface ERXEnterpriseObjectobjects - objects to be removed from both sides of the given relationshipkey - relationship keypublic void removeObjectsFromPropertyWithKey(NSArray objects, String key)
ERXEnterpriseObjectremoveObjectFromPropertyWithKey for all
objects in the collection.removeObjectsFromPropertyWithKey in interface ERXEnterpriseObjectobjects - objects to be removed from both sides of the given relationshipkey - relationship keypublic void awakeFromClientUpdate(com.webobjects.eocontrol.EOEditingContext editingContext)
_checkEditingContextDelegate for an explanation
as to what this check does.awakeFromClientUpdate in interface com.webobjects.eocontrol.EOEnterpriseObjectawakeFromClientUpdate in class EOCustomObjecteditingContext - to be checked to make sure it has the
correct type of delegate set.public void awakeFromInsertion(com.webobjects.eocontrol.EOEditingContext editingContext)
_checkEditingContextDelegate for an explanation
as to what this check does.awakeFromInsertion in interface com.webobjects.eocontrol.EOEnterpriseObjectawakeFromInsertion in class EOCustomObjecteditingContext - to be checked to make sure it has the
correct type of delegate set.protected void init(com.webobjects.eocontrol.EOEditingContext ec)
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.ec - the EOEditingContext in which this new EO is insertedpublic void awakeFromFetch(com.webobjects.eocontrol.EOEditingContext editingContext)
_checkEditingContextDelegate for an explanation
as to what this check does.awakeFromFetch in interface com.webobjects.eocontrol.EOEnterpriseObjectawakeFromFetch in class EOCustomObjecteditingContext - to be checked to make sure it has the
correct type of delegate set.public void addObjectToBothSidesOfRelationshipWithKey(com.webobjects.eocontrol.EORelationshipManipulation eo,
String key)
addObjectToBothSidesOfRelationshipWithKey in interface com.webobjects.eocontrol.EORelationshipManipulationaddObjectToBothSidesOfRelationshipWithKey in class EOCustomObjecteo - enterprise object to be added to the relationshipkey - relationship to add the object to.public String primaryKey()
ERXEnterpriseObjectprimaryKey in interface ERXEnterpriseObjectpublic Object rawPrimaryKeyInTransaction()
ERXEnterpriseObjectrawPrimaryKey.rawPrimaryKeyInTransaction in interface ERXEnterpriseObjectpublic String primaryKeyInTransaction()
ERXEnterpriseObjectprimaryKey.primaryKeyInTransaction in interface ERXEnterpriseObjectpublic Object rawPrimaryKey()
ERXEnterpriseObjectrawPrimaryKey in interface ERXEnterpriseObjectpublic String encryptedPrimaryKey()
ERXEnterpriseObjectERXCrypto.encryptedPrimaryKey in interface ERXEnterpriseObjectpublic Object foreignKeyForRelationshipWithKey(String rel)
ERXEnterpriseObjectforeignKeyForRelationshipWithKey in interface ERXEnterpriseObjectrel - relationship keypublic NSArray primaryKeyAttributeNames()
ERXEnterpriseObjectprimaryKeyAttributeNames in interface ERXEnterpriseObjectpublic NSDictionary<String,Object> rawPrimaryKeyDictionary(boolean inTransaction)
ERXGeneratesPrimaryKeyInterface.
This implementation operates in the following fashion. If it is called
passing in 'false' and it has not yet been saved to the database, meaning
this object does not yet have a primary key assigned, then it will have the
adaptor channel generate a primary key for it. Then when the object is saved
to the database it will use the previously generated primary key instead of
having the adaptor channel generate another primary key. If 'true' is passed in
then this method will either return the previously generated primaryKey
dictionary or null if it does not have one. Typically you should only call
this method with the 'false' parameter seeing as unless you are doing something
really funky you won't be dealing with this object when it is in the middle of
a transaction. The delegate ERXDatabaseContextDelegate is the only class
that should be calling this method and passing in 'true'.rawPrimaryKeyDictionary in interface ERXGeneratesPrimaryKeyInterfaceinTransaction - boolean flag to tell the object if it is currently in the
middle of a transaction.public Object committedSnapshotValueForKey(String key)
ERXEnterpriseObjectcommittedSnapshotValueForKey in interface ERXEnterpriseObjectkey - to be checked in committed snapshotpublic com.webobjects.eocontrol.EOEnterpriseObject localInstanceOf(com.webobjects.eocontrol.EOEnterpriseObject eo)
ERXEnterpriseObjectlocalInstanceOf in interface ERXEnterpriseObjecteo - to local instancepublic com.webobjects.eocontrol.EOEnterpriseObject localInstanceIn(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectlocalInstanceIn in interface ERXEnterpriseObjectec - editing context to local instance inpublic NSArray localInstancesOf(NSArray eos)
ERXEnterpriseObjectlocalInstancesOf in interface ERXEnterpriseObjecteos - array of EOs to local instancepublic NSDictionary changesFromCommittedSnapshot()
ERXEnterpriseObjectchangesFromCommittedSnapshot in interface ERXEnterpriseObjectpublic boolean parentObjectStoreIsObjectStoreCoordinator()
ERXEnterpriseObjectEOObjectStoreCoordinator. The reason this is important
is because if this condition evaluates to true then when changes are saved in this
editing context they will be propagated to the database.parentObjectStoreIsObjectStoreCoordinator in interface ERXEnterpriseObjectpublic ERXEnterpriseObject refetchObjectFromDBinEditingContext(com.webobjects.eocontrol.EOEditingContext ec)
ERXEnterpriseObjectrefetchObjectFromDBinEditingContext in interface ERXEnterpriseObjectec - the editing context in which the result will be placedpublic String toString()
toLongString. To restore the original
verbose logging in your subclasses override this method and
return toLongString.toString in class EOCustomObjectpublic String toLongString()
ERXEnterpriseObjecttoLongString in interface ERXEnterpriseObjecttoString.public void trimSpaces()
ERXEnterpriseObjecttrimSpaces in interface ERXEnterpriseObjectpublic boolean isDeletedEO()
ERXEnterpriseObjectisDeletedEO in interface ERXEnterpriseObjectpublic boolean isNewObject()
ERXEnterpriseObjectisNewObject in interface ERXEnterpriseObjectpublic Object validateValueForKey(Object value, String key) throws com.webobjects.foundation.NSValidation.ValidationException
ERXEntityClassDescription or subclass.
It is that class that provides the hooks to convert model
throw validation exceptions into ERXValidationException
objects.validateValueForKey in interface com.webobjects.foundation.NSValidationvalidateValueForKey in class EOCustomObjectvalue - to be validated for a given attribute or relationshipkey - corresponding to an attribute or relationshipNSValidation.ValidationException - if the value fails validationpublic void validateForSave()
throws com.webobjects.foundation.NSValidation.ValidationException
validateForSave in interface com.webobjects.eocontrol.EOValidationvalidateForSave in class EOCustomObjectNSValidation.ValidationException - if the object does not
pass validation for saving to the database.public void validateForInsert()
throws com.webobjects.foundation.NSValidation.ValidationException
validateForInsert in interface com.webobjects.eocontrol.EOValidationvalidateForInsert in class EOCustomObjectNSValidation.ValidationException - if the object does not
pass validation for saving to the database.public void validateForUpdate()
throws com.webobjects.foundation.NSValidation.ValidationException
validateForUpdate in interface com.webobjects.eocontrol.EOValidationvalidateForUpdate in class EOCustomObjectNSValidation.ValidationException - if the object does not
pass validation for saving to the database.public void validateForDelete()
throws com.webobjects.foundation.NSValidation.ValidationException
validateForDelete in interface com.webobjects.eocontrol.EOValidationvalidateForDelete in class EOCustomObjectNSValidation.ValidationException - if the object does not
pass validation for saving to the database.protected void includeObjectIntoPropertyWithKey(Object o, String key)
includeObjectIntoPropertyWithKey in class EOCustomObjectprotected void excludeObjectFromPropertyWithKey(Object o, String key)
excludeObjectFromPropertyWithKey in class EOCustomObjectpublic void takeValueForKey(Object value, String key)
takeValueForKey in interface com.webobjects.foundation.NSKeyValueCodingtakeValueForKey in class EOCustomObjectpublic void takeStoredValueForKey(Object value, String key)
takeStoredValueForKey in interface com.webobjects.eocontrol.EOKeyValueCodingtakeStoredValueForKey in class EOCustomObjectpublic static boolean usesDeferredFaultCreation()
Copyright © 2002 – 2020 Project Wonder.