public class CallQueryMechanism extends DatasourceCallQueryMechanism
Purpose: Mechanism used for custom SQL and stored procedure queries.
Responsibilities: Executes the appropriate call.
call, callsquery| Constructor and Description |
|---|
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 |
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 |
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 ignore the # token.
|
protected void |
updateForeignKeyFieldShallow(WriteObjectQuery writeQuery)
Update the foreign key fields when resolving a bi-directonal reference in a UOW.
|
addCall, cursorSelectAllRows, deleteAll, deleteAllUsingTempTables, deleteObject, executeCall, executeCall, executeNoSelect, executeNoSelectCall, executeSelect, executeSelectCall, getCall, getCalls, hasMultipleCalls, insertObject, isCallQueryMechanism, prepare, prepareCursorSelectAllRows, prepareExecuteNoSelect, prepareInsertObject, prepareReportQueryItems, prepareReportQuerySelectAllRows, prepareReportQuerySubSelect, prepareUpdateAll, selectAllReportQueryRows, selectAllRows, selectOneRow, selectRowForDoesExist, setCall, setCalls, updateAll, updateAllUsingTempTables, updateObjectaddObjectDeletedDuringCommit, addWriteLockFieldForInsert, buildObjectsFromRows, buildSelectionCriteria, checkCacheForObject, clone, clone, deleteObjectForWrite, executeWrite, executeWriteWithChangeSet, getDescriptor, getModifyRow, getQuery, getReadObjectQuery, getSelectionCriteria, getSession, getTranslationRow, getWriteObjectQuery, insertObject, insertObjectForWrite, insertObjectForWriteWithChangeSet, isEJBQLCallQueryMechanism, isExpressionQueryMechanism, isQueryByExampleMechanism, isStatementQueryMechanism, performUserDefinedDelete, performUserDefinedInsert, performUserDefinedUpdate, performUserDefinedWrite, prepareForExecution, registerObjectInIdentityMap, setQuery, shallowDeleteObjectForWrite, shallowInsertObjectForWrite, updateChangeSet, updateChangeSet, updateChangeSet, updateChangeSet, updateForeignKeyFieldAfterInsert, updateForeignKeyFieldBeforeDelete, updateObjectAndRowWithReturnRow, updateObjectAndRowWithSequenceNumber, updateObjectForWrite, updateObjectForWriteWithChangeSetpublic CallQueryMechanism(DatabaseQuery query)
query - - owner of mechanismpublic CallQueryMechanism(DatabaseQuery query, DatabaseCall call)
query - - owner of mechanismcall - - sql callpublic DatabaseCall getDatabaseCall()
public void prepareCall()
throws QueryException
prepareCall in class DatasourceCallQueryMechanismQueryExceptionpublic void prepareDeleteAll()
prepareDeleteAll in class DatasourceCallQueryMechanismpublic void prepareDeleteObject()
prepareDeleteObject in class DatasourceCallQueryMechanismpublic void prepareDoesExist(DatabaseField field)
prepareDoesExist 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()
protected void updateForeignKeyFieldShallow(WriteObjectQuery writeQuery)
updateForeignKeyFieldShallow in class DatasourceCallQueryMechanism