Purpose: Mechanism used for custom SQL and stored procedure queries.
Responsibilities: Executes the appropriate call.
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | CallQueryMechanism(DatabaseQuery
- owner of mechanism query, DatabaseCall - sql call call)Initialize the state of the query |
| CallQueryMechanism | back to summary |
|---|---|
| public CallQueryMechanism() | |
| CallQueryMechanism | back to summary |
|---|---|
| public CallQueryMechanism(DatabaseQuery query) Initialize the state of the query
| |
| CallQueryMechanism | back to summary |
|---|---|
| public CallQueryMechanism(DatabaseQuery query, DatabaseCall call) Initialize the state of the query
| |
| configureDatabaseCall | back to summary |
|---|---|
| protected void configureDatabaseCall(DatabaseCall call) Set the call level query options into the call. | |
| getDatabaseCall | back to summary |
|---|---|
| public DatabaseCall getDatabaseCall() Return the call. | |
| prepareCall | back to summary |
|---|---|
| public void prepareCall() throws QueryException 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.
| |
| prepareCursorSelectAllRows | back to summary |
|---|---|
| public void prepareCursorSelectAllRows() throws QueryException Overrides org. Pre-build configure the SQL call.
| |
| prepareDeleteAll | back to summary |
|---|---|
| public void prepareDeleteAll() Overrides org. Pre-build configure the SQL call.
| |
| prepareDeleteObject | back to summary |
|---|---|
| public void prepareDeleteObject() Overrides org. Pre-build configure the SQL call.
| |
| prepareDoesExist | back to summary |
|---|---|
| public void prepareDoesExist(DatabaseField field) Overrides org. Pre-build configure the SQL call.
| |
| prepareExecute | back to summary |
|---|---|
| public void prepareExecute() Overrides org. Pre-build configure the SQL call for an execute call.
| |
| prepareExecuteSelect | back to summary |
|---|---|
| public void prepareExecuteSelect() Overrides org. Pre-build configure the SQL call.
| |
| prepareJoining | back to summary |
|---|---|
| protected void prepareJoining(ObjectLevelReadQuery query) Prepare the joining indexes if joining. | |
| prepareSelectAllRows | back to summary |
|---|---|
| public void prepareSelectAllRows() Overrides org. Pre-build configure the SQL call.
| |
| prepareSelectOneRow | back to summary |
|---|---|
| public void prepareSelectOneRow() Overrides org. Pre-build configure the SQL call.
| |
| prepareUpdateObject | back to summary |
|---|---|
| public void prepareUpdateObject() Overrides org. Pre-build configure the SQL call.
| |
| setCallHasCustomSQLArguments | back to summary |
|---|---|
| public void setCallHasCustomSQLArguments() INTERNAL: Configure the call to be a dynamic custom SQL call, so that it ignores the # token. | |
| unprepare | back to summary |
|---|---|
| public void unprepare() Overrides org. Unprepare the call if required. Clone and unprepare stored procedure calls, so they can be reprepared with possible different optional arguments.
| |
| updateForeignKeyFieldAfterInsert | back to summary |
|---|---|
| protected void updateForeignKeyFieldAfterInsert(WriteObjectQuery writeQuery) Update the foreign key fields when resolving a bi-directional reference in a UOW. This must always be dynamic as it is called within an insert query and is really part of the insert and does not fire update events or worry about locking.
| |
| updateForeignKeyFieldBeforeDelete | back to summary |
|---|---|
| public void updateForeignKeyFieldBeforeDelete() Overrides org. Update the foreign key fields to null when resolving a deletion cycle. This must always be dynamic as it is called within an delete query and is really part of the delete and does not fire update events or worry about locking.
| |