Purpose: Mechanism used for call queries.
Responsibilities: Executes the appropriate call.
| Modifier and Type | Field and Description |
|---|---|
| protected DatasourceCall | |
| protected Vector | calls
Normally only a single call is used, however multiple table may require multiple calls on write. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DatasourceCallQueryMechanism(DatabaseQuery
- owner of mechanism query)Initialize the state of the query |
| public | DatasourceCallQueryMechanism(DatabaseQuery
- owner of mechanism query, DatasourceCall call)Initialize the state of the query |
| call | back to summary |
|---|---|
| protected DatasourceCall call | |
| calls | back to summary |
|---|---|
| protected Vector<E> calls Normally only a single call is used, however multiple table may require multiple calls on write. | |
| DatasourceCallQueryMechanism | back to summary |
|---|---|
| public DatasourceCallQueryMechanism() | |
| DatasourceCallQueryMechanism | back to summary |
|---|---|
| public DatasourceCallQueryMechanism(DatabaseQuery query) Initialize the state of the query
| |
| DatasourceCallQueryMechanism | back to summary |
|---|---|
| public DatasourceCallQueryMechanism(DatabaseQuery query, DatasourceCall call) Initialize the state of the query
| |
| addCall | back to summary |
|---|---|
| public void addCall(DatasourceCall call) Add the call. | |
| clone | back to summary |
|---|---|
| public DatabaseQueryMechanism clone(DatabaseQuery queryClone) Overrides org. Clone the DatasourceCall and
| |
| computeAndSetItemOffset | back to summary |
|---|---|
| protected int computeAndSetItemOffset(ReportQuery query, List<ReportItem> items, int itemOffset) calculate indexes for given items, given the current Offset | |
| cursorSelectAllRows | back to summary |
|---|---|
| public DatabaseCall cursorSelectAllRows() throws DatabaseException Implements abstract org. Read all rows from the database using a cursored stream.
| |
| deleteAll | back to summary |
|---|---|
| public Integer deleteAll() throws DatabaseException Implements abstract org. INTERNAL: Delete a collection of objects. Assume call is correct.
| |
| deleteAllUsingTempTables | back to summary |
|---|---|
| public Integer deleteAllUsingTempTables() throws DatabaseException Execute deleteAll using temp tables
| |
| deleteObject | back to summary |
|---|---|
| public Integer deleteObject() throws DatabaseException Implements abstract org. INTERNAL: Delete an object. Assume call is correct
| |
| execute | back to summary |
|---|---|
| public Object execute() throws DatabaseException Implements abstract org. INTERNAL: Execute a call.
| |
| executeCall | back to summary |
|---|---|
| protected Object executeCall() throws DatabaseException Execute the call. It is assumed the call has been fully prepared.
| |
| executeCall | back to summary |
|---|---|
| protected Object executeCall(DatasourceCall databaseCall) throws DatabaseException Execute the call. It is assumed the call has been fully prepared.
| |
| executeDeferredCall | back to summary |
|---|---|
| public void executeDeferredCall(DatasourceCall call) Overrides org. Execute the call that was deferred to the commit manager. This is used to allow multiple table batching and deadlock avoidance.
| |
| executeNoSelect | back to summary |
|---|---|
| public Object executeNoSelect() throws DatabaseException Implements abstract org. Execute a non selecting call.
| |
| executeNoSelectCall | back to summary |
|---|---|
| public Integer executeNoSelectCall() throws DatabaseException Execute a non selecting call.
| |
| executeSelect | back to summary |
|---|---|
| public Vector Implements abstract org. INTERNAL: Execute a selecting call.
| |
| executeSelectCall | back to summary |
|---|---|
| public Vector INTERNAL: Execute a selecting call.
| |
| generateKeysExecuteNoSelect | back to summary |
|---|---|
| public DatabaseCall generateKeysExecuteNoSelect() throws DatabaseException Implements abstract org. Execute a non selecting call.
| |
| getCall | back to summary |
|---|---|
| public DatasourceCall getCall() Return the call. | |
| getCalls | back to summary |
|---|---|
| public Vector Normally only a single call is used, however multiple table may require multiple calls on write. This is lazy initialised to conserve space. | |
| hasMultipleCalls | back to summary |
|---|---|
| public boolean hasMultipleCalls() Normally only a single call is used, however multiple table may require multiple calls on write. This is lazy initialised to conserve space. | |
| insertObject | back to summary |
|---|---|
| public void insertObject() throws DatabaseException Implements abstract org. Insert the object. Assume the call is correct.
| |
| isCallQueryMechanism | back to summary |
|---|---|
| public boolean isCallQueryMechanism() Overrides org. Return true if this is a call query mechanism
| |
| prepare | back to summary |
|---|---|
| public void prepare() Overrides org. 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. This query is copied for concurrency so this prepare can only setup things that will apply to any future execution of this query.
| |
| prepareCall | back to summary |
|---|---|
| public void prepareCall() throws QueryException 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. This query is copied for concurrency so this prepare can only setup things that will apply to any future execution of this query. | |
| prepareCursorSelectAllRows | back to summary |
|---|---|
| public void prepareCursorSelectAllRows() throws QueryException Implements abstract org. Pre-build configure the call.
| |
| prepareDeleteAll | back to summary |
|---|---|
| public void prepareDeleteAll() Implements abstract org. Pre-build configure the call.
| |
| prepareDeleteObject | back to summary |
|---|---|
| public void prepareDeleteObject() Implements abstract org. Pre-build configure the call.
| |
| prepareDoesExist | back to summary |
|---|---|
| public void prepareDoesExist(DatabaseField field) Implements abstract org. Pre-build configure the call.
| |
| prepareExecute | back to summary |
|---|---|
| public void prepareExecute() Implements abstract org. Pre-build configure the call. This method assumes the query was built using a stored procedure query which is a single call. The return type on the call will already be set and
| |
| prepareExecuteNoSelect | back to summary |
|---|---|
| public void prepareExecuteNoSelect() Implements abstract org. Pre-build configure the call.
| |
| prepareExecuteSelect | back to summary |
|---|---|
| public void prepareExecuteSelect() Implements abstract org. Pre-build configure the call.
| |
| prepareInsertObject | back to summary |
|---|---|
| public void prepareInsertObject() Implements abstract org. Pre-build configure the call.
| |
| prepareReportQueryItems | back to summary |
|---|---|
| protected void prepareReportQueryItems() Prepare the report items. Indexes of results need to be calculated. | |
| prepareReportQuerySelectAllRows | back to summary |
|---|---|
| public void prepareReportQuerySelectAllRows() Implements abstract org. Pre-build configure the call.
| |
| prepareReportQuerySubSelect | back to summary |
|---|---|
| public void prepareReportQuerySubSelect() Implements abstract org. Prepare for a sub select using a call.
| |
| prepareSelectAllRows | back to summary |
|---|---|
| public void prepareSelectAllRows() Implements abstract org. Pre-build configure the call.
| |
| prepareSelectOneRow | back to summary |
|---|---|
| public void prepareSelectOneRow() Implements abstract org. Pre-build configure the call.
| |
| prepareUpdateAll | back to summary |
|---|---|
| public void prepareUpdateAll() Implements abstract org. Pre-build configure the call.
| |
| prepareUpdateObject | back to summary |
|---|---|
| public void prepareUpdateObject() Implements abstract org. Pre-build configure the call.
| |
| selectAllReportQueryRows | back to summary |
|---|---|
| public Vector Implements abstract org. Read all rows from the database. Assume call is correct returns the required fields.
| |
| selectAllRows | back to summary |
|---|---|
| public Vector Implements abstract org. Read all rows from the database. Assume call is correct returns the required fields.
| |
| selectOneRow | back to summary |
|---|---|
| public AbstractRecord selectOneRow() throws DatabaseException Implements abstract org. Read a single row from the database. Assume call is correct.
| |
| selectResultSet | back to summary |
|---|---|
| public DatabaseCall selectResultSet() throws DatabaseException Read all rows from the database, return ResultSet
| |
| selectRowForDoesExist | back to summary |
|---|---|
| public AbstractRecord selectRowForDoesExist(DatabaseField field) throws DatabaseException Implements abstract org. Perform a does exist check
| |
| setCall | back to summary |
|---|---|
| public void setCall(DatasourceCall call) Set the call. | |
| setCalls | back to summary |
|---|---|
| protected void setCalls(Vector<E> calls) Normally only a single call is used, however multiple table may require multiple calls on write. This is lazy initialised to conserve space. | |
| updateAll | back to summary |
|---|---|
| public Integer updateAll() throws DatabaseException Implements abstract org. Update the rows on the database. Assume the call is correct.
| |
| updateAllUsingTempTables | back to summary |
|---|---|
| public Integer updateAllUsingTempTables() throws DatabaseException Execute updateAll using temp tables
| |
| updateForeignKeyFieldAfterInsert | back to summary |
|---|---|
| protected void updateForeignKeyFieldAfterInsert(WriteObjectQuery writeQuery) Implements abstract org. Update the foreign key fields when resolving a bi-directional reference in a UOW. This is rare to occur for non-relational, however if it does each of the calls must be re-executed.
| |
| updateObject | back to summary |
|---|---|
| public Integer updateObject() throws DatabaseException Implements abstract org. Update the object. Assume the call is correct.
| |