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, updateObjectbuildSelectionCriteria, checkCacheForObject, clone, clone, executeWrite, executeWriteWithChangeSet, getModifyRow, getQuery, getSelectionCriteria, insertObject, insertObjectForWrite, isExpressionQueryMechanism, isJPQLCallQueryMechanism, isQueryByExampleMechanism, isStatementQueryMechanism, setQuery, updateObjectForWrite, updateObjectForWriteWithChangeSetpublic 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 DatabaseQueryMechanismpublic void prepareCall()
throws QueryException
prepareCall in class DatasourceCallQueryMechanismQueryExceptionpublic void prepareCursorSelectAllRows()
throws QueryException
prepareCursorSelectAllRows in class DatasourceCallQueryMechanismQueryExceptionpublic void prepareDeleteAll()
prepareDeleteAll in class DatasourceCallQueryMechanismpublic void prepareDeleteObject()
prepareDeleteObject in class DatasourceCallQueryMechanismpublic void prepareDoesExist(DatabaseField field)
prepareDoesExist in class DatasourceCallQueryMechanismpublic void prepareExecute()
prepareExecute in class DatasourceCallQueryMechanismpublic void prepareExecuteSelect()
prepareExecuteSelect in class DatasourceCallQueryMechanismpublic void prepareSelectAllRows()
prepareSelectAllRows in class DatasourceCallQueryMechanismpublic void prepareSelectOneRow()
prepareSelectOneRow in class DatasourceCallQueryMechanismpublic void prepareUpdateObject()
prepareUpdateObject in class DatasourceCallQueryMechanismpublic void setCallHasCustomSQLArguments()
public void updateForeignKeyFieldBeforeDelete()
updateForeignKeyFieldBeforeDelete in class DatabaseQueryMechanismEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference