public class Oracle11EventTableFactory extends AbstractEventTableFactory
Constructor and Description |
---|
Oracle11EventTableFactory() |
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
createDomainEventTable(Connection connection,
EventSchema schema)
Creates a PreparedStatement that allows for the creation of the table to store Event entries.
|
PreparedStatement |
createSnapshotEventTable(Connection connection,
EventSchema schema)
Creates a PreparedStatement that allows for the creation of the table to store Snapshots.
|
protected String |
idColumnType()
Returns the sql to register the auto incrementing global sequence column.
|
protected String |
payloadType()
Returns the sql to describe the type of payload column.
|
timestampType
public PreparedStatement createDomainEventTable(Connection connection, EventSchema schema) throws SQLException
EventTableFactory
createDomainEventTable
in interface EventTableFactory
createDomainEventTable
in class AbstractEventTableFactory
connection
- The connection to create the PreparedStatement forschema
- The event schema with the name of the table and its columnsSQLException
- when an exception occurs while creating the prepared statementpublic PreparedStatement createSnapshotEventTable(Connection connection, EventSchema schema) throws SQLException
EventTableFactory
createSnapshotEventTable
in interface EventTableFactory
createSnapshotEventTable
in class AbstractEventTableFactory
connection
- The connection to create the PreparedStatement forschema
- The event schema with the name of the table and its columnsSQLException
- when an exception occurs while creating the prepared statementprotected String idColumnType()
AbstractEventTableFactory
idColumnType
in class AbstractEventTableFactory
protected String payloadType()
AbstractEventTableFactory
payloadType
in class AbstractEventTableFactory
Copyright © 2010–2022. All rights reserved.