java.lang.Object
org.axonframework.modelling.saga.repository.jdbc.SagaSchema

public class SagaSchema extends Object
SagaSchema allows specification of custom storage locations for the saga repositories.

Usage depends on the underlying database - in general the form of "schema.tablename" should be sufficient.

Since:
2.4
Author:
Jochen Munz
  • Constructor Details

    • SagaSchema

      public SagaSchema()
      Initialize SagaSchema with default values.
    • SagaSchema

      @Deprecated public SagaSchema(String sagaEntryTable, String associationValueEntryTable)
      Deprecated.
      use SagaSchema.Builder instead
      Initialize SagaSchema with custom locations for event entry tables.
      Parameters:
      sagaEntryTable - The name of the entry table
      associationValueEntryTable - The name of the association value table
    • SagaSchema

      protected SagaSchema(SagaSchema.Builder builder)
  • Method Details

    • builder

      public static SagaSchema.Builder builder()
      Returns a new SagaSchema.Builder initialized with default settings.
      Returns:
      a new builder for the event schema
    • sagaEntryTable

      public String sagaEntryTable()
      Returns the name of the sagaEntry table
      Returns:
      the name of the sagaEntry table
    • revisionColumn

      public String revisionColumn()
      Returns the name of the revision column
      Returns:
      the name of the revision column
    • serializedSagaColumn

      public String serializedSagaColumn()
      Returns the name of the serializedSaga column
      Returns:
      the name of the serializedSaga column
    • associationValueEntryTable

      public String associationValueEntryTable()
      Returns the name of the associationValueEntry table
      Returns:
      the name of the associationValueEntry table
    • associationKeyColumn

      public String associationKeyColumn()
      Returns the name of the associationKey column
      Returns:
      the name of the associationKey column
    • associationValueColumn

      public String associationValueColumn()
      Returns the name of the associationValue column
      Returns:
      the name of the associationValue column
    • sagaIdColumn

      public String sagaIdColumn()
      Returns the name of the sagaId column
      Returns:
      the name of the sagaId column
    • sagaTypeColumn

      public String sagaTypeColumn()
      Returns the name of the sagaType column
      Returns:
      the name of the sagaType column