|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-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 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 | |
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, isQueryByExampleMechanism, 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
SDKDataStoreException
public void deleteAll() throws SDKDataStoreException
Assume the calls are correct.
SDKDataStoreException
- if an error has occurred on the "data store"public java.lang.Integer deleteObject() throws SDKDataStoreException
Assume the calls are correct.
SDKDataStoreException
- if an error has occurred on the "data store"public java.lang.Integer executeNoSelect() throws SDKDataStoreException
Assume the calls are correct.
SDKDataStoreException
- if an error has occurred on the "data store"public java.util.Vector executeSelect() throws SDKDataStoreException
Assume the calls are correct.
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.
SDKDataStoreException
- if an error has occurred on the "data store"public boolean isCallQueryMechanism()
public void prepare() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareCursorSelectAllRows() throws SDKQueryException
SDKQueryException
public void prepareDeleteAll() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareDeleteObject() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareDoesExist(oracle.toplink.internal.helper.DatabaseField field) throws SDKQueryException
SDKQueryException
public void prepareExecuteNoSelect() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareExecuteSelect() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareForExecution() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareInsertObject() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareReportQuerySelectAllRows() throws SDKQueryException
SDKQueryException
public void prepareReportQuerySubSelect() throws SDKQueryException
SDKQueryException
public void prepareSelectAllReportRows() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareSelectAllRows() throws SDKQueryException
SDKQueryException
- if something is amisspublic void prepareSelectOneRow() throws SDKQueryException
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
SDKQueryException
- if something is amisspublic java.util.Vector selectAllReportQueryRows() throws SDKDataStoreException
SDKDataStoreException
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.
SDKDataStoreException
- if an error has occurred on the "data store"public DatabaseRow selectOneRow() throws SDKDataStoreException
Assume the calls are correct.
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.
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()
public java.lang.Integer updateObject() throws SDKDataStoreException
Assume the calls are correct.
SDKDataStoreException
- 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 |