Class SagaSchema.Builder
java.lang.Object
org.axonframework.modelling.saga.repository.jdbc.SagaSchema.Builder
- Enclosing class:
SagaSchema
Builder for an
SagaSchema that gets initialized with default values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociationKeyColumn(String columnName) Sets the name of the association key column.associationValueColumn(String columnName) Sets the name of the association value column.associationValueEntryTable(String associationValueEntryTable) Sets the name of the association value entry table.build()Builds a newSagaSchemafrom builder values.revisionColumn(String columnName) Sets the name of the revision column.sagaEntryTable(String sagaEntryTable) Sets the name of the saga entry table.sagaIdColumn(String columnName) Sets the name of the saga id column.sagaTypeColumn(String columnName) Sets the name of the saga type column.serializedSagaColumn(String columnName) Sets the name of the serialized saga column.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sagaEntryTable
Sets the name of the saga entry table. Defaults to 'SagaEntry'.- Parameters:
sagaEntryTable- the saga entry table name- Returns:
- the modified Builder instance
-
revisionColumn
Sets the name of the revision column. Defaults to 'revision'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
serializedSagaColumn
Sets the name of the serialized saga column. Defaults to 'serializedSaga'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
associationValueEntryTable
Sets the name of the association value entry table. Defaults to 'AssociationValueEntry'.- Parameters:
associationValueEntryTable- the association value entry table name- Returns:
- the modified Builder instance
-
associationKeyColumn
Sets the name of the association key column. Defaults to 'associationKey'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
associationValueColumn
Sets the name of the association value column. Defaults to 'associationValue'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
sagaIdColumn
Sets the name of the saga id column. Defaults to 'sagaId'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
sagaTypeColumn
Sets the name of the saga type column. Defaults to 'sagaType'.- Parameters:
columnName- the name of the column- Returns:
- the modified Builder instance
-
build
Builds a newSagaSchemafrom builder values.- Returns:
- SagaSchema from this builder
-