|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wotonomy.control.EODataSource net.wotonomy.control.OrderedDataSource net.wotonomy.control.PropertyDataSource
public class PropertyDataSource
A data source that reads and writes to an indexed property of a java object. This class is used by MasterDetailAssociation to retreive objects from the master display group.
Field Summary | |
---|---|
protected EOClassDescription |
classDesc
|
protected EOEditingContext |
context
|
protected java.lang.String |
key
|
protected java.lang.Class |
lastKnownType
|
protected java.lang.Object |
source
|
Constructor Summary | |
---|---|
PropertyDataSource()
Creates a new PropertyDataSource with no editing context and will try to guess the appropriate class description when trying to create objects. |
|
PropertyDataSource(EOEditingContext aContext)
Creates a new PropertyDataSource that uses the specified editing context, but will try to guess the appropriate class description when trying to create objects. |
|
PropertyDataSource(EOEditingContext aContext,
java.lang.Class aClass)
Creates a new PropertyDataSource that uses the specified editing context and vends objects of the specified class. |
|
PropertyDataSource(EOEditingContext aContext,
EOClassDescription aClassDesc)
Creates a new PropertyDataSource that uses the specified editing context and vends objects of the specified class description. |
Method Summary | |
---|---|
EOClassDescription |
classDescriptionForObjects()
Returns the class description passed to the constructor, if any. |
EODataSource |
dataSourceQualifiedByKey(java.lang.String aKey)
Returns a new instance of this class. |
void |
deleteObject(java.lang.Object anObject)
Deletes the specified object from this data source. |
EOEditingContext |
editingContext()
Returns the editing context for this data source, or null if no editing context is used. |
net.wotonomy.foundation.NSArray |
fetchObjects()
Returns a List containing the objects in this data source. |
protected java.lang.Object |
getValue()
Returns the value of the indexed property specified by qualifyWithRelationshipKey. |
void |
insertObject(java.lang.Object anObject)
Inserts the specified object into this data source. |
void |
insertObjectAtIndex(java.lang.Object anObject,
int anIndex)
Inserts the specified object into this data source, at the specified index. |
java.lang.String |
key()
Provides the detail key for detail display groups. |
void |
qualifyWithRelationshipKey(java.lang.String aKey,
java.lang.Object anObject)
Restricts this data source to vend those objects that are associated with the specified key on the specified object. |
protected net.wotonomy.foundation.NSMutableArray |
readAsList()
Calls getValue() and returns the result as a List. |
void |
setKey(java.lang.String aKey)
Allows a detail display group to set the detail key. |
void |
setSource(java.lang.Object anObject)
Allows a detail display group to set the master object. |
protected void |
setValue(java.lang.Object aValue)
Sets the value of the indexed property specified by qualifyWithRelationshipKey. |
java.lang.Object |
source()
Provides the master object for detail display groups. |
protected void |
writeAsList(java.util.List anObjectList)
Converts the specified List to lastKnownType and calls setValue(). |
Methods inherited from class net.wotonomy.control.EODataSource |
---|
createObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object source
protected java.lang.String key
protected java.lang.Class lastKnownType
protected EOClassDescription classDesc
protected EOEditingContext context
Constructor Detail |
---|
public PropertyDataSource()
public PropertyDataSource(EOEditingContext aContext)
public PropertyDataSource(EOEditingContext aContext, java.lang.Class aClass)
public PropertyDataSource(EOEditingContext aContext, EOClassDescription aClassDesc)
Method Detail |
---|
public java.lang.Object source()
public void setSource(java.lang.Object anObject)
public java.lang.String key()
public void setKey(java.lang.String aKey)
public void insertObject(java.lang.Object anObject)
insertObject
in class EODataSource
public void insertObjectAtIndex(java.lang.Object anObject, int anIndex)
insertObjectAtIndex
in class OrderedDataSource
public void deleteObject(java.lang.Object anObject)
deleteObject
in class EODataSource
public EOEditingContext editingContext()
EODataSource
editingContext
in class EODataSource
public net.wotonomy.foundation.NSArray fetchObjects()
fetchObjects
in class EODataSource
public EODataSource dataSourceQualifiedByKey(java.lang.String aKey)
dataSourceQualifiedByKey
in class EODataSource
EODataSource.qualifyWithRelationshipKey(java.lang.String, java.lang.Object)
public void qualifyWithRelationshipKey(java.lang.String aKey, java.lang.Object anObject)
qualifyWithRelationshipKey
in class EODataSource
public EOClassDescription classDescriptionForObjects()
classDescriptionForObjects
in class EODataSource
protected net.wotonomy.foundation.NSMutableArray readAsList()
protected void writeAsList(java.util.List anObjectList)
protected java.lang.Object getValue()
protected void setValue(java.lang.Object aValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |