public abstract class SqlOperation extends RdbmsOperation
Configures a PreparedStatementCreatorFactory
based on the declared parameters.
logger
Constructor and Description |
---|
SqlOperation() |
Modifier and Type | Method and Description |
---|---|
protected void |
compileInternal()
Overridden method to configure the PreparedStatementCreatorFactory
based on our declared parameters.
|
protected ParsedSql |
getParsedSql()
Obtain a parsed representation of this operation's SQL statement.
|
protected PreparedStatementCreator |
newPreparedStatementCreator(Object[] params)
Return a PreparedStatementCreator to perform an operation
with the given parameters.
|
protected PreparedStatementCreator |
newPreparedStatementCreator(String sqlToUse,
Object[] params)
Return a PreparedStatementCreator to perform an operation
with the given parameters.
|
protected PreparedStatementSetter |
newPreparedStatementSetter(Object[] params)
Return a PreparedStatementSetter to perform an operation
with the given parameters.
|
protected void |
onCompileInternal()
Hook method that subclasses may override to post-process compilation.
|
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, resolveSql, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setParameters, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameters
protected final void compileInternal()
compileInternal
in class RdbmsOperation
protected void onCompileInternal()
compileInternal()
protected ParsedSql getParsedSql()
Typically used for named parameter parsing.
protected final PreparedStatementSetter newPreparedStatementSetter(@Nullable Object[] params)
params
- the parameter array (may be null
)protected final PreparedStatementCreator newPreparedStatementCreator(@Nullable Object[] params)
params
- the parameter array (may be null
)protected final PreparedStatementCreator newPreparedStatementCreator(String sqlToUse, @Nullable Object[] params)
sqlToUse
- the actual SQL statement to use (if different from
the factory's, for example because of named parameter expanding)params
- the parameter array (may be null
)