|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Nestable indicates that the derived class includes nested data objects.
While the dataobject 'cluster' should be able to be acted on as a single unit, once in a while, it is necessary to get at the internal or "nested" data objects.
An example of the Nestable usage is in
com.jcorporate.expresso.services.controller.dbmaint.ViewBlob
in conjunction with a
com.jcorporate.expresso.cores.dataobjects.jdbc.JoinedDataObject.
The ViewBlob routine needs to get to the low-level JDBC data objects rather
than operate on the join as a whole. Since JoinedDataObject implements the
Nestable interface. It is then possible to work with the underlying
JDBCDataObjects in the join.
| Method Summary | |
DataObject[] |
getAllNested()
Retrieve an array of all nested data objects. |
String |
getFieldFromNestedName(String fieldName)
Often times, field names for the external interface will be different from the of a nested field name in a data object. |
DataObject |
getNestedFromFieldName(String fieldName)
Retrieves a nested dataobject based upon the public field name that the DataObject publishes. |
| Method Detail |
public DataObject getNestedFromFieldName(String fieldName)
The actual usage of the naming convention will differ from the, thus
you'll need to use getMetaData().getFieldList() to get the names of the
fields of a Nestable object to get a valid field Name
fieldName - the full field name to get the nested data object.
IllegalArgumentException - if the field name does not map to any
DataObjectpublic String getFieldFromNestedName(String fieldName)
getNestedFromFieldName()
fieldName - The external name of the field
IllegalArgumentException - if the given field name cannot map
to a field.public DataObject[] getAllNested()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||