public class CallQueryMechanism extends DatasourceCallQueryMechanism
Purpose: Mechanism used for custom SQL and stored procedure queries.
Responsibilities: Executes the appropriate call.
Constructor and Description |
---|
CallQueryMechanism() |
CallQueryMechanism(DatabaseQuery query)
Initialize the state of the query
|
CallQueryMechanism(DatabaseQuery query,
DatabaseCall call)
Initialize the state of the query
|
Modifier and Type | Method and Description |
---|---|
DatabaseCall |
getDatabaseCall()
Return the call.
|
void |
prepareCall()
INTERNAL:
This is different from 'prepareForExecution' in that this is called on the original query,
and the other is called on the copy of the query.
|
void |
prepareCursorSelectAllRows()
Pre-build configure the SQL call.
|
void |
prepareDeleteAll()
Pre-build configure the SQL call.
|
void |
prepareDeleteObject()
Pre-build configure the SQL call.
|
void |
prepareDoesExist(DatabaseField field)
Pre-build configure the SQL call.
|
void |
prepareExecute()
Pre-build configure the SQL call for an execute call.
|
void |
prepareExecuteSelect()
Pre-build configure the SQL call.
|
void |
prepareSelectAllRows()
Pre-build configure the SQL call.
|
void |
prepareSelectOneRow()
Pre-build configure the SQL call.
|
void |
prepareUpdateObject()
Pre-build configure the SQL call.
|
void |
setCallHasCustomSQLArguments()
INTERNAL:
Configure the call to be a dynamic custom SQL call, so that it ignores the # token.
|
void |
unprepare()
Unprepare the call if required.
|
void |
updateForeignKeyFieldBeforeDelete()
Update the foreign key fields to null when resolving a deletion cycle.
|
addCall, cursorSelectAllRows, deleteAll, deleteAllUsingTempTables, deleteObject, execute, executeDeferredCall, executeNoSelect, executeNoSelectCall, executeSelect, executeSelectCall, getCall, getCalls, hasMultipleCalls, insertObject, isCallQueryMechanism, prepare, prepareExecuteNoSelect, prepareInsertObject, prepareReportQuerySelectAllRows, prepareReportQuerySubSelect, prepareUpdateAll, selectAllReportQueryRows, selectAllRows, selectOneRow, selectResultSet, selectRowForDoesExist, setCall, updateAll, updateAllUsingTempTables, updateObject
buildSelectionCriteria, checkCacheForObject, clone, clone, executeWrite, executeWriteWithChangeSet, getModifyRow, getQuery, getSelectionCriteria, insertObject, insertObjectForWrite, isExpressionQueryMechanism, isJPQLCallQueryMechanism, isQueryByExampleMechanism, isStatementQueryMechanism, setQuery, updateObjectForWrite, updateObjectForWriteWithChangeSet
public CallQueryMechanism()
public CallQueryMechanism(DatabaseQuery query)
query
- - owner of mechanismpublic CallQueryMechanism(DatabaseQuery query, DatabaseCall call)
query
- - owner of mechanismcall
- - sql callpublic DatabaseCall getDatabaseCall()
public void unprepare()
unprepare
in class DatabaseQueryMechanism
public void prepareCall() throws QueryException
prepareCall
in class DatasourceCallQueryMechanism
QueryException
public void prepareCursorSelectAllRows() throws QueryException
prepareCursorSelectAllRows
in class DatasourceCallQueryMechanism
QueryException
public void prepareDeleteAll()
prepareDeleteAll
in class DatasourceCallQueryMechanism
public void prepareDeleteObject()
prepareDeleteObject
in class DatasourceCallQueryMechanism
public void prepareDoesExist(DatabaseField field)
prepareDoesExist
in class DatasourceCallQueryMechanism
public void prepareExecute()
prepareExecute
in class DatasourceCallQueryMechanism
public void prepareExecuteSelect()
prepareExecuteSelect
in class DatasourceCallQueryMechanism
public void prepareSelectAllRows()
prepareSelectAllRows
in class DatasourceCallQueryMechanism
public void prepareSelectOneRow()
prepareSelectOneRow
in class DatasourceCallQueryMechanism
public void prepareUpdateObject()
prepareUpdateObject
in class DatasourceCallQueryMechanism
public void setCallHasCustomSQLArguments()
public void updateForeignKeyFieldBeforeDelete()
updateForeignKeyFieldBeforeDelete
in class DatabaseQueryMechanism
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference