public abstract class AbstractEventTableFactory extends Object implements EventTableFactory
EventTableFactory that provides Jdbc "create table" statements compatible
 with most databases.| Constructor and Description | 
|---|
AbstractEventTableFactory()  | 
| 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 abstract String | 
idColumnType()
Returns the sql to register the auto incrementing global sequence column. 
 | 
protected abstract String | 
payloadType()
Returns the sql to describe the type of payload column. 
 | 
public PreparedStatement createDomainEventTable(Connection connection, EventSchema schema) throws SQLException
EventTableFactorycreateDomainEventTable in interface EventTableFactoryconnection - 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
EventTableFactorycreateSnapshotEventTable in interface EventTableFactoryconnection - 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 abstract String idColumnType()
protected abstract String payloadType()
Copyright © 2010–2018. All rights reserved.