Class Oracle11EventTableFactory
java.lang.Object
org.axonframework.eventsourcing.eventstore.jdbc.AbstractEventTableFactory
org.axonframework.eventsourcing.eventstore.jdbc.Oracle11EventTableFactory
- All Implemented Interfaces:
EventTableFactory
Oracle 11 doesn't support the data type BIGINT, so NUMBER(19) is used as a substitute instead. Also Oracle doesn't
seem to like colons in create table statements, so those have been removed.
- Since:
- 3.0
- Author:
- Rene de Waele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDomainEventTable(Connection connection, EventSchema schema) Creates a PreparedStatement that allows for the creation of the table to store Event entries.createSnapshotEventTable(Connection connection, EventSchema schema) Creates a PreparedStatement that allows for the creation of the table to store Snapshots.protected StringReturns the sql to register the auto incrementing global sequence column.protected StringReturns the sql to describe the type of payload column.Methods inherited from class org.axonframework.eventsourcing.eventstore.jdbc.AbstractEventTableFactory
timestampType
-
Constructor Details
-
Oracle11EventTableFactory
public Oracle11EventTableFactory()
-
-
Method Details
-
createDomainEventTable
public PreparedStatement createDomainEventTable(Connection connection, EventSchema schema) throws SQLException Description copied from interface:EventTableFactoryCreates a PreparedStatement that allows for the creation of the table to store Event entries.- Specified by:
createDomainEventTablein interfaceEventTableFactory- Overrides:
createDomainEventTablein classAbstractEventTableFactory- Parameters:
connection- The connection to create the PreparedStatement forschema- 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
public PreparedStatement createSnapshotEventTable(Connection connection, EventSchema schema) throws SQLException Description copied from interface:EventTableFactoryCreates a PreparedStatement that allows for the creation of the table to store Snapshots.- Specified by:
createSnapshotEventTablein interfaceEventTableFactory- Overrides:
createSnapshotEventTablein classAbstractEventTableFactory- Parameters:
connection- The connection to create the PreparedStatement forschema- 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
-
idColumnType
Description copied from class:AbstractEventTableFactoryReturns the sql to register the auto incrementing global sequence column.- Specified by:
idColumnTypein classAbstractEventTableFactory- Returns:
- the sql for the global id column
-
payloadType
Description copied from class:AbstractEventTableFactoryReturns the sql to describe the type of payload column.- Specified by:
payloadTypein classAbstractEventTableFactory- Returns:
- the sql for the payload column
-