org.mule.module.db.internal.domain.statement
Interface StatementFactory

All Known Subinterfaces:
ConfigurableStatementFactory
All Known Implementing Classes:
QueryStatementFactory

public interface StatementFactory

Creates JDBC statements for a given connection


Method Summary
 Statement create(DbConnection connection, QueryTemplate queryTemplate)
          Creates a JDBC statement
 Statement create(DbConnection connection, QueryTemplate queryTemplate, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
          Creates a JDBC statement with auto generated keys processing
 

Method Detail

create

Statement create(DbConnection connection,
                 QueryTemplate queryTemplate)
                 throws SQLException
Creates a JDBC statement

Parameters:
connection - connection uses to create the statement
queryTemplate - query template that will be execute on the statement
Returns:
a statement appropriate to execute a query with the given template
Throws:
SQLException - if a database access error occurs or this method is called on a closed connection

create

Statement create(DbConnection connection,
                 QueryTemplate queryTemplate,
                 AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
                 throws SQLException
Creates a JDBC statement with auto generated keys processing

Parameters:
connection - connection uses to create the statement
queryTemplate - query template that will be execute on the statement
autoGeneratedKeyStrategy - strategy to process auto generated keys
Returns:
a statement appropriate to execute a query with the given template
Throws:
SQLException - if a database access error occurs or this method is called on a closed connection


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.