Package org.dbunit.database.statement
Class PreparedStatementFactory
java.lang.Object
org.dbunit.database.statement.AbstractStatementFactory
org.dbunit.database.statement.PreparedStatementFactory
- All Implemented Interfaces:
IStatementFactory
IStatementFactory that creates SimplePreparedStatement instances.- Since:
- Mar 20, 2002
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Constructor Summary
Constructors -
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.Methods inherited from class org.dbunit.database.statement.AbstractStatementFactory
supportBatchStatement
-
Constructor Details
-
PreparedStatementFactory
public PreparedStatementFactory()
-
-
Method Details
-
createBatchStatement
Description copied from interface:IStatementFactoryCreates 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
public IPreparedBatchStatement createPreparedBatchStatement(String sql, IDatabaseConnection connection) throws SQLException Description copied from interface:IStatementFactoryCreates 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.
-