Interface EventTableFactory

All Known Implementing Classes:
AbstractEventTableFactory, HsqlEventTableFactory, MySqlEventTableFactory, Oracle11EventTableFactory, PostgresEventTableFactory

public interface EventTableFactory
Interface describing a factory for JDBC to create the Domain and Snapshot Event tables.
Since:
3.0
Author:
Rene de Waele
  • Method Details

    • createDomainEventTable

      PreparedStatement createDomainEventTable(Connection connection, EventSchema schema) throws SQLException
      Creates a PreparedStatement that allows for the creation of the table to store Event entries.
      Parameters:
      connection - The connection to create the PreparedStatement for
      schema - The event schema with the name of the table and its columns
      Returns:
      The statement to create the table, ready to be executed
      Throws:
      SQLException - when an exception occurs while creating the prepared statement
    • createSnapshotEventTable

      PreparedStatement createSnapshotEventTable(Connection connection, EventSchema schema) throws SQLException
      Creates a PreparedStatement that allows for the creation of the table to store Snapshots.
      Parameters:
      connection - The connection to create the PreparedStatement for
      schema - The event schema with the name of the table and its columns
      Returns:
      The statement to create the table, ready to be executed
      Throws:
      SQLException - when an exception occurs while creating the prepared statement