public abstract class

SqlCall

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

Class Overview

RdbmsOperation using a JdbcTemplate and representing a SQL-based call such as a stored procedure or a stored function.

Configures a CallableStatementCreatorFactory based on the declared parameters.

Summary

[Expand]
Inherited Fields
From class org.springframework.jdbc.object.RdbmsOperation
Public Constructors
SqlCall()
Constructor to allow use as a JavaBean.
SqlCall(DataSource ds, String sql)
Create a new SqlCall object with SQL, but without parameters.
Public Methods
String getCallString()
Get the call string.
boolean isFunction()
Return whether this call is for a function.
boolean isSqlReadyForUse()
Return whether the SQL can be used as is.
void setFunction(boolean function)
Set whether this call is for a function.
void setSqlReadyForUse(boolean sqlReadyForUse)
Set whether the SQL can be used as is.
Protected Methods
final void compileInternal()
Overridden method to configure the CallableStatementCreatorFactory based on our declared parameters.
CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
Return a CallableStatementCreator to perform an operation with the parameters returned from this ParameterMapper.
CallableStatementCreator newCallableStatementCreator(Map<String, ?> inParams)
Return a CallableStatementCreator to perform an operation with this parameters.
void onCompileInternal()
Hook method that subclasses may override to react to 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 SqlCall ()

Constructor to allow use as a JavaBean. A DataSource, SQL and any parameters must be supplied before invoking the compile method and using this object.

public SqlCall (DataSource ds, String sql)

Create a new SqlCall object with SQL, but without parameters. Must add parameters or settle with none.

Parameters
ds DataSource to obtain connections from
sql SQL to execute

Public Methods

public String getCallString ()

Get the call string.

public boolean isFunction ()

Return whether this call is for a function.

public boolean isSqlReadyForUse ()

Return whether the SQL can be used as is.

public void setFunction (boolean function)

Set whether this call is for a function.

public void setSqlReadyForUse (boolean sqlReadyForUse)

Set whether the SQL can be used as is.

Protected Methods

protected final void compileInternal ()

Overridden method to configure the CallableStatementCreatorFactory based on our declared parameters.

protected CallableStatementCreator newCallableStatementCreator (ParameterMapper inParamMapper)

Return a CallableStatementCreator to perform an operation with the parameters returned from this ParameterMapper.

Parameters
inParamMapper parametermapper. May not be null.

protected CallableStatementCreator newCallableStatementCreator (Map<String, ?> inParams)

Return a CallableStatementCreator to perform an operation with this parameters.

Parameters
inParams parameters. May be null.

protected void onCompileInternal ()

Hook method that subclasses may override to react to compilation. This implementation does nothing.