|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.internal.queryframework.DatabaseQueryMechanism | +--oracle.toplink.sdk.SDKQueryMechanism
The SDKQueryMechanism
class implements the
DatabaseQueryMechanism
protocol by redirecting
all queries to a collection
of calls that is provided to the mechanism when it is built.
So just about everything ends up going through
executeSelectCalls()
or
executeNoSelectCalls()
, which, in turn, send the appropriate
message to the SDKAccessor
.
SDKAccessor
,
SDKCall
,
AbstractSDKCall
, Serialized FormConstructor Summary |
SDKQueryMechanism(DatabaseQuery query)
Construct a new mechanism for the specified query. |
SDKQueryMechanism(DatabaseQuery query,
SDKCall call)
Construct a new mechanism for the specified query and call. |
Method Summary |
Type | Method |
---|---|
void |
addCall(SDKCall call)
Add a call. |
oracle.toplink.internal.databaseaccess.DatabaseCall |
cursorSelectAllRows()
Read all rows from the database using a cursored stream. |
void |
deleteAll()
Delete a collection of objects. |
java.lang.Integer |
deleteObject()
Delete an object. |
java.lang.Integer |
executeNoSelect()
Execute a raw (non-object), non-selecting database call. |
java.util.Vector |
executeSelect()
Execute a raw (non-object) database call that returns a result. |
java.util.Vector |
getCalls()
Return the mechanism's calls. |
void |
insertObject()
Insert an object. |
boolean |
isCallQueryMechanism()
Return true if this is a call query mechanism. |
void |
prepare()
This is different from 'prepareForExecution()' in that this is called on the original query, and the other is called on the clone of the query. |
void |
prepareCursorSelectAllRows()
Pre-pare for a cursored execute. |
void |
prepareDeleteAll()
Prepare for a delete all. |
void |
prepareDeleteObject()
Prepare for a delete. |
void |
prepareDoesExist(oracle.toplink.internal.helper.DatabaseField field)
Pre-pare for a select execute. |
void |
prepareExecuteNoSelect()
Prepare for a raw (non-object), non-selecting call. |
void |
prepareExecuteSelect()
Prepare for a raw (non-object) select call. |
void |
prepareForExecution()
All the query mechanism-related things are initialized here. |
void |
prepareInsertObject()
Prepare for an insert. |
void |
prepareReportQuerySelectAllRows()
Pre-pare for a select execute. |
void |
prepareReportQuerySubSelect()
Pre-pare a report query for a sub-select. |
void |
prepareSelectAllReportRows()
Prepare for a report query. |
void |
prepareSelectAllRows()
Prepare for a select returning (possibly) multiple rows. |
void |
prepareSelectOneRow()
Prepare for a select returning a single row. |
void |
prepareSelectRowForDoesExist(oracle.toplink.internal.helper.DatabaseField field)
Prepare for an existence check. |
void |
prepareStartCursor()
Prepare for a cursored select. |
void |
prepareUpdateObject()
Prepare for an update. |
java.util.Vector |
selectAllReportRows()
Read and return rows from the database for a report query. |
java.util.Vector |
selectAllRows()
Read and return rows from the database. |
DatabaseRow |
selectOneRow()
Read and return a row from the database. |
DatabaseRow |
selectRowForDoesExist(oracle.toplink.internal.helper.DatabaseField field)
Read and return a row from the database for an existence check. |
oracle.toplink.internal.databaseaccess.DatabaseCall |
startCursor()
Start reading all the rows from the database for a cursored stream or scrollable cursor. |
java.lang.String |
toString()
|
java.lang.Integer |
updateObject()
Update an object. |
Methods inherited from class oracle.toplink.internal.queryframework.DatabaseQueryMechanism |
buildObjectsFromRows, buildSelectionCriteria, checkCacheForObject, clone, executeWrite, getModifyRow, getQuery, getSelectionCriteria, insertObjectForWrite, isEJBQLCallQueryMechanism, isExpressionQueryMechanism, isStatementQueryMechanism, setQuery,
updateObjectForWrite |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SDKQueryMechanism(DatabaseQuery query)
public SDKQueryMechanism(DatabaseQuery query, SDKCall call)
Method Detail |
public void addCall(SDKCall call)
public oracle.toplink.internal.databaseaccess.DatabaseCall cursorSelectAllRows() throws SDKDataStoreException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
cursorSelectAllRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic void deleteAll() throws SDKDataStoreException
Assume the calls are correct.
deleteAll
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public java.lang.Integer deleteObject() throws SDKDataStoreException
Assume the calls are correct.
deleteObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public java.lang.Integer executeNoSelect() throws SDKDataStoreException
Assume the calls are correct.
executeNoSelect
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public java.util.Vector executeSelect() throws SDKDataStoreException
Assume the calls are correct.
executeSelect
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public java.util.Vector getCalls()
public void insertObject() throws SDKDataStoreException
Assume the calls are correct.
insertObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public boolean isCallQueryMechanism()
isCallQueryMechanism
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public void prepare() throws SDKQueryException
prepare
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareCursorSelectAllRows() throws SDKQueryException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
prepareCursorSelectAllRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public void prepareDeleteAll() throws SDKQueryException
prepareDeleteAll
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareDeleteObject() throws SDKQueryException
prepareDeleteObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareDoesExist(oracle.toplink.internal.helper.DatabaseField field) throws SDKQueryException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
prepareDoesExist
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public void prepareExecuteNoSelect() throws SDKQueryException
prepareExecuteNoSelect
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareExecuteSelect() throws SDKQueryException
prepareExecuteSelect
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareForExecution() throws SDKQueryException
prepareForExecution
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareInsertObject() throws SDKQueryException
prepareInsertObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareReportQuerySelectAllRows() throws SDKQueryException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
prepareReportQuerySelectAllRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public void prepareReportQuerySubSelect() throws SDKQueryException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
prepareReportQuerySubSelect
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public void prepareSelectAllReportRows() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareSelectAllRows() throws SDKQueryException
prepareSelectAllRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareSelectOneRow() throws SDKQueryException
prepareSelectOneRow
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic void prepareSelectRowForDoesExist(oracle.toplink.internal.helper.DatabaseField field) throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareStartCursor() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareUpdateObject() throws SDKQueryException
prepareUpdateObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKQueryException
- if something is amisspublic java.util.Vector selectAllReportQueryRows() throws SDKDataStoreException
oracle.toplink.internal.queryframework.DatabaseQueryMechanism
selectAllReportQueryRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
public java.util.Vector selectAllReportRows() throws SDKDataStoreException
Assume the calls are correct.
SDKDataStoreException
- if an error has occurred on the "data store"public java.util.Vector selectAllRows() throws SDKDataStoreException
Assume the calls are correct.
selectAllRows
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public DatabaseRow selectOneRow() throws SDKDataStoreException
Assume the calls are correct.
selectOneRow
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public DatabaseRow selectRowForDoesExist(oracle.toplink.internal.helper.DatabaseField field) throws SDKDataStoreException
Assume the calls are correct.
selectRowForDoesExist
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store"public oracle.toplink.internal.databaseaccess.DatabaseCall startCursor() throws SDKDataStoreException
Assume the calls are correct.
Cursors are not currently supported.
SDKDataStoreException
- if an error has occurred on the "data store"public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Integer updateObject() throws SDKDataStoreException
Assume the calls are correct.
updateObject
in class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
SDKDataStoreException
- if an error has occurred on the "data store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |