org.springframework.jdbc.object
Class SqlOperation

java.lang.Object
  extended by org.springframework.jdbc.object.RdbmsOperation
      extended by org.springframework.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.

Author:
Rod Johnson, Juergen Hoeller
See Also:
PreparedStatementCreatorFactory

Field Summary
 
Fields inherited from class org.springframework.jdbc.object.RdbmsOperation
logger
 
Constructor Summary
SqlOperation()
           
 
Method Summary
protected  void compileInternal()
          Overridden method to configure the PreparedStatementCreatorFactory based on our declared parameters.
protected  PreparedStatementCreator newPreparedStatementCreator(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.
 
Methods inherited from class org.springframework.jdbc.object.RdbmsOperation
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlOperation

public SqlOperation()
Method Detail

compileInternal

protected final void compileInternal()
Overridden method to configure the PreparedStatementCreatorFactory based on our declared parameters.

Specified by:
compileInternal in class RdbmsOperation

onCompileInternal

protected void onCompileInternal()
Hook method that subclasses may override to post-process compilation. This implementation does nothing.

See Also:
compileInternal()

newPreparedStatementCreator

protected final PreparedStatementCreator newPreparedStatementCreator(Object[] params)
Return a PreparedStatementCreator to perform an operation with the given parameters.

Parameters:
params - parameter array. May be null.

newPreparedStatementSetter

protected final PreparedStatementSetter newPreparedStatementSetter(Object[] params)
Return a PreparedStatementSetter to perform an operation with the given parameters.

Parameters:
params - parameter array. May be null.


Copyright (c) 2002-2006 The Spring Framework Project.