public interface StatementFactory
| Modifier and Type | Method and Description |
|---|---|
Statement |
create(DbConnection connection,
QueryTemplate queryTemplate)
Creates a JDBC statement
|
Statement |
create(DbConnection connection,
QueryTemplate queryTemplate,
AutoGenerateKeysStrategy autoGenerateKeysStrategy)
Creates a JDBC statement with auto generated keys processing
|
Statement create(DbConnection connection, QueryTemplate queryTemplate) throws SQLException
connection - connection uses to create the statementqueryTemplate - query template that will be execute on the statementSQLException - if a database access error occurs or this method is called on a closed connectionStatement create(DbConnection connection, QueryTemplate queryTemplate, AutoGenerateKeysStrategy autoGenerateKeysStrategy) throws SQLException
connection - connection uses to create the statementqueryTemplate - query template that will be execute on the statementautoGenerateKeysStrategy - strategy to process auto generated keysSQLException - if a database access error occurs or this method is called on a closed connectionCopyright © 2021. All rights reserved.