|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides a standard interface to deal with parts that operate and return multiple DataObjects. This is in an attempt to make a DataObject more focused than before. [ie to cut down on size] by separating operations on a single dbobject from operations on a multiple dbobject.
| Method Summary | |
boolean |
find(DataObject criteria)
Finds a single record based upon the criteria specified by the DataObject |
boolean |
find(DataTransferObject criteria)
Finds a single record based upon the criteria specified by the DataTransferObject |
void |
release()
Release the query and all connections/resources associated with the query. |
List |
searchAndRetrieve(DataObject criteria)
Performs a datasource search so that the criteria set in the DataObject is used. |
List |
searchAndRetrieve(DataObject criteria,
String sortOrder)
Performs a datasource search so that the criteria set in the DataObject is used. |
List |
searchAndRetrieve(DataTransferObject criteria)
Performs a datasource search so that the criteria set by a DataTransferObject
is used. |
List |
searchAndRetrieve(DataTransferObject criteria,
String sortOrder)
Performs a datasource search so that the criteria set by a DataTransferObject
is used. |
| Method Detail |
public List searchAndRetrieve(DataObject criteria,
String sortOrder)
throws DataException
criteria - a DataObject with the fields filled out so that
all objects returned will match the fields specified in the DataObjectsortOrder - A pipe delimited string specifying the field(s) to be sorted upon.
May be a single field without any pipes.
java.util.List of objects. May be an empty list if no
objects were found.
DataException - upon error performing the search
public List searchAndRetrieve(DataObject criteria)
throws DataException
criteria - a DataObject with the fields filled out so that
all objects returned will match the fields specified in the DataObject
java.util.List of objects. May be an empty list if no
objects were found.
DataException - upon error performing the search
public List searchAndRetrieve(DataTransferObject criteria)
throws DataException
DataTransferObject
is used. This is different from the DataObject search in that it is often meant
to be used on remote machines where serializing lots of DataObjects is more expensive. Since
a typical DataTransferObject is 1/2 the size of a DataObject, we significantly reduce
network traffic by using this method at the expense of CPU time to translate the DataTransferObject
back into a DataObject
criteria - a DataTransferObject with the fields filled out so that
all objects returned will match the fields specified in the DataTransferObject
java.util.List of DataTransferObject. May be an empty list if no
objects were found.
DataException - upon error performing the search
public List searchAndRetrieve(DataTransferObject criteria,
String sortOrder)
throws DataException
DataTransferObject
is used. This is different from the DataObject search in that it is often meant
to be used on remote machines where serializing lots of DataObjects is more expensive. Since
a typical DataTransferObject is 1/2 the size of a DataObject, we significantly reduce
network traffic by using this method at the expense of CPU time to translate the DataTransferObject
back into a DataObject
criteria - a DataTransferObject with the fields filled out so that
all objects returned will match the fields specified in the DataTransferObjectsortOrder - A pipe delimited string specifying the field(s) to be sorted upon.
May be a single field without any pipes.
java.util.List of DataTransferObject. May be an empty list if no
objects were found.
DataException - upon error performing the search
public boolean find(DataObject criteria)
throws DataException
DataObject
criteria - a DataObject with the fields to match filled out.
DataException - upon error performing the search
public boolean find(DataTransferObject criteria)
throws DataException
DataTransferObject
criteria - a DataTransferObject with the fields to match filled out.
DataException - upon error performing the searchpublic void release()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||