Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.sdk
Class SDKQueryMechanism

java.lang.Object
  extended by oracle.toplink.internal.queryframework.DatabaseQueryMechanism
      extended by oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
          extended by oracle.toplink.sdk.SDKQueryMechanism
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

Deprecated. since OracleAS TopLink 10g (10.1.3). This class is replaced by oracle.toplink.eis

public class SDKQueryMechanism
extends oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism

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.

Since:
TOPLink/Java 1.0
See Also:
SDKAccessor, SDKCall, AbstractSDKCall, Serialized Form

Constructor Summary
SDKQueryMechanism(DatabaseQuery query)
          Deprecated. Construct a new mechanism for the specified query.
SDKQueryMechanism(DatabaseQuery query, AbstractSDKCall call)
          Deprecated. Construct a new mechanism for the specified query and call.
 
Method Summary
 DatabaseCall cursorSelectAllRows()
          Deprecated. Read all rows from the database using a cursored stream.
 void prepareCursorSelectAllRows()
          Deprecated. Pre-build configure the call.
 void prepareStartCursor()
          Deprecated. Prepare for a cursored select.
 void setCall(DatasourceCall call)
          Deprecated. Set the call.
 DatabaseCall startCursor()
          Deprecated. Start reading all the rows from the database for a cursored stream or scrollable cursor.
 
Methods inherited from class oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
addCall, deleteAllUsingTempTables, executeNoSelect, executeNoSelectCall, getCall, getCalls, hasMultipleCalls, insertObject, isCallQueryMechanism, prepareDeleteAll, prepareDeleteObject, prepareDoesExist, prepareExecuteNoSelect, prepareExecuteSelect, prepareInsertObject, prepareReportQuerySelectAllRows, prepareReportQuerySubSelect, prepareSelectAllRows, prepareSelectOneRow, prepareUpdateAll, prepareUpdateObject, selectAllReportQueryRows, selectAllRows, selectOneRow, selectRowForDoesExist, updateAll, updateAllUsingTempTables, updateObject
 
Methods inherited from class oracle.toplink.internal.queryframework.DatabaseQueryMechanism
buildObjectsFromRows, buildSelectionCriteria, checkCacheForObject, clone, clone, executeWrite, executeWriteWithChangeSet, getModifyRow, getQuery, getSelectionCriteria, insertObject, insertObjectForWrite, isEJBQLCallQueryMechanism, isExpressionQueryMechanism, isQueryByExampleMechanism, isStatementQueryMechanism, setQuery, updateChangeSet, updateObjectForWrite, updateObjectForWriteWithChangeSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDKQueryMechanism

public SDKQueryMechanism(DatabaseQuery query)
Deprecated. 
Construct a new mechanism for the specified query.


SDKQueryMechanism

public SDKQueryMechanism(DatabaseQuery query,
                         AbstractSDKCall call)
Deprecated. 
Construct a new mechanism for the specified query and call.

Method Detail

setCall

public void setCall(DatasourceCall call)
Deprecated. 
Set the call.

Overrides:
setCall in class oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism

cursorSelectAllRows

public DatabaseCall cursorSelectAllRows()
                                                                        throws SDKDataStoreException
Deprecated. 
Description copied from class: oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
Read all rows from the database using a cursored stream.

Overrides:
cursorSelectAllRows in class oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
Throws:
SDKDataStoreException

prepareCursorSelectAllRows

public void prepareCursorSelectAllRows()
                                throws SDKQueryException
Deprecated. 
Description copied from class: oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
Pre-build configure the call.

Overrides:
prepareCursorSelectAllRows in class oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism
Throws:
SDKQueryException

prepareStartCursor

public void prepareStartCursor()
                        throws SDKQueryException
Deprecated. 
Prepare for a cursored select. This is sent to the original query before cloning.

Throws:
SDKQueryException - if something is amiss

startCursor

public DatabaseCall startCursor()
                                                                throws SDKDataStoreException
Deprecated. 
Start reading all the rows from the database for a cursored stream or scrollable cursor. Return the DatabaseCall - the CursorPolicy will perform the actual reading of the rows from the database.

Assume the calls are correct.

Cursors are not currently supported.

Returns:
the call
Throws:
SDKDataStoreException - if an error has occurred on the "data store"

Copyright © 1998, 2010, Oracle. All Rights Reserved.