|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.object.RdbmsOperation org.springframework.jdbc.object.SqlCall
public abstract class SqlCall
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.
CallableStatementCreatorFactory
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. |
String |
getCallString()
Get the call string. |
boolean |
isFunction()
Get whether this call is for a function. |
boolean |
isSqlReadyForUse()
Return whether the SQL can be used as is. |
protected CallableStatementCreator |
newCallableStatementCreator(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 whether this call is for a function. |
void |
setSqlReadyForUse(boolean sqlReadyForUse)
Set whether the SQL can be used as is. |
Methods inherited from class org.springframework.jdbc.object.RdbmsOperation |
---|
afterPropertiesSet, 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 |
---|
public SqlCall()
Method Detail |
---|
public void setFunction(boolean function)
public boolean isFunction()
public void setSqlReadyForUse(boolean sqlReadyForUse)
public boolean isSqlReadyForUse()
protected final void compileInternal()
compileInternal
in class RdbmsOperation
RdbmsOperation.compileInternal()
protected void onCompileInternal()
public String getCallString()
protected CallableStatementCreator newCallableStatementCreator(Map inParams)
inParams
- parameters. May be null.protected CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
inParamMapper
- parametermapper. May not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |