Class SagaSchema
java.lang.Object
org.axonframework.modelling.saga.repository.jdbc.SagaSchema
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for anSagaSchemathat gets initialized with default values. -
Constructor Summary
ConstructorsModifierConstructorDescriptionInitialize SagaSchema with default values.SagaSchema(String sagaEntryTable, String associationValueEntryTable) Deprecated.protectedSagaSchema(SagaSchema.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the associationKey columnReturns the name of the associationValue columnReturns the name of the associationValueEntry tablestatic SagaSchema.Builderbuilder()Returns a newSagaSchema.Builderinitialized with default settings.Returns the name of the revision columnReturns the name of the sagaEntry tableReturns the name of the sagaId columnReturns the name of the sagaType columnReturns the name of the serializedSaga column
-
Constructor Details
-
SagaSchema
public SagaSchema()Initialize SagaSchema with default values. -
SagaSchema
Deprecated.useSagaSchema.BuilderinsteadInitialize SagaSchema with custom locations for event entry tables.- Parameters:
sagaEntryTable- The name of the entry tableassociationValueEntryTable- The name of the association value table
-
SagaSchema
-
-
Method Details
-
builder
Returns a newSagaSchema.Builderinitialized with default settings.- Returns:
- a new builder for the event schema
-
sagaEntryTable
Returns the name of the sagaEntry table- Returns:
- the name of the sagaEntry table
-
revisionColumn
Returns the name of the revision column- Returns:
- the name of the revision column
-
serializedSagaColumn
Returns the name of the serializedSaga column- Returns:
- the name of the serializedSaga column
-
associationValueEntryTable
Returns the name of the associationValueEntry table- Returns:
- the name of the associationValueEntry table
-
associationKeyColumn
Returns the name of the associationKey column- Returns:
- the name of the associationKey column
-
associationValueColumn
Returns the name of the associationValue column- Returns:
- the name of the associationValue column
-
sagaIdColumn
Returns the name of the sagaId column- Returns:
- the name of the sagaId column
-
sagaTypeColumn
Returns the name of the sagaType column- Returns:
- the name of the sagaType column
-
SagaSchema.Builderinstead