|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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 Form| Constructor 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 | |
void |
addCall(SDKCall call)Add a call. |
oracle.toplink.internal.databaseaccess.DatabaseCall |
cursorSelectAllRows() |
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() |
void |
prepareDeleteAll()Prepare for a delete all. |
void |
prepareDeleteObject()Prepare for a delete. |
void |
prepareDoesExist(oracle.toplink.internal.helper.DatabaseField field) |
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() |
void |
prepareReportQuerySubSelect() |
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 |
selectAllReportQueryRows() |
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, executeWriteWithChangeSet, getModifyRow, getQuery, getSelectionCriteria, insertObject, insertObjectForWrite, insertObjectForWriteWithChangeSet, isEJBQLCallQueryMechanism, isExpressionQueryMechanism, isStatementQueryMechanism, setQuery, updateObjectForWrite, updateObjectForWriteWithChangeSet |
| 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
cursorSelectAllRows in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKDataStoreException
public void deleteAll()
throws SDKDataStoreException
Assume the calls are correct.
deleteAll in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareCursorSelectAllRows()
throws SDKQueryException
prepareCursorSelectAllRows in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException
public void prepareDeleteAll()
throws SDKQueryException
prepareDeleteAll in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareDeleteObject()
throws SDKQueryException
prepareDeleteObject in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareDoesExist(oracle.toplink.internal.helper.DatabaseField field)
throws SDKQueryException
prepareDoesExist in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException
public void prepareExecuteNoSelect()
throws SDKQueryException
prepareExecuteNoSelect in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareExecuteSelect()
throws SDKQueryException
prepareExecuteSelect in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareForExecution()
throws SDKQueryException
prepareForExecution in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareInsertObject()
throws SDKQueryException
prepareInsertObject in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareReportQuerySelectAllRows()
throws SDKQueryException
prepareReportQuerySelectAllRows in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException
public void prepareReportQuerySubSelect()
throws SDKQueryException
prepareReportQuerySubSelect in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException
public void prepareSelectAllReportRows()
throws SDKQueryException
SDKQueryException - if something is amiss
public void prepareSelectAllRows()
throws SDKQueryException
prepareSelectAllRows in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareSelectOneRow()
throws SDKQueryException
prepareSelectOneRow in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public void prepareSelectRowForDoesExist(oracle.toplink.internal.helper.DatabaseField field)
throws SDKQueryException
SDKQueryException - if something is amiss
public void prepareStartCursor()
throws SDKQueryException
SDKQueryException - if something is amiss
public void prepareUpdateObject()
throws SDKQueryException
prepareUpdateObject in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKQueryException - if something is amiss
public java.util.Vector selectAllReportQueryRows()
throws SDKDataStoreException
selectAllReportQueryRows in class oracle.toplink.internal.queryframework.DatabaseQueryMechanismSDKDataStoreException
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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - 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.DatabaseQueryMechanismSDKDataStoreException - if an error has occurred on the "data store
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||