public abstract class SqlCall extends RdbmsOperation
Configures a CallableStatementCreatorFactory based on the declared parameters.
CallableStatementCreatorFactorylogger| Constructor and Description |
|---|
SqlCall()
Constructor to allow use as a JavaBean.
|
SqlCall(DataSource ds,
String sql)
Create a new SqlCall object with SQL, but without parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
compileInternal()
Overridden method to configure the CallableStatementCreatorFactory
based on our declared parameters.
|
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.
|
protected CallableStatementCreator |
newCallableStatementCreator(Map<String,?> 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.
|
afterPropertiesSet, allowsUnusedParameters, checkCompiled, compile, declareParameter, getDeclaredParameters, getGeneratedKeysColumnNames, getJdbcTemplate, getResultSetType, getSql, isCompiled, isReturnGeneratedKeys, isUpdatableResults, resolveSql, setDataSource, setFetchSize, setGeneratedKeysColumnNames, setJdbcTemplate, setMaxRows, setParameters, setQueryTimeout, setResultSetType, setReturnGeneratedKeys, setSql, setTypes, setUpdatableResults, supportsLobParameters, validateNamedParameters, validateParameterspublic SqlCall()
compile method and using this object.public SqlCall(DataSource ds, String sql)
ds - the DataSource to obtain connections fromsql - the SQL to executepublic void setFunction(boolean function)
public boolean isFunction()
public void setSqlReadyForUse(boolean sqlReadyForUse)
public boolean isSqlReadyForUse()
protected final void compileInternal()
compileInternal in class RdbmsOperationRdbmsOperation.compileInternal()protected void onCompileInternal()
protected CallableStatementCreator newCallableStatementCreator(@Nullable Map<String,?> inParams)
inParams - parameters. May be null.protected CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
inParamMapper - parametermapper. May not be null.