| |
|
| com.jcorporate.expresso.core.dataobjects.DataQueryInterface
All known Subclasses: com.jcorporate.expresso.core.dataobjects.jdbc.JDBCQuery,
DataQueryInterface | public interface DataQueryInterface (Code) | | 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.
author: Michael Rimov since: Expresso 5.0 |
Method Summary | |
public boolean | find(DataObject criteria) Finds a single record based upon the criteria specified by the DataObject
Parameters: criteria - a DataObject with the fields to match filled out. | public boolean | find(DataTransferObject criteria) Finds a single record based upon the criteria specified by the DataTransferObject
Parameters: criteria - a DataTransferObject with the fields to match filled out. | public void | release() Release the query and all connections/resources associated with the
query. | public List | searchAndRetrieve(DataObject criteria, String sortOrder) Performs a datasource search so that the criteria set in the DataObject
is used.
Parameters: criteria - a DataObject with the fields filled out so thatall objects returned will match the fields specified in the DataObject Parameters: sortOrder - A pipe delimited string specifying the field(s) to be sorted upon.May be a single field without any pipes. | public List | searchAndRetrieve(DataObject criteria) Performs a datasource search so that the criteria set in the DataObject
is used. | public List | searchAndRetrieve(DataTransferObject criteria) Performs a datasource search so that the criteria set by a DataTransferObject
is used. | public List | searchAndRetrieve(DataTransferObject criteria, String sortOrder) Performs a datasource search so that the criteria set by a DataTransferObject
is used. |
find | public boolean find(DataObject criteria) throws DataException(Code) | | Finds a single record based upon the criteria specified by the DataObject
Parameters: criteria - a DataObject with the fields to match filled out. boolean true if a record was found, and the criteria parameteris filled with the first data object found. throws: DataException - upon error performing the search |
find | public boolean find(DataTransferObject criteria) throws DataException(Code) | | Finds a single record based upon the criteria specified by the DataTransferObject
Parameters: criteria - a DataTransferObject with the fields to match filled out. boolean true if a record was found, and the criteria parameteris filled with the first data object found. throws: DataException - upon error performing the search |
release | public void release()(Code) | | Release the query and all connections/resources associated with the
query.
|
searchAndRetrieve | public List searchAndRetrieve(DataObject criteria, String sortOrder) throws DataException(Code) | | Performs a datasource search so that the criteria set in the DataObject
is used.
Parameters: criteria - a DataObject with the fields filled out so thatall objects returned will match the fields specified in the DataObject Parameters: sortOrder - 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 noobjects were found. throws: DataException - upon error performing the search |
searchAndRetrieve | public List searchAndRetrieve(DataObject criteria) throws DataException(Code) | | Performs a datasource search so that the criteria set in the DataObject
is used. There is no specified sort order for this version of the method
Parameters: criteria - a DataObject with the fields filled out so thatall objects returned will match the fields specified in the DataObject java.util.List of objects. May be an empty list if noobjects were found. throws: DataException - upon error performing the search |
searchAndRetrieve | public List searchAndRetrieve(DataTransferObject criteria) throws DataException(Code) | | Performs a datasource search so that the criteria set by a 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
Parameters: criteria - a DataTransferObject with the fields filled out so thatall objects returned will match the fields specified in the DataTransferObject java.util.List of DataTransferObject . May be an empty list if noobjects were found. throws: DataException - upon error performing the search |
searchAndRetrieve | public List searchAndRetrieve(DataTransferObject criteria, String sortOrder) throws DataException(Code) | | Performs a datasource search so that the criteria set by a 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
Parameters: criteria - a DataTransferObject with the fields filled out so thatall objects returned will match the fields specified in the DataTransferObject Parameters: sortOrder - 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 noobjects were found. throws: DataException - upon error performing the search |
|
|
|