public static class EventSchema.Builder extends Object
EventSchema
that gets initialized with default values.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EventSchema.Builder |
aggregateIdentifierColumn(String aggregateIdentifierColumn)
Sets the name of the event identifier column.
|
EventSchema |
build()
Builds a new
EventSchema from builder values. |
EventSchema.Builder |
domainEventFields(Function<EventSchema,String> domainEventFields)
Set a comma separated list of domain event column names to select from an event or snapshot entry.
|
EventSchema.Builder |
eventIdentifierColumn(String eventIdentifierColumn)
Sets the name of the event identifier column.
|
EventSchema.Builder |
eventTable(String eventTable)
Sets the name of the domain events table.
|
EventSchema.Builder |
globalIndexColumn(String globalIndexColumn)
Sets the name of the global index column.
|
EventSchema.Builder |
metaDataColumn(String metaDataColumn)
Sets the name of the event metadata column.
|
EventSchema.Builder |
payloadColumn(String payloadColumn)
Sets the name of the event payload column.
|
EventSchema.Builder |
payloadRevisionColumn(String payloadRevisionColumn)
Sets the name of the event payload revision column.
|
EventSchema.Builder |
payloadTypeColumn(String payloadTypeColumn)
Sets the name of the event payload type column.
|
EventSchema.Builder |
sequenceNumberColumn(String sequenceNumberColumn)
Sets the name of the event identifier column.
|
EventSchema.Builder |
snapshotTable(String snapshotTable)
Sets the name of the snapshot events table.
|
EventSchema.Builder |
timestampColumn(String timestampColumn)
Sets the name of the timestamp column.
|
EventSchema.Builder |
trackedEventFields(Function<EventSchema,String> trackedEventFields)
Set a comma separated list of tracked domain event column names to select from an event entry.
|
EventSchema.Builder |
typeColumn(String typeColumn)
Sets the name of the aggregate type column.
|
public EventSchema.Builder eventTable(String eventTable)
eventTable
- the event table namepublic EventSchema.Builder snapshotTable(String snapshotTable)
snapshotTable
- the snapshot table namepublic EventSchema.Builder globalIndexColumn(String globalIndexColumn)
globalIndexColumn
- the name of the global index column.public EventSchema.Builder timestampColumn(String timestampColumn)
timestampColumn
- the name of the timestamp column.public EventSchema.Builder eventIdentifierColumn(String eventIdentifierColumn)
eventIdentifierColumn
- the name of the event identifier column.public EventSchema.Builder aggregateIdentifierColumn(String aggregateIdentifierColumn)
aggregateIdentifierColumn
- the name of the aggregate identifier column.public EventSchema.Builder sequenceNumberColumn(String sequenceNumberColumn)
sequenceNumberColumn
- the name of the sequence number column.public EventSchema.Builder typeColumn(String typeColumn)
typeColumn
- the name of the aggregate type column.public EventSchema.Builder payloadTypeColumn(String payloadTypeColumn)
payloadTypeColumn
- the name of the payload type column.public EventSchema.Builder payloadRevisionColumn(String payloadRevisionColumn)
payloadRevisionColumn
- the name of the payload revision column.public EventSchema.Builder payloadColumn(String payloadColumn)
payloadColumn
- the name of the payload column.public EventSchema.Builder metaDataColumn(String metaDataColumn)
metaDataColumn
- the name of the metadata column.public EventSchema.Builder domainEventFields(Function<EventSchema,String> domainEventFields)
"[eventIdentifierColumn], [aggregateIdentifierColumn], [sequenceNumberColumn], [typeColumn],
[timestampColumn], [payloadTypeColumn], [payloadRevisionColumn], [payloadColumn], [metaDataColumn]"
public EventSchema.Builder trackedEventFields(Function<EventSchema,String> trackedEventFields)
"[globalIndexColumn], [domainEventFields]"
public EventSchema build()
EventSchema
from builder values.Copyright © 2010–2020. All rights reserved.