PATH |
Inherits from: ObjectImplements:
EOEnterpriseObject
EODeferredFaulting (EOEnterpriseObject)
EOKeyValueCodingAdditions (EOEnterpriseObject)
EORelationshipManipulation (EOEnterpriseObject)
EOValidation (EOEnterpriseObject)
EOFaulting (EODeferredFaulting)
EOKeyValueCoding (EOKeyValueCodingAdditions)
NSKeyValueCoding (EOKeyValueCoding)Package: com.webobjects.eocontrol
The EOCustomObject class provides a default implementation of the EOEnterpriseObject interface. If you need to create a custom enterprise object class, you can subclass EOCustomObject and inherit the Framework's default implementations. Some of the methods are for subclasses to implement or override, but most are meant to be used as defined by EOCustomObject. For information on which methods you should implement in your subclass, see the EOEnterpriseObject interface specification.
EOCustomObject's method implementations are described in the specification for the interface that declares them. For example, you can find a description of how EOCustomObject implements valueForKey (introduced in the EOKeyValueCoding interface) in the specification for EOKeyValueCoding, and you can find a description of how EOCustomObject implements classDescription (introduced in the EOEnterpriseObject interface) in the specification for EOEnterpriseObject.
The only methods provided in EOCustomObject that aren't defined in the EOEnterpriseObject interface are the following three static methods:
You would never invoke these methods, rather, they are provided in EOCustomObject to demonstrate the additional API your custom enterprise objects can implement. Similarly, EOCustomObject's constructors are not meant to be invoked; you would never create an instance of EOCustomObject. Rather, EOCustomObject provides the constructors to demonstrate the constructors your custom enterprise objects should implement.
EOKeyValueCoding and NSKeyValueCoding
storedValueForKey
takeStoredValueForKey
takeValueForKeyvalueForKeyEOKeyValueCodingAdditions
takeValuesFromDictionaryvaluesForKeysEORelationshipManipulation
addObjectToBothSidesOfRelationshipWithKey
addObjectToPropertyWithKey
removeObjectFromBothSidesOfRelationshipWithKey
removeObjectFromPropertyWithKeyEOValidation
validateForDeletevalidateForInsert
validateForSavevalidateForUpdateEOEnterpriseObject
allPropertyKeys
attributeKeys
awakeFromFetch
awakeFromInsertion
changesFromSnapshot
classDescription
classDescriptionForDestinationKey
clearProperties
deleteRuleForRelationshipKey
editingContext
entityName
eoDescriptioneoShallowDescription
inverseForRelationshipKey
invokeRemoteMethodisToManyKey
ownsDestinationObjectsForRelationshipKey
propagateDeleteWithEditingContext
reapplyChangesFromDictionary
snapshot
toManyRelationshipKeys
toOneRelationshipKeys
updateFromSnapshot
userPresentableDescription
willChangeEOFaulting
clearFaultfaultHandler
isFaultturnIntoFaultwillRead
public EOCustomObject()
Description forthcoming.
public EOCustomObject( EOEditingContext anEOEditingContext, EOClassDescription anEOClassDescription, EOGlobalID anEOGlobalID)
You would never create an instance of EOCustomObject; rather, your subclasses can create constructors of this same form. A subclass's constructors should create a new object and initialize it with the arguments provided.
See Also: createInstanceWithEditingContext (EOClassDescription)
public static boolean canAccessFieldsDirectly()
Subclasses implement this method to return false
if the key-value coding methods should never access the corresponding instance variable directly on finding no accessor method for a property. You don't have to implement this method if the default behavior of accessing instance variables directly is correct for your objects.
See Also: valueForKey, takeValueForKey
public static boolean shouldUseStoredAccessors()
Subclasses implement this method to return false
if the stored value methods (storedValueForKey and takeStoredValueForKey) should not use private accessor methods in preference to public accessors. Returning false
causes the stored value methods to use the same accessor method-instance variable search order as the corresponding basic key-value coding methods (valueForKey and takeValueForKey). You don't have to implement this method if the default stored value search order is correct for your objects.
public static boolean usesDeferredFaultCreation()
Conformance to EODeferredFaulting.
public void addObjectToBothSidesOfRelationshipWithKey( EORelationshipManipulation anEORelationshipManipulation, String aString)
Description forthcoming.
public void addObjectToPropertyWithKey( Object anObject, String aString)
Description forthcoming.
public NSArray allPropertyKeys()
Description forthcoming.
public NSArray attributeKeys()
Description forthcoming.
public void awakeFromClientUpdate(EOEditingContext anEOEditingContext)
Description forthcoming.
public void awakeFromFetch(EOEditingContext anEOEditingContext)
Description forthcoming.
public void awakeFromInsertion(EOEditingContext anEOEditingContext)
Description forthcoming.
public NSDictionary changesFromSnapshot(NSDictionary aNSDictionary)
Description forthcoming.
public EOClassDescription classDescription()
Description forthcoming.
public EOClassDescription classDescriptionForDestinationKey(String aString)
Description forthcoming.
public void clearFault()
Description forthcoming.
public void clearProperties()
Description forthcoming.
public int deleteRuleForRelationshipKey(String aString)
Description forthcoming.
public EOEditingContext editingContext()
Description forthcoming.
public String entityName()
Description forthcoming.
public String eoDescription()
Description forthcoming.
public String eoShallowDescription()
Description forthcoming.
public EOFaultHandler faultHandler()
Description forthcoming.
public Object handleQueryWithUnboundKey(String aString)
Description forthcoming.
public void handleTakeValueForUnboundKey( Object anObject, String aString)
Description forthcoming.
public String inverseForRelationshipKey(String aString)
Description forthcoming.
public Object invokeRemoteMethod(String methodName, Class[] argumentTypes, Object[] arguments)
Description forthcoming.
public boolean isFault()
Description forthcoming.
public boolean isToManyKey(String aString)
Description forthcoming.
public boolean ownsDestinationObjectsForRelationshipKey(String aString)
Description forthcoming.
public void prepareValuesForClient()
Description forthcoming.
public void propagateDeleteWithEditingContext(EOEditingContext anEOEditingContext)
Description forthcoming.
protected Object readResolve()
Description forthcoming.
public void reapplyChangesFromDictionary(NSDictionary aNSDictionary)
Description forthcoming.
public void removeObjectFromBothSidesOfRelationshipWithKey( EORelationshipManipulation anEORelationshipManipulation, String aString)
Description forthcoming.
public void removeObjectFromPropertyWithKey( Object anObject, String aString)
Description forthcoming.
public NSDictionary snapshot()
Description forthcoming.
public Object storedValueForKey(String aString)
Description forthcoming.
public void takeStoredValueForKey( Object anObject, String aString)
Description forthcoming.
public void takeValueForKey( Object anObject, String aString)
Description forthcoming.
public void takeValueForKeyPath( Object anObject, String aString)
Description forthcoming.
public void takeValuesFromDictionary(NSDictionary aNSDictionary)
Description forthcoming.
public NSArray toManyRelationshipKeys()
Description forthcoming.
public NSArray toOneRelationshipKeys()
Description forthcoming.
public String toString()
Description forthcoming.
public void turnIntoFault(EOFaultHandler anEOFaultHandler)
Description forthcoming.
public void unableToSetNullForKey(String aString)
Description forthcoming.
public void updateFromSnapshot(NSDictionary aNSDictionary)
Description forthcoming.
public String userPresentableDescription()
Description forthcoming.
public void validateClientUpdate()
Description forthcoming.
public void validateForDelete()
Description forthcoming.
public void validateForInsert()
Description forthcoming.
public void validateForSave()
Description forthcoming.
public void validateForUpdate()
Description forthcoming.
public Object validateTakeValueForKeyPath( Object anObject, String aString)
Description forthcoming.
public Object validateValueForKey( Object anObject, String aString)
Description forthcoming.
public Object valueForKey(String aString)
Description forthcoming.
public Object valueForKeyPath(String aString)
Description forthcoming.
public NSDictionary valuesForKeys(NSArray aNSArray)
Description forthcoming.
public void willChange()
Description forthcoming.
public void willRead()
Description forthcoming.
public Object willReadRelationship(Object object)
Description forthcoming.
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)