public class SingleConnectionPreparedStatementGenerator extends Object implements PreparedStatementGenerator
PreparedStatementGenerator when a single, long-living Connection object
should be used to create all prepared statements.| Constructor and Description |
|---|
SingleConnectionPreparedStatementGenerator(Connection connection,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
PreparedStatement |
createStatement()
Creates a PreparedStatement object for the SQL code this generator has been bound to.
|
public SingleConnectionPreparedStatementGenerator(Connection connection, String sql)
public PreparedStatement createStatement() throws SQLException
PreparedStatementGeneratorcreateStatement in interface PreparedStatementGeneratorSQLExceptionpublic void close()
throws SQLException
close in interface PreparedStatementGeneratorclose in interface AutoCloseableSQLExceptionCopyright © 2017–2024. All rights reserved.