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