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, updateObjectForWriteWithChangeSet
public 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 DatabaseQueryMechanism
DatabaseException
- - 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 DatabaseQueryMechanism
DatabaseException
- - 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 DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic java.lang.Object execute() throws DatabaseException
execute
in class DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic java.lang.Integer executeNoSelect() throws DatabaseException
executeNoSelect
in class DatabaseQueryMechanism
DatabaseException
- - 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 DatabaseQueryMechanism
DatabaseException
- - 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 DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic void executeDeferredCall(DatasourceCall call)
executeDeferredCall
in class DatabaseQueryMechanism
public boolean isCallQueryMechanism()
isCallQueryMechanism
in class DatabaseQueryMechanism
public void prepare()
prepare
in class DatabaseQueryMechanism
public void prepareCall() throws QueryException
QueryException
public void prepareCursorSelectAllRows() throws QueryException
prepareCursorSelectAllRows
in class DatabaseQueryMechanism
QueryException
public void prepareDeleteAll()
prepareDeleteAll
in class DatabaseQueryMechanism
public void prepareDeleteObject()
prepareDeleteObject
in class DatabaseQueryMechanism
public void prepareDoesExist(DatabaseField field)
prepareDoesExist
in class DatabaseQueryMechanism
public void prepareExecuteNoSelect()
prepareExecuteNoSelect
in class DatabaseQueryMechanism
public void prepareExecute()
prepareExecute
in class DatabaseQueryMechanism
public void prepareExecuteSelect()
prepareExecuteSelect
in class DatabaseQueryMechanism
public void prepareInsertObject()
prepareInsertObject
in class DatabaseQueryMechanism
public void prepareReportQuerySelectAllRows()
prepareReportQuerySelectAllRows
in class DatabaseQueryMechanism
public void prepareReportQuerySubSelect()
prepareReportQuerySubSelect
in class DatabaseQueryMechanism
public void prepareSelectAllRows()
prepareSelectAllRows
in class DatabaseQueryMechanism
public void prepareSelectOneRow()
prepareSelectOneRow
in class DatabaseQueryMechanism
public void prepareUpdateObject()
prepareUpdateObject
in class DatabaseQueryMechanism
public void prepareUpdateAll()
prepareUpdateAll
in class DatabaseQueryMechanism
public java.util.Vector selectAllReportQueryRows() throws DatabaseException
selectAllReportQueryRows
in class DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic java.util.Vector selectAllRows() throws DatabaseException
selectAllRows
in class DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic AbstractRecord selectOneRow() throws DatabaseException
selectOneRow
in class DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the databasepublic AbstractRecord selectRowForDoesExist(DatabaseField field) throws DatabaseException
selectRowForDoesExist
in class DatabaseQueryMechanism
field
- - 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 DatabaseQueryMechanism
DatabaseException
- - an error has occurred on the database.public java.lang.Integer updateAll() throws DatabaseException
updateAll
in class DatabaseQueryMechanism
DatabaseException
- - 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