Purpose: Mechanism used for all statement objects.
Responsibilities: Executes the appropriate statement.
| Modifier and Type | Field and Description |
|---|---|
| protected SQLStatement | |
| protected Vector | sqlStatements
Normally only a single statement is used, however multiple table may require multiple statements on write. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StatementQueryMechanism(DatabaseQuery
- owner of mechanism query)INTERNAL: Return a new mechanism for the query |
| public | StatementQueryMechanism(DatabaseQuery
- owner of mechanism query, SQLStatement - sql statement statement)Return a new mechanism for the query |
| sqlStatement | back to summary |
|---|---|
| protected SQLStatement sqlStatement | |
| sqlStatements | back to summary |
|---|---|
| protected Vector<E> sqlStatements Normally only a single statement is used, however multiple table may require multiple statements on write. | |
| StatementQueryMechanism | back to summary |
|---|---|
| public StatementQueryMechanism() | |
| StatementQueryMechanism | back to summary |
|---|---|
| public StatementQueryMechanism(DatabaseQuery query) INTERNAL: Return a new mechanism for the query
| |
| StatementQueryMechanism | back to summary |
|---|---|
| public StatementQueryMechanism(DatabaseQuery query, SQLStatement statement) Return a new mechanism for the query
| |
| clearStatement | back to summary |
|---|---|
| public void clearStatement() The statement is no longer require after prepare so can be released. | |
| clone | back to summary |
|---|---|
| public DatabaseQueryMechanism clone(DatabaseQuery queryClone) Overrides org. Clone the mechanism for the specified query clone.
| |
| configureDatabaseCall | back to summary |
|---|---|
| protected void configureDatabaseCall(DatabaseCall call) Overrides org. Doc from org. Set the call level query options into the call.
| |
| deleteObject | back to summary |
|---|---|
| public Integer deleteObject() throws DatabaseException Overrides org. INTERNAL: delete the object
| |
| executeNoSelect | back to summary |
|---|---|
| public Object executeNoSelect() throws DatabaseException Overrides org. Update the object
| |
| getSelectionCriteria | back to summary |
|---|---|
| public Expression getSelectionCriteria() Overrides org. Return the selection criteria for the statement.
| |
| getSQLStatement | back to summary |
|---|---|
| public SQLStatement getSQLStatement() INTERNAL: Return the sqlStatement | |
| getSQLStatements | back to summary |
|---|---|
| public Vector Normally only a single statement is used, however multiple table may require multiple statements on write. This is lazy initialied to conserv space. | |
| hasMultipleStatements | back to summary |
|---|---|
| public boolean hasMultipleStatements() Normally only a single statement is used, however multiple table may require multiple statements on write. This is lazy initialized to conserve space. | |
| insertObject | back to summary |
|---|---|
| public void insertObject() throws DatabaseException Overrides org. Insert the object
| |
| insertObject | back to summary |
|---|---|
| public void insertObject(boolean reprepare) Overrides org. Insert the object if the reprepare flag is set, first reprepare the query. Added for CR#3237
| |
| isCallQueryMechanism | back to summary |
|---|---|
| public boolean isCallQueryMechanism() Overrides org. Return true if this is a call query mechanism
| |
| isStatementQueryMechanism | back to summary |
|---|---|
| public boolean isStatementQueryMechanism() Overrides org. Return true if this is a statement 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.
| |
| prepareCursorSelectAllRows | back to summary |
|---|---|
| public void prepareCursorSelectAllRows() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareDeleteAll | back to summary |
|---|---|
| public void prepareDeleteAll() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareDeleteObject | back to summary |
|---|---|
| public void prepareDeleteObject() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareDoesExist | back to summary |
|---|---|
| public void prepareDoesExist(DatabaseField field) Overrides org. Pre-build the SQL call from the statement.
| |
| prepareExecuteNoSelect | back to summary |
|---|---|
| public void prepareExecuteNoSelect() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareExecuteSelect | back to summary |
|---|---|
| public void prepareExecuteSelect() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareInsertObject | back to summary |
|---|---|
| public void prepareInsertObject() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareSelectAllRows | back to summary |
|---|---|
| public void prepareSelectAllRows() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareSelectOneRow | back to summary |
|---|---|
| public void prepareSelectOneRow() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareUpdateAll | back to summary |
|---|---|
| public void prepareUpdateAll() Overrides org. Pre-build the SQL call from the statement.
| |
| prepareUpdateObject | back to summary |
|---|---|
| public void prepareUpdateObject() Overrides org. Pre-build the SQL call from the statement.
| |
| setCallFromStatement | back to summary |
|---|---|
| protected void setCallFromStatement() Pre-build the SQL call from the statement. | |
| setSQLStatement | back to summary |
|---|---|
| public void setSQLStatement(SQLStatement statement) Set the sqlStatement | |
| setSQLStatements | back to summary |
|---|---|
| protected void setSQLStatements(Vector<E> sqlStatements) Normally only a single statement is used, however multiple table may require multiple statements on write. This is lazy initialized to conserve space. | |
| trimFieldsForInsert | back to summary |
|---|---|
| public void trimFieldsForInsert() INTERNAL Remove a potential sequence number field and invoke the ReturningPolicy trimModifyRowsForInsert method | |
| updateObject | back to summary |
|---|---|
| public Integer updateObject() throws DatabaseException Overrides org. Update the object
| |