public abstract class

SqlOperation

extends RdbmsOperation
java.lang.Object
   ↳ org.springframework.jdbc.object.RdbmsOperation
     ↳ org.springframework.jdbc.object.SqlOperation
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Operation object 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.

Summary

[Expand]
Inherited Fields
From class org.springframework.jdbc.object.RdbmsOperation
Public Constructors
SqlOperation()
Protected Methods
final void compileInternal()
Overridden method to configure the PreparedStatementCreatorFactory based on our declared parameters.
ParsedSql getParsedSql()
Obtain a parsed representation of this operation's SQL statement.
final PreparedStatementCreator newPreparedStatementCreator(Object[] params)
Return a PreparedStatementCreator to perform an operation with the given parameters.
final PreparedStatementCreator newPreparedStatementCreator(String sqlToUse, Object[] params)
Return a PreparedStatementCreator to perform an operation with the given parameters.
final PreparedStatementSetter newPreparedStatementSetter(Object[] params)
Return a PreparedStatementSetter to perform an operation with the given parameters.
void onCompileInternal()
Hook method that subclasses may override to post-process compilation.
[Expand]
Inherited Methods
From class org.springframework.jdbc.object.RdbmsOperation
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public SqlOperation ()

Protected Methods

protected final 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.

Typically used for named parameter parsing.

protected final PreparedStatementCreator newPreparedStatementCreator (Object[] params)

Return a PreparedStatementCreator to perform an operation with the given parameters.

Parameters
params the parameter array (may be null)

protected final PreparedStatementCreator newPreparedStatementCreator (String sqlToUse, Object[] params)

Return a PreparedStatementCreator to perform an operation with the given parameters.

Parameters
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)

protected final PreparedStatementSetter newPreparedStatementSetter (Object[] params)

Return a PreparedStatementSetter to perform an operation with the given parameters.

Parameters
params the parameter array (may be null)

protected void onCompileInternal ()

Hook method that subclasses may override to post-process compilation. This implementation does nothing.