Project Wonder 5.0

er.cayenne
Class CayenneObject

java.lang.Object
  extended by org.apache.cayenne.PersistentObject
      extended by org.apache.cayenne.CayenneDataObject
          extended by er.cayenne.CayenneObject
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, Serializable, org.apache.cayenne.DataObject, org.apache.cayenne.Persistent, org.apache.cayenne.Validating, org.apache.cayenne.xml.XMLSerializable

public class CayenneObject
extends org.apache.cayenne.CayenneDataObject
implements NSKeyValueCodingAdditions, NSKeyValueCoding.ErrorHandling

Adds Key Value Coding (KVC) support to CayenneDataObject to make it suitable for use in WO applications.

See Also:
Serialized Form
Author:
john

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Field Summary
 
Fields inherited from class org.apache.cayenne.CayenneDataObject
snapshotVersion, values
 
Fields inherited from class org.apache.cayenne.PersistentObject
objectContext, objectId, persistenceState
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface org.apache.cayenne.DataObject
DEFAULT_VERSION
 
Constructor Summary
CayenneObject()
           
 
Method Summary
 Object handleQueryWithUnboundKey(String key)
           
 void handleTakeValueForUnboundKey(Object value, String key)
           
 Object readNestedProperty(String path)
          Deprecated. 
 Object readProperty(String propertyName)
          Deprecated. 
 Object readPropertyDirectly(String propertyName)
          Deprecated. 
 void takeValueForKey(Object value, String key)
           
 void takeValueForKeyPath(Object value, String keyPath)
           
 void unableToSetNullForKey(String key)
           
 Object valueForKey(String key)
           
 Object valueForKeyPath(String keyPath)
           
 void writeProperty(String propertyName, Object value)
          Deprecated. 
 void writePropertyDirectly(String propertyName, Object value)
          Deprecated. 
 
Methods inherited from class org.apache.cayenne.CayenneDataObject
addToManyTarget, appendProperties, decodeFromXML, encodeAsXML, getSnapshotVersion, makePath, removeToManyTarget, setObjectContext, setPersistenceState, setReverseRelationship, setSnapshotVersion, setToOneTarget, toString, toStringBuffer, unsetReverseRelationship, validateForDelete, validateForInsert, validateForSave, validateForUpdate, willConnect
 
Methods inherited from class org.apache.cayenne.PersistentObject
getMapKey, getObjectContext, getObjectId, getObjEntity, getPersistenceState, setObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cayenne.Persistent
getObjectContext, getObjectId, getPersistenceState, setObjectId
 

Constructor Detail

CayenneObject

public CayenneObject()
Method Detail

takeValueForKey

public void takeValueForKey(Object value,
                            String key)
Specified by:
takeValueForKey in interface NSKeyValueCoding

valueForKey

public Object valueForKey(String key)
Specified by:
valueForKey in interface NSKeyValueCoding

takeValueForKeyPath

public void takeValueForKeyPath(Object value,
                                String keyPath)
Specified by:
takeValueForKeyPath in interface NSKeyValueCodingAdditions

valueForKeyPath

public Object valueForKeyPath(String keyPath)
Specified by:
valueForKeyPath in interface NSKeyValueCodingAdditions

handleQueryWithUnboundKey

public Object handleQueryWithUnboundKey(String key)
Specified by:
handleQueryWithUnboundKey in interface NSKeyValueCoding.ErrorHandling

handleTakeValueForUnboundKey

public void handleTakeValueForUnboundKey(Object value,
                                         String key)
Specified by:
handleTakeValueForUnboundKey in interface NSKeyValueCoding.ErrorHandling

unableToSetNullForKey

public void unableToSetNullForKey(String key)
Specified by:
unableToSetNullForKey in interface NSKeyValueCoding.ErrorHandling

readProperty

@Deprecated
public Object readProperty(String propertyName)
Deprecated. 

Use KVC methods instead

Specified by:
readProperty in interface org.apache.cayenne.DataObject
Overrides:
readProperty in class org.apache.cayenne.CayenneDataObject

readPropertyDirectly

@Deprecated
public Object readPropertyDirectly(String propertyName)
Deprecated. 

Use KVC methods instead

Specified by:
readPropertyDirectly in interface org.apache.cayenne.DataObject
Overrides:
readPropertyDirectly in class org.apache.cayenne.CayenneDataObject

readNestedProperty

@Deprecated
public Object readNestedProperty(String path)
Deprecated. 

Use KVC methods instead

Specified by:
readNestedProperty in interface org.apache.cayenne.DataObject
Overrides:
readNestedProperty in class org.apache.cayenne.CayenneDataObject

writeProperty

@Deprecated
public void writeProperty(String propertyName,
                                     Object value)
Deprecated. 

Use KVC methods instead

Specified by:
writeProperty in interface org.apache.cayenne.DataObject
Overrides:
writeProperty in class org.apache.cayenne.CayenneDataObject

writePropertyDirectly

@Deprecated
public void writePropertyDirectly(String propertyName,
                                             Object value)
Deprecated. 

Use KVC methods instead

Specified by:
writePropertyDirectly in interface org.apache.cayenne.DataObject
Overrides:
writePropertyDirectly in class org.apache.cayenne.CayenneDataObject

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.