private static class JdbcTemplate.SimplePreparedStatementCreator extends java.lang.Object implements PreparedStatementCreator, SqlProvider
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
sql |
Constructor and Description |
---|
SimplePreparedStatementCreator(java.lang.String sql) |
Modifier and Type | Method and Description |
---|---|
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.
|
public SimplePreparedStatementCreator(java.lang.String sql)
public java.sql.PreparedStatement createPreparedStatement(java.sql.Connection con) throws java.sql.SQLException
PreparedStatementCreator
createPreparedStatement
in interface PreparedStatementCreator
con
- Connection to use to create statementjava.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
null