|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.core.JdbcTemplate.SimplePreparedStatementCreator
Simple adapter for PreparedStatementCreator, allowing to use a plain SQL statement.
Constructor Summary | |
JdbcTemplate.SimplePreparedStatementCreator(java.lang.String sql)
|
Method Summary | |
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, typically the SQL used for creating statements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcTemplate.SimplePreparedStatementCreator(java.lang.String sql)
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 java.lang.String getSql()
SqlProvider
getSql
in interface SqlProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |