public class CallQueryMechanism extends DatasourceCallQueryMechanism
Purpose: Mechanism used for custom SQL and stored procedure queries.
Responsibilities: Executes the appropriate call.
call, calls
query
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, updateObject
addObjectDeletedDuringCommit, 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, updateObjectForWriteWithChangeSet
public 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 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 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()
protected void updateForeignKeyFieldShallow(WriteObjectQuery writeQuery)
updateForeignKeyFieldShallow
in class DatasourceCallQueryMechanism