public class DatasourceCallQueryMechanism extends DatabaseQueryMechanism
Purpose: Mechanism used for call queries.
Responsibilities: Executes the appropriate call.
| Constructor and Description |
|---|
DatasourceCallQueryMechanism() |
DatasourceCallQueryMechanism(DatabaseQuery query)
Initialize the state of the query
|
DatasourceCallQueryMechanism(DatabaseQuery query,
DatasourceCall call)
Initialize the state of the query
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCall(DatasourceCall call)
Add the call.
|
DatabaseCall |
cursorSelectAllRows()
Read all rows from the database using a cursored stream.
|
java.lang.Integer |
deleteAll()
INTERNAL:
Delete a collection of objects.
|
java.lang.Integer |
deleteAllUsingTempTables()
Execute deleteAll using temp tables
|
java.lang.Integer |
deleteObject()
INTERNAL:
Delete an object.
|
java.lang.Object |
execute()
INTERNAL:
Execute a call.
|
void |
executeDeferredCall(DatasourceCall call)
Execute the call that was deferred to the commit manager.
|
java.lang.Integer |
executeNoSelect()
Execute a non selecting call.
|
java.lang.Integer |
executeNoSelectCall()
Execute a non selecting call.
|
java.util.Vector |
executeSelect()
INTERNAL:
Execute a selecting call.
|
java.util.Vector |
executeSelectCall()
INTERNAL:
Execute a selecting call.
|
DatasourceCall |
getCall()
Return the call.
|
java.util.Vector |
getCalls()
Normally only a single call is used, however multiple table may require multiple calls on write.
|
boolean |
hasMultipleCalls()
Normally only a single call is used, however multiple table may require multiple calls on write.
|
void |
insertObject()
Insert the object.
|
boolean |
isCallQueryMechanism()
Return true if this is a call query mechanism
|
void |
prepare()
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 |
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 call.
|
void |
prepareDeleteAll()
Pre-build configure the call.
|
void |
prepareDeleteObject()
Pre-build configure the call.
|
void |
prepareDoesExist(DatabaseField field)
Pre-build configure the call.
|
void |
prepareExecute()
Pre-build configure the call.
|
void |
prepareExecuteNoSelect()
Pre-build configure the call.
|
void |
prepareExecuteSelect()
Pre-build configure the call.
|
void |
prepareInsertObject()
Pre-build configure the call.
|
void |
prepareReportQuerySelectAllRows()
Pre-build configure the call.
|
void |
prepareReportQuerySubSelect()
Prepare for a sub select using a call.
|
void |
prepareSelectAllRows()
Pre-build configure the call.
|
void |
prepareSelectOneRow()
Pre-build configure the call.
|
void |
prepareUpdateAll()
Pre-build configure the call.
|
void |
prepareUpdateObject()
Pre-build configure the call.
|
java.util.Vector |
selectAllReportQueryRows()
Read all rows from the database.
|
java.util.Vector |
selectAllRows()
Read all rows from the database.
|
AbstractRecord |
selectOneRow()
Read a single row from the database.
|
DatabaseCall |
selectResultSet()
Read all rows from the database, return ResultSet
|
AbstractRecord |
selectRowForDoesExist(DatabaseField field)
Perform a does exist check
|
void |
setCall(DatasourceCall call)
Set the call.
|
java.lang.Integer |
updateAll()
Update the rows on the database.
|
java.lang.Integer |
updateAllUsingTempTables()
Execute updateAll using temp tables
|
java.lang.Integer |
updateObject()
Update the object.
|
buildSelectionCriteria, checkCacheForObject, clone, clone, executeWrite, executeWriteWithChangeSet, getModifyRow, getQuery, getSelectionCriteria, insertObject, insertObjectForWrite, isExpressionQueryMechanism, isJPQLCallQueryMechanism, isQueryByExampleMechanism, isStatementQueryMechanism, setQuery, unprepare, updateForeignKeyFieldBeforeDelete, updateObjectForWrite, updateObjectForWriteWithChangeSetpublic DatasourceCallQueryMechanism()
public DatasourceCallQueryMechanism(DatabaseQuery query)
query - - owner of mechanismpublic DatasourceCallQueryMechanism(DatabaseQuery query, DatasourceCall call)
query - - owner of mechanismpublic void addCall(DatasourceCall call)
public DatabaseCall cursorSelectAllRows() throws DatabaseException
cursorSelectAllRows in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic DatabaseCall selectResultSet() throws DatabaseException
DatabaseException - - an error has occurred on the databasepublic java.lang.Integer deleteAll()
throws DatabaseException
deleteAll in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic java.lang.Integer deleteAllUsingTempTables()
throws DatabaseException
DatabaseException - - an error has occurred on the database.public java.lang.Integer deleteObject()
throws DatabaseException
deleteObject in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic java.lang.Object execute()
throws DatabaseException
execute in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic java.lang.Integer executeNoSelect()
throws DatabaseException
executeNoSelect in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the database.public java.lang.Integer executeNoSelectCall()
throws DatabaseException
DatabaseException - - an error has occurred on the database.public java.util.Vector executeSelect()
throws DatabaseException
executeSelect in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic java.util.Vector executeSelectCall()
throws DatabaseException
DatabaseException - - an error has occurred on the databasepublic DatasourceCall getCall()
public java.util.Vector getCalls()
public boolean hasMultipleCalls()
public void insertObject()
throws DatabaseException
insertObject in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic void executeDeferredCall(DatasourceCall call)
executeDeferredCall in class DatabaseQueryMechanismpublic boolean isCallQueryMechanism()
isCallQueryMechanism in class DatabaseQueryMechanismpublic void prepare()
prepare in class DatabaseQueryMechanismpublic void prepareCall()
throws QueryException
QueryExceptionpublic void prepareCursorSelectAllRows()
throws QueryException
prepareCursorSelectAllRows in class DatabaseQueryMechanismQueryExceptionpublic void prepareDeleteAll()
prepareDeleteAll in class DatabaseQueryMechanismpublic void prepareDeleteObject()
prepareDeleteObject in class DatabaseQueryMechanismpublic void prepareDoesExist(DatabaseField field)
prepareDoesExist in class DatabaseQueryMechanismpublic void prepareExecuteNoSelect()
prepareExecuteNoSelect in class DatabaseQueryMechanismpublic void prepareExecute()
prepareExecute in class DatabaseQueryMechanismpublic void prepareExecuteSelect()
prepareExecuteSelect in class DatabaseQueryMechanismpublic void prepareInsertObject()
prepareInsertObject in class DatabaseQueryMechanismpublic void prepareReportQuerySelectAllRows()
prepareReportQuerySelectAllRows in class DatabaseQueryMechanismpublic void prepareReportQuerySubSelect()
prepareReportQuerySubSelect in class DatabaseQueryMechanismpublic void prepareSelectAllRows()
prepareSelectAllRows in class DatabaseQueryMechanismpublic void prepareSelectOneRow()
prepareSelectOneRow in class DatabaseQueryMechanismpublic void prepareUpdateObject()
prepareUpdateObject in class DatabaseQueryMechanismpublic void prepareUpdateAll()
prepareUpdateAll in class DatabaseQueryMechanismpublic java.util.Vector selectAllReportQueryRows()
throws DatabaseException
selectAllReportQueryRows in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic java.util.Vector selectAllRows()
throws DatabaseException
selectAllRows in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic AbstractRecord selectOneRow() throws DatabaseException
selectOneRow in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the databasepublic AbstractRecord selectRowForDoesExist(DatabaseField field) throws DatabaseException
selectRowForDoesExist in class DatabaseQueryMechanismfield - - the field used for does exist checkDatabaseException - - an error has occurred on the databasepublic void setCall(DatasourceCall call)
public java.lang.Integer updateObject()
throws DatabaseException
updateObject in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the database.public java.lang.Integer updateAll()
throws DatabaseException
updateAll in class DatabaseQueryMechanismDatabaseException - - an error has occurred on the database.public java.lang.Integer updateAllUsingTempTables()
throws DatabaseException
DatabaseException - - an error has occurred on the database.EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference