|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.eocontrol.EODataSource
com.webobjects.eocontrol.EOArrayDataSource
public class 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 context| Method Detail |
|---|
public void setArray(NSArray array)
array.
array - specifies receiver's array of objects to arraypublic Object createObject()
null if the receiver can't create the object or can't insert it.
createObject in class EODataSourceEODataSource.classDescriptionForObjects(),
EODataSource.editingContext()public void insertObject(Object eo)
insertObject in class EODataSourceeo - object to be insertedpublic void deleteObject(Object eo)
deleteObject in class EODataSourceeo - object to be deletedpublic NSArray fetchObjects()
fetchObjects in class EODataSourcepublic EOEditingContext editingContext()
editingContext in class EODataSourceEOEditingContext
public void qualifyWithRelationshipKey(String key,
Object source)
qualifyWithRelationshipKey in class EODataSourcekey - names the relationship the objects is to be displayed withsource - destination objects belongs to this(String relationshipKey)public EODataSource dataSourceQualifiedByKey(String key)
key.
dataSourceQualifiedByKey in class EODataSourcekey - relationship key that is the destination object of the relationship
EODataSource.qualifyWithRelationshipKey(String key, Object sourceObject)public EOClassDescription classDescriptionForObjects()
classDescriptionForObjects in class EODataSource
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||