Class SagaSchema.Builder

java.lang.Object
org.axonframework.modelling.saga.repository.jdbc.SagaSchema.Builder
Enclosing class:
SagaSchema

public static class SagaSchema.Builder extends Object
Builder for an SagaSchema that gets initialized with default values.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • sagaEntryTable

      public SagaSchema.Builder sagaEntryTable(String 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

      public SagaSchema.Builder revisionColumn(String columnName)
      Sets the name of the revision column. Defaults to 'revision'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • serializedSagaColumn

      public SagaSchema.Builder serializedSagaColumn(String columnName)
      Sets the name of the serialized saga column. Defaults to 'serializedSaga'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • associationValueEntryTable

      public SagaSchema.Builder associationValueEntryTable(String 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

      public SagaSchema.Builder associationKeyColumn(String columnName)
      Sets the name of the association key column. Defaults to 'associationKey'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • associationValueColumn

      public SagaSchema.Builder associationValueColumn(String columnName)
      Sets the name of the association value column. Defaults to 'associationValue'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • sagaIdColumn

      public SagaSchema.Builder sagaIdColumn(String columnName)
      Sets the name of the saga id column. Defaults to 'sagaId'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • sagaTypeColumn

      public SagaSchema.Builder sagaTypeColumn(String columnName)
      Sets the name of the saga type column. Defaults to 'sagaType'.
      Parameters:
      columnName - the name of the column
      Returns:
      the modified Builder instance
    • build

      public SagaSchema build()
      Builds a new SagaSchema from builder values.
      Returns:
      SagaSchema from this builder