|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EODataSource com.webobjects.eocontrol.EOArrayDataSource
EOArrayDataSource is a concrete subclass of EODataSource that can be used to provide enterprise objects to a display group (EODisplayGroup from EOInterface or WODisplayGroup from WebObjects) without having to fetch them from the database. In an EOArrayDataSource, objects are maintained in an NSArray.
EOArrayDataSource can fetch, insert, and delete objects by performing the operations directly on its array. It can also provide a detailed data source.
Constructor Summary | |
EOArrayDataSource(EOClassDescription desc,
EOEditingContext ec)
Creates and returns an EOArrayDataSource object where desc
contains information about the objects provided by the EOArrayDataSource
and ec is the EOArrayDataSource's editing context. |
Method Summary | |
EOClassDescription |
classDescriptionForObjects()
Returns the receiver's class description. |
Object |
createObject()
Creates a new object, inserts into the array of objects maintained by the receiver if appropriate, and returns the object. |
EODataSource |
dataSourceQualifiedByKey(String key)
Creates an EODetailDataSource for relationship key . |
void |
deleteObject(Object eo)
Deletes object from the array of objects maintained by the receiver. |
EOEditingContext |
editingContext()
Returns the receiver's editing context. |
NSArray |
fetchObjects()
Returns a copy of the array of objects maintained by the receiver. |
void |
insertObject(Object eo)
Inserts object into the array of objects maintained by the receiver. |
void |
qualifyWithRelationshipKey(String key,
Object source)
EOArrayDataSource provides a null implementation of this method. |
void |
setArray(NSArray array)
Sets the receiver's array of objects to array . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EOArrayDataSource(EOClassDescription desc, EOEditingContext ec)
desc
contains information about the objects provided by the EOArrayDataSource
and ec
is the EOArrayDataSource's editing context.
Either argument may be null
.
desc
- specifies class description that contains information about
the objects provided by the EOArrayDataSourceec
- specifies EOArrayDataSource's editing contextMethod Detail |
public EOClassDescription classDescriptionForObjects()
classDescriptionForObjects
in class EODataSource
public Object createObject()
null
if the receiver can't create the object or can't insert it.
createObject
in class EODataSource
EODataSource.classDescriptionForObjects()
,
EODataSource.editingContext()
public EODataSource dataSourceQualifiedByKey(String key)
key
.
dataSourceQualifiedByKey
in class EODataSource
key
- relationship key that is the
destination object of the relationship
EODataSource.qualifyWithRelationshipKey(String key,
Object sourceObject)
public void deleteObject(Object eo)
deleteObject
in class EODataSource
eo
- object to be deletedpublic EOEditingContext editingContext()
editingContext
in class EODataSource
EOEditingContext
public NSArray fetchObjects()
fetchObjects
in class EODataSource
public void insertObject(Object eo)
insertObject
in class EODataSource
eo
- object to be insertedpublic void qualifyWithRelationshipKey(String key, Object source)
qualifyWithRelationshipKey
in class EODataSource
key
- names the relationship the objects is to be displayed withsource
- destination objects belongs to this(String relationshipKey)
public void setArray(NSArray array)
array
.
array
- specifies receiver's array of objects to array
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |