|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.jdbc.JDBCQuery
| Constructor Summary | |
JDBCQuery()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCQuery()
| Method Detail |
public List searchAndRetrieve(DataObject criteria,
String sortOrder)
throws DataException
DataQueryInterface
searchAndRetrieve in interface DataQueryInterfacecriteria - 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
DataQueryInterface
searchAndRetrieve in interface DataQueryInterfacecriteria - 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
DataQueryInterfaceDataTransferObject
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
searchAndRetrieve in interface DataQueryInterfacecriteria - 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
DataQueryInterfaceDataTransferObject
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
searchAndRetrieve in interface DataQueryInterfacecriteria - 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
DataQueryInterfaceDataObject
find in interface DataQueryInterfacecriteria - a DataObject with the fields to match filled out.
DataException - upon error performing the search
public boolean find(DataTransferObject criteria)
throws DataException
DataQueryInterfaceDataTransferObject
find in interface DataQueryInterfacecriteria - a DataTransferObject with the fields to match filled out.
DataException - upon error performing the searchpublic void release()
release in interface DataQueryInterface
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||