public class EJBQLCallQueryMechanism extends ExpressionQueryMechanism
Purpose: Mechanism used for EJBQL.
Responsibilities: Executes the appropriate call.
Modifier and Type | Field and Description |
---|---|
protected EJBQLCall |
ejbqlCall |
selectionCriteria
sqlStatement, sqlStatements
call, calls
query
Constructor and Description |
---|
EJBQLCallQueryMechanism(DatabaseQuery query)
Initialize the state of the query
|
EJBQLCallQueryMechanism(DatabaseQuery query,
EJBQLCall call)
INTERNAL
Initialize the state of the query
|
Modifier and Type | Method and Description |
---|---|
void |
buildSelectionCriteria(AbstractSession newSession)
Internal:
In the case of EJBQL, an expression needs to be generated, and the query populated.
|
Object |
clone()
Clone the mechanism
|
EJBQLCall |
getEJBQLCall() |
boolean |
isEJBQLCallQueryMechanism()
Delete a collection of objects
This should be overriden by subclasses.
|
void |
prepareForExecution()
All the query mechanism related things are initialized here.
|
void |
setEJBQLCall(EJBQLCall newEJBQLCall) |
aliasFields, aliasPresetFields, buildBaseSelectionCriteria, buildBaseSelectStatement, buildConcreteSelectStatement, buildDeleteAllStatement, buildDeleteAllStatementForMapping, buildDeleteAllStatementsForMappings, buildDeleteAllStatementsForMappingsWithTempTable, buildDeleteStatement, buildDeleteStatementForDeleteAllQuery, buildDeleteStatementForDeleteAllQuery, buildInsertStatement, buildNormalSelectStatement, buildReportQuerySelectStatement, buildReportQuerySelectStatement, buildSelectStatementForDoesExist, buildStatementsForDeleteAllForTempTables, buildStatementsForUpdateAllForTempTables, buildUpdateAllStatement, buildUpdateAllStatementForOracleAnonymousBlock, buildUpdateStatement, checkCacheForObject, clone, computeAndSetItemOffset, createSQLSelectStatementForAssignedExpressionForUpdateAll, createSQLSelectStatementForModifyAll, createSQLSelectStatementForModifyAll, createSQLSelectStatementForModifyAll, createSQLSelectStatementForModifyAll, createSQLSelectStatementForModifyAllForTempTable, createSQLSelectStatementForUpdateAllForOracleAnonymousBlock, extractStatementFromItem, getAliasTableName, getExpressionBuilder, getHighestDescriptorMappingTable, getNonSelectionFields, getPrimaryKeyFieldsForTable, getPrimaryKeyFieldsForTable, getSelectionCriteria, getSelectionFields, isExpressionQueryMechanism, isStatementQueryMechanism, prepare, prepareCursorSelectAllRows, prepareDeleteAll, prepareDeleteAll, prepareDeleteAllUsingTempStorage, prepareDeleteAllUsingTempTables, prepareDeleteObject, prepareDoesExist, prepareInsertObject, prepareReportQuerySelectAllRows, prepareReportQuerySubSelect, prepareSelectAllRows, prepareSelectOneRow, prepareUpdateAll, prepareUpdateAllUsingOracleAnonymousBlock, prepareUpdateAllUsingTempStorage, prepareUpdateAllUsingTempTables, prepareUpdateObject, selectAllReportQueryRows, selectAllRows, selectAllRowsFromConcreteTable, selectAllRowsFromTable, selectOneRow, selectOneRowFromConcreteTable, selectOneRowFromTable, setSelectionCriteria
clearStatement, deleteObject, executeNoSelect, getSQLStatement, getSQLStatements, hasMultipleStatements, insertObject, insertObject, isCallQueryMechanism, prepareExecuteNoSelect, prepareExecuteSelect, setCallFromStatement, setSQLStatement, setSQLStatements, updateObject
getDatabaseCall, prepareCall, setCallHasCustomSQLArguments, updateForeignKeyFieldShallow
addCall, cursorSelectAllRows, deleteAll, deleteAllUsingTempTables, executeCall, executeCall, executeNoSelectCall, executeSelect, executeSelectCall, getCall, getCalls, hasMultipleCalls, prepareReportQueryItems, selectRowForDoesExist, setCall, setCalls, updateAll, updateAllUsingTempTables
addObjectDeletedDuringCommit, addWriteLockFieldForInsert, buildObjectsFromRows, deleteObjectForWrite, executeWrite, executeWriteWithChangeSet, getDescriptor, getModifyRow, getQuery, getReadObjectQuery, getSession, getTranslationRow, getWriteObjectQuery, insertObjectForWrite, insertObjectForWriteWithChangeSet, isQueryByExampleMechanism, performUserDefinedDelete, performUserDefinedInsert, performUserDefinedUpdate, performUserDefinedWrite, registerObjectInIdentityMap, setQuery, shallowDeleteObjectForWrite, shallowInsertObjectForWrite, updateChangeSet, updateChangeSet, updateChangeSet, updateChangeSet, updateForeignKeyFieldAfterInsert, updateForeignKeyFieldBeforeDelete, updateObjectAndRowWithReturnRow, updateObjectAndRowWithSequenceNumber, updateObjectForWrite, updateObjectForWriteWithChangeSet
protected EJBQLCall ejbqlCall
public EJBQLCallQueryMechanism(DatabaseQuery query)
query
- - owner of mechanismpublic EJBQLCallQueryMechanism(DatabaseQuery query, EJBQLCall call)
query
- - owner of mechanismcall
- - Database callpublic Object clone()
DatabaseQueryMechanism
clone
in class DatabaseQueryMechanism
public void buildSelectionCriteria(AbstractSession newSession)
buildSelectionCriteria
in class DatabaseQueryMechanism
public EJBQLCall getEJBQLCall()
public boolean isEJBQLCallQueryMechanism()
DatabaseQueryMechanism
isEJBQLCallQueryMechanism
in class DatabaseQueryMechanism
public void prepareForExecution() throws QueryException
prepareForExecution
in class DatabaseQueryMechanism
QueryException
public void setEJBQLCall(EJBQLCall newEJBQLCall)
Copyright © 2022. All rights reserved.