|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.ArgTypePreparedStatementSetter
class ArgTypePreparedStatementSetter
Simple adapter for PreparedStatementSetter that applies given arrays of arguments and JDBC argument types.
Constructor Summary | |
---|---|
ArgTypePreparedStatementSetter(Object[] args,
int[] argTypes)
Create a new ArgTypePreparedStatementSetter for the given arguments. |
Method Summary | |
---|---|
void |
cleanupParameters()
Close the resources allocated by parameters that the implementing object holds, for example in case of a DisposableSqlTypeValue (like a SqlLobValue). |
void |
setValues(PreparedStatement ps)
Set values on the given PreparedStatement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArgTypePreparedStatementSetter(Object[] args, int[] argTypes)
args
- argTypes
- Method Detail |
---|
public void setValues(PreparedStatement ps) throws SQLException
PreparedStatementSetter
setValues
in interface PreparedStatementSetter
ps
- PreparedStatement we'll invoke setter methods on
SQLException
- there is no need to catch SQLExceptions
that may be thrown in the implementation of this method.
The JdbcTemplate class will handle them.public void cleanupParameters()
ParameterDisposer
cleanupParameters
in interface ParameterDisposer
DisposableSqlTypeValue.cleanup()
,
SqlLobValue.cleanup()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |