com.interface21.jdbc.object
Class SqlOperation
java.lang.Object
|
+--com.interface21.jdbc.object.RdbmsOperation
|
+--com.interface21.jdbc.object.SqlOperation
- All Implemented Interfaces:
- InitializingBean
- Direct Known Subclasses:
- SqlQuery, SqlUpdate
- public abstract class SqlOperation
- extends RdbmsOperation
RdbmsOperation using a JdbcTemplate and representing a SQL-based
operation such as a query or update, as opposed to a stored
procedure.
Configures a PreparedStatementCreatorFactory based on the declared
parameters.
- Version:
- $Id: SqlOperation.java,v 1.4 2003/04/21 19:03:11 isabellem Exp $
- Author:
- Rod Johnson
| Methods inherited from class com.interface21.jdbc.object.RdbmsOperation |
afterPropertiesSet, compile, declareParameter, getDataSource, getDeclaredParameters, getSql, isCompiled, setDataSource, setSql, setTypes, validateParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlOperation
public SqlOperation()
- Allow use as a bean
getJdbcTemplate
protected final JdbcTemplate getJdbcTemplate()
- Return the JdbcTemplate object used by this object
newPreparedStatementCreator
protected final PreparedStatementCreator newPreparedStatementCreator(java.lang.Object[] params)
- Return a PreparedStatementCreator to perform an operation
with this parameters
- Parameters:
params - parameters. May be null.
compileInternal
protected final void compileInternal()
- Overriden method to configure the PreparedStatementCreatorFactory
based on our declared parameters.
- Overrides:
compileInternal in class RdbmsOperation
- See Also:
RdbmsOperation.compileInternal()
onCompileInternal
protected void onCompileInternal()
- Hook method that subclasses may override to react
to compilation.
This implementation does nothing.
Rod Johnson and Spring contributors 2001-2003.