public interface AutoGeneratedKeyStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Statement statement,
QueryTemplate queryTemplate)
Executes a query that can return multiple results
|
int |
executeUpdate(Statement statement,
QueryTemplate queryTemplate)
Executes an update query
|
PreparedStatement |
prepareStatement(DbConnection connection,
QueryTemplate queryTemplate)
Prepares a statement in order to return auto generated keys
|
boolean |
returnsAutoGeneratedKeys()
Indicates if there are auto generated keys to return
|
boolean returnsAutoGeneratedKeys()
PreparedStatement prepareStatement(DbConnection connection, QueryTemplate queryTemplate) throws SQLException
connection
- connection uses to prepare the statementqueryTemplate
- query template to be preparedSQLException
- if there is any error preparing the queryboolean execute(Statement statement, QueryTemplate queryTemplate) throws SQLException
statement
- statement to be executedqueryTemplate
- query to executeSQLException
- if there is any database error or this method is called on a closed Statementint executeUpdate(Statement statement, QueryTemplate queryTemplate) throws SQLException
statement
- statement to be executedqueryTemplate
- query to executeSQLException
- if there is any database error or this method is called on a closed StatementCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.