|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.CallableStatementCreatorFactory
public class CallableStatementCreatorFactory
Helper class that can efficiently create multiple CallableStatementCreator objects with different parameters based on a SQL statement and a single set of parameter declarations.
Constructor Summary | |
---|---|
CallableStatementCreatorFactory(String callString)
Create a new factory. |
|
CallableStatementCreatorFactory(String callString,
List declaredParameters)
Create a new factory with sql and the given parameters. |
Method Summary | |
---|---|
void |
addParameter(SqlParameter param)
Add a new declared parameter. |
CallableStatementCreator |
newCallableStatementCreator(Map inParams)
Return a new CallableStatementCreator instance given this parameters. |
CallableStatementCreator |
newCallableStatementCreator(ParameterMapper inParamMapper)
Return a new CallableStatementCreator instance given this parameter mapper. |
void |
setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor)
Specify the NativeJdbcExtractor to use for unwrapping CallableStatements, if any. |
void |
setResultSetType(int resultSetType)
Set whether to use prepared statements that return a specific type of ResultSet. |
void |
setUpdatableResults(boolean updatableResults)
Set whether to use prepared statements capable of returning updatable ResultSets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CallableStatementCreatorFactory(String callString)
public CallableStatementCreatorFactory(String callString, List declaredParameters)
callString
- the SQL call stringdeclaredParameters
- list of SqlParameter objectsMethod Detail |
---|
public void addParameter(SqlParameter param)
public void setResultSetType(int resultSetType)
resultSetType
- the ResultSet typeResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
,
ResultSet.TYPE_SCROLL_SENSITIVE
public void setUpdatableResults(boolean updatableResults)
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor)
public CallableStatementCreator newCallableStatementCreator(Map inParams)
inParams
- List of parameters. May be null
.public CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper)
inParamMapper
- ParameterMapper implementation that will return a Map of parameters. May not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |