org.springframework.jdbc.object
Class SqlCall

java.lang.Object
  extended byorg.springframework.jdbc.object.RdbmsOperation
      extended byorg.springframework.jdbc.object.SqlCall
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
StoredProcedure

public abstract class SqlCall
extends RdbmsOperation

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.

Version:
$Id: SqlCall.java,v 1.6 2004/03/18 02:46:13 trisberg Exp $
Author:
Rod Johnson, Thomas Risberg

Field Summary
 
Fields inherited from class org.springframework.jdbc.object.RdbmsOperation
logger
 
Constructor Summary
SqlCall()
           
 
Method Summary
protected  void compileInternal()
          Overridden method to configure the CallableStatementCreatorFactory based on our declared parameters.
 java.lang.String getCallString()
          Get the flag used to indicate that this call is for a function.
 boolean isFunction()
          Get the flag used to indicate that this call is for a function.
protected  CallableStatementCreator newCallableStatementCreator(java.util.Map inParams)
          Return a CallableStatementCreator to perform an operation with this parameters.
protected  CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
          Return a CallableStatementCreator to perform an operation with the parameters returned from this ParameterMapper.
protected  void onCompileInternal()
          Hook method that subclasses may override to react to compilation.
 void setFunction(boolean function)
          Set the flag used to indicate that this call is for a function
 
Methods inherited from class org.springframework.jdbc.object.RdbmsOperation
afterPropertiesSet, compile, declareParameter, getDeclaredParameters, getJdbcTemplate, getSql, isCompiled, setDataSource, setJdbcTemplate, setSql, setTypes, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlCall

public SqlCall()
Method Detail

setFunction

public void setFunction(boolean function)
Set the flag used to indicate that this call is for a function

Parameters:
function - true or false

isFunction

public boolean isFunction()
Get the flag used to indicate that this call is for a function.

Returns:
boolean

getCallString

public java.lang.String getCallString()
Get the flag used to indicate that this call is for a function.

Returns:
boolean

newCallableStatementCreator

protected CallableStatementCreator newCallableStatementCreator(java.util.Map inParams)
Return a CallableStatementCreator to perform an operation with this parameters.

Parameters:
inParams - parameters. May be null.

newCallableStatementCreator

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.

compileInternal

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

Specified by:
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.



Copyright (C) 2003-2004 The Spring Framework Project.