public class PostgresEventSqlSchema<T> extends GenericEventSqlSchema<T>
bytea data type
for storing the serialized payload and metaData. A human-readable representation of this data can
be accessed by using postgres encode(column, 'escape') function.schemaConfiguration| Constructor and Description |
|---|
PostgresEventSqlSchema() |
PostgresEventSqlSchema(Class<T> dataType) |
PostgresEventSqlSchema(Class<T> dataType,
SchemaConfiguration schemaConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
PreparedStatement |
sql_createDomainEventEntryTable(Connection connection)
Creates a PreparedStatement that allows for the creation of the table to store Event entries.
|
PreparedStatement |
sql_createSnapshotEventEntryTable(Connection connection)
Creates a PreparedStatement that allows for the creation of the table to store Snapshots.
|
createSerializedDomainEventData, doInsertEventEntry, getDataType, readPayload, readTimeStamp, setForceUtc, sql_dateTime, sql_fetchFromSequenceNumber, sql_findSnapshotSequenceNumbers, sql_getFetchAll, sql_insertDomainEventEntry, sql_insertSnapshotEventEntry, sql_loadLastSnapshot, sql_pruneSnapshotspublic PostgresEventSqlSchema()
public PostgresEventSqlSchema(Class<T> dataType, SchemaConfiguration schemaConfiguration)
public PreparedStatement sql_createSnapshotEventEntryTable(Connection connection) throws SQLException
EventSqlSchemasql_createSnapshotEventEntryTable in interface EventSqlSchema<T>sql_createSnapshotEventEntryTable in class GenericEventSqlSchema<T>connection - The connection to create the PreparedStatement forSQLException - when an exception occurs while creating the prepared statementpublic PreparedStatement sql_createDomainEventEntryTable(Connection connection) throws SQLException
EventSqlSchemasql_createDomainEventEntryTable in interface EventSqlSchema<T>sql_createDomainEventEntryTable in class GenericEventSqlSchema<T>connection - The connection to create the PreparedStatement forSQLException - when an exception occurs while creating the prepared statementCopyright © 2010-2015. All Rights Reserved.