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 Details

    • createBatchStatement

      IBatchStatement createBatchStatement(IDatabaseConnection connection) throws SQLException
      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.