Package org.dbunit.database.statement
Interface IStatementFactory
- All Known Implementing Classes:
AbstractStatementFactory,PreparedStatementFactory,StatementFactory
public interface IStatementFactory
Factory that creates the JDBC statement wrapper used to execute a database operation.
- Since:
- Mar 16, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Method Summary
Modifier and TypeMethodDescriptioncreateBatchStatement(IDatabaseConnection connection) Creates a batch statement for the given connection.createPreparedBatchStatement(String sql, IDatabaseConnection connection) Creates a prepared batch statement for the given SQL and connection.
-
Method Details
-
createBatchStatement
Creates a batch statement for the given connection.- Parameters:
connection- the database connection to create the statement on.- Returns:
- the new batch statement.
- Throws:
SQLException- if creating the statement fails.
-
createPreparedBatchStatement
IPreparedBatchStatement createPreparedBatchStatement(String sql, IDatabaseConnection connection) throws SQLException Creates a prepared batch statement for the given SQL and connection.- Parameters:
sql- the SQL statement to prepare.connection- the database connection to create the statement on.- Returns:
- the new prepared batch statement.
- Throws:
SQLException- if creating the statement fails.
-