Class StatementFactory

java.lang.Object
org.dbunit.database.statement.AbstractStatementFactory
org.dbunit.database.statement.StatementFactory
All Implemented Interfaces:
IStatementFactory

public class StatementFactory extends AbstractStatementFactory
IStatementFactory that creates non-prepared SimpleStatement instances.
Since:
Mar 15, 2002
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • StatementFactory

      public StatementFactory()
  • Method Details

    • createBatchStatement

      public IBatchStatement createBatchStatement(IDatabaseConnection connection) throws SQLException
      Description copied from interface: IStatementFactory
      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

      public IPreparedBatchStatement createPreparedBatchStatement(String sql, IDatabaseConnection connection) throws SQLException
      Description copied from interface: IStatementFactory
      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.