Configures a org.
based on the declared parameters.
| Modifier and Type | Field and Description |
|---|---|
| private ParsedSql | cachedSql
Parsed representation of the SQL statement. |
| private final Object | parsedSqlMonitor
Monitor for locking the cached representation of the parsed SQL statement. |
| private PreparedStatementCreatorFactory | preparedStatementFactory
Object enabling us to create PreparedStatementCreators efficiently, based on this class's declared parameters. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | compileInternal()
Implements abstract org. |
| protected ParsedSql | |
| protected final PreparedStatementCreator | newPreparedStatementCreator(Object[]
the parameter array (may be params)null)Return a PreparedStatementCreator to perform an operation with the given parameters. |
| protected final PreparedStatementCreator | newPreparedStatementCreator(String
the actual SQL statement to use (if different from
the factory's, for example because of named parameter expanding) sqlToUse, Object[] the parameter array (may be params)null)Return a PreparedStatementCreator to perform an operation with the given parameters. |
| protected final PreparedStatementSetter | newPreparedStatementSetter(Object[]
the parameter array (may be params)null)Return a PreparedStatementSetter to perform an operation with the given parameters. |
| protected void |
| cachedSql | back to summary |
|---|---|
| private ParsedSql cachedSql Parsed representation of the SQL statement. | |
| parsedSqlMonitor | back to summary |
|---|---|
| private final Object parsedSqlMonitor Monitor for locking the cached representation of the parsed SQL statement. | |
| preparedStatementFactory | back to summary |
|---|---|
| private PreparedStatementCreatorFactory preparedStatementFactory Object enabling us to create PreparedStatementCreators efficiently, based on this class's declared parameters. | |
| SqlOperation | back to summary |
|---|---|
| public SqlOperation() | |
| compileInternal | back to summary |
|---|---|
| protected final void compileInternal() Implements abstract org. Overridden method to configure the PreparedStatementCreatorFactory based on our declared parameters.
| |
| getParsedSql | back to summary |
|---|---|
| protected ParsedSql getParsedSql() Obtain a parsed representation of this operation's SQL statement. Typically used for named parameter parsing. | |
| newPreparedStatementCreator | back to summary |
|---|---|
| protected final PreparedStatementCreator newPreparedStatementCreator(Object[] params) Return a PreparedStatementCreator to perform an operation with the given parameters.
| |
| newPreparedStatementCreator | back to summary |
|---|---|
| protected final PreparedStatementCreator newPreparedStatementCreator(String sqlToUse, Object[] params) Return a PreparedStatementCreator to perform an operation with the given parameters. | |
| newPreparedStatementSetter | back to summary |
|---|---|
| protected final PreparedStatementSetter newPreparedStatementSetter(Object[] params) Return a PreparedStatementSetter to perform an operation with the given parameters.
| |
| onCompileInternal | back to summary |
|---|---|
| protected void onCompileInternal() Hook method that subclasses may override to post-process compilation. This implementation does nothing.
| |