org.springframework.jdbc.core
Class ArgPreparedStatementSetter
java.lang.Object
org.springframework.jdbc.core.ArgPreparedStatementSetter
- All Implemented Interfaces:
- ParameterDisposer, PreparedStatementSetter
class ArgPreparedStatementSetter
- extends Object
- implements PreparedStatementSetter, ParameterDisposer
Simple adapter for PreparedStatementSetter that applies
a given array of arguments.
- Author:
- Juergen Hoeller
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 |
ArgPreparedStatementSetter
public ArgPreparedStatementSetter(Object[] args)
setValues
public void setValues(PreparedStatement ps)
throws SQLException
- Description copied from interface:
PreparedStatementSetter
- Set values on the given PreparedStatement.
- Specified by:
setValues
in interface PreparedStatementSetter
- Parameters:
ps
- PreparedStatement we'll invoke setter methods on
- Throws:
SQLException
- there is no need to catch SQLExceptions
that may be thrown in the implementation of this method.
The JdbcTemplate class will handle them.
cleanupParameters
public void cleanupParameters()
- Description copied from interface:
ParameterDisposer
- Close the resources allocated by parameters that the implementing
object holds, for example in case of a DisposableSqlTypeValue
(like a SqlLobValue).
- Specified by:
cleanupParameters
in interface ParameterDisposer
- See Also:
DisposableSqlTypeValue.cleanup()
,
SqlLobValue.cleanup()
Copyright © 2002-2006 The Spring Framework.