|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.core.ArgPreparedStatementSetter
class ArgPreparedStatementSetter
Simple adapter for PreparedStatementSetter that applies a given array of arguments.
| Field Summary | |
|---|---|
private java.lang.Object[] |
args
|
| Constructor Summary | |
|---|---|
ArgPreparedStatementSetter(java.lang.Object[] args)
Create a new ArgPreparedStatementSetter 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). |
protected void |
doSetValue(java.sql.PreparedStatement ps,
int parameterPosition,
java.lang.Object argValue)
Set the value for prepared statements specified parameter index using the passed in value. |
void |
setValues(java.sql.PreparedStatement ps)
Set parameter values on the given PreparedStatement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.Object[] args
| Constructor Detail |
|---|
public ArgPreparedStatementSetter(java.lang.Object[] args)
args - the arguments to set| Method Detail |
|---|
public void setValues(java.sql.PreparedStatement ps)
throws java.sql.SQLException
PreparedStatementSetter
setValues in interface PreparedStatementSetterps - the PreparedStatement to invoke setter methods on
java.sql.SQLException - if a SQLException is encountered
(i.e. there is no need to catch SQLException)
protected void doSetValue(java.sql.PreparedStatement ps,
int parameterPosition,
java.lang.Object argValue)
throws java.sql.SQLException
ps - the PreparedStatementparameterPosition - index of the parameter positionargValue - the value to set
java.sql.SQLExceptionpublic void cleanupParameters()
ParameterDisposer
cleanupParameters in interface ParameterDisposerDisposableSqlTypeValue.cleanup(),
SqlLobValue.cleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||