|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.PreparedStatementCreatorFactory.PreparedStatementCreatorImpl
private class PreparedStatementCreatorFactory.PreparedStatementCreatorImpl
PreparedStatementCreator implementation returned by this class.
Field Summary | |
---|---|
private java.lang.String |
actualSql
|
private java.util.List |
parameters
|
Constructor Summary | |
---|---|
PreparedStatementCreatorFactory.PreparedStatementCreatorImpl(java.util.List<?> parameters)
|
|
PreparedStatementCreatorFactory.PreparedStatementCreatorImpl(java.lang.String actualSql,
java.util.List parameters)
|
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). |
java.sql.PreparedStatement |
createPreparedStatement(java.sql.Connection con)
Create a statement in this connection. |
java.lang.String |
getSql()
Return the SQL string for this object, i.e. |
void |
setValues(java.sql.PreparedStatement ps)
Set parameter values on the given PreparedStatement. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String actualSql
private final java.util.List parameters
Constructor Detail |
---|
public PreparedStatementCreatorFactory.PreparedStatementCreatorImpl(java.util.List<?> parameters)
public PreparedStatementCreatorFactory.PreparedStatementCreatorImpl(java.lang.String actualSql, java.util.List parameters)
Method Detail |
---|
public java.sql.PreparedStatement createPreparedStatement(java.sql.Connection con) throws java.sql.SQLException
PreparedStatementCreator
createPreparedStatement
in interface PreparedStatementCreator
con
- Connection to use to create statement
java.sql.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 setValues(java.sql.PreparedStatement ps) throws java.sql.SQLException
PreparedStatementSetter
setValues
in interface PreparedStatementSetter
ps
- the PreparedStatement to invoke setter methods on
java.sql.SQLException
- if a SQLException is encountered
(i.e. there is no need to catch SQLException)public java.lang.String getSql()
SqlProvider
getSql
in interface SqlProvider
null
public void cleanupParameters()
ParameterDisposer
cleanupParameters
in interface ParameterDisposer
DisposableSqlTypeValue.cleanup()
,
SqlLobValue.cleanup()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |