Record Class EntityMetadata.TransitionSettings
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.TransitionSettings
- Enclosing class:
EntityMetadata
public static record EntityMetadata.TransitionSettings(EntityMetadata.RootConfiguration root, EventPublication publication, EventPublicationStrategy eventStrategy, EventPublicationStrategy strategy, io.fluxzero.common.api.modeling.ModelConflictPolicy conflict)
extends Record
Shared resolved policy for one Aggregate or Model transition.
-
Constructor Summary
ConstructorsConstructorDescriptionTransitionSettings(EntityMetadata.RootConfiguration root, EventPublication publication, EventPublicationStrategy eventStrategy, EventPublicationStrategy strategy, io.fluxzero.common.api.modeling.ModelConflictPolicy conflict) Creates an instance of aTransitionSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.api.modeling.ModelConflictPolicyconflict()Returns the value of theconflictrecord component.decide(boolean modified, boolean cascadedDeletion, boolean publishOnlyUpdatesState) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventStrategyrecord component.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of thepublicationrecord component.root()Returns the value of therootrecord component.strategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransitionSettings
public TransitionSettings(EntityMetadata.RootConfiguration root, EventPublication publication, EventPublicationStrategy eventStrategy, EventPublicationStrategy strategy, io.fluxzero.common.api.modeling.ModelConflictPolicy conflict) Creates an instance of aTransitionSettingsrecord class.- Parameters:
root- the value for therootrecord componentpublication- the value for thepublicationrecord componenteventStrategy- the value for theeventStrategyrecord componentstrategy- the value for thestrategyrecord componentconflict- the value for theconflictrecord component
-
-
Method Details
-
forceModified
public boolean forceModified() -
decide
public EntityMetadata.TransitionDecision decide(boolean modified, boolean cascadedDeletion, boolean publishOnlyUpdatesState) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
publication
Returns the value of thepublicationrecord component.- Returns:
- the value of the
publicationrecord component
-
eventStrategy
Returns the value of theeventStrategyrecord component.- Returns:
- the value of the
eventStrategyrecord component
-
strategy
Returns the value of thestrategyrecord component.- Returns:
- the value of the
strategyrecord component
-
conflict
public io.fluxzero.common.api.modeling.ModelConflictPolicy conflict()Returns the value of theconflictrecord component.- Returns:
- the value of the
conflictrecord component
-