void
|
afterPropertiesSet()
Ensures compilation if used in a bean factory.
|
boolean
|
allowsUnusedParameters()
Return whether this operation accepts additional parameters that are
given but not actually used.
|
void
|
checkCompiled()
Check whether this operation has been compiled already;
lazily compile it if not already compiled.
|
final
void
|
compile()
Compile this query.
|
abstract
void
|
compileInternal()
Subclasses must implement this template method to perform their own compilation.
|
void
|
declareParameter(SqlParameter param)
Declare a parameter for this operation.
|
List<SqlParameter>
|
getDeclaredParameters()
|
String[]
|
getGeneratedKeysColumnNames()
Return the column names of the auto generated keys.
|
JdbcTemplate
|
getJdbcTemplate()
Return the JdbcTemplate object used by this object.
|
int
|
getResultSetType()
Return whether statements will return a specific type of ResultSet.
|
String
|
getSql()
Subclasses can override this to supply dynamic SQL if they wish,
but SQL is normally set by calling the setSql() method
or in a subclass constructor.
|
boolean
|
isCompiled()
Is this operation "compiled"? Compilation, as in JDO,
means that the operation is fully configured, and ready to use.
|
boolean
|
isReturnGeneratedKeys()
Return whether statements should be capable of returning
auto-generated keys.
|
boolean
|
isUpdatableResults()
Return whether statements will return updatable ResultSets.
|
void
|
setDataSource(DataSource dataSource)
Set the JDBC DataSource to obtain connections from.
|
void
|
setFetchSize(int fetchSize)
Set the fetch size for this RDBMS operation.
|
void
|
setGeneratedKeysColumnNames(String[] names)
Set the column names of the auto-generated keys.
|
void
|
setJdbcTemplate(JdbcTemplate jdbcTemplate)
An alternative to the more commonly used setDataSource() when you want to
use the same JdbcTemplate in multiple RdbmsOperations.
|
void
|
setMaxRows(int maxRows)
Set the maximum number of rows for this RDBMS operation.
|
void
|
setParameters(SqlParameter[] parameters)
Add one or more declared parameters.
|
void
|
setQueryTimeout(int queryTimeout)
Set the query timeout for statements that this RDBMS operation executes.
|
void
|
setResultSetType(int resultSetType)
Set whether to use statements that return a specific type of ResultSet.
|
void
|
setReturnGeneratedKeys(boolean returnGeneratedKeys)
Set whether prepared statements should be capable of returning
auto-generated keys.
|
void
|
setSql(String sql)
Set the SQL executed by this operation.
|
void
|
setTypes(int[] types)
Add anonymous parameters, specifying only their SQL types
as defined in the java.sql.Types class.
|
void
|
setUpdatableResults(boolean updatableResults)
Set whether to use statements that are capable of returning
updatable ResultSets.
|
boolean
|
supportsLobParameters()
Return whether BLOB/CLOB parameters are supported for this kind of operation.
|
void
|
validateNamedParameters(Map<String, ?> parameters)
Validate the named parameters passed to an execute method based on declared parameters.
|
void
|
validateParameters(Object[] parameters)
Validate the parameters passed to an execute method based on declared parameters.
|