public final class AggregateVersionConflictException
extends org.fuin.objects4j.common.AbstractJaxbMarshallableException
implements org.fuin.objects4j.common.ExceptionShortIdentifable
| Modifier | Constructor and Description |
|---|---|
protected |
AggregateVersionConflictException()
JAX-B constructor.
|
|
AggregateVersionConflictException(@NotNull EntityType aggregateType,
@NotNull AggregateRootId aggregateId,
int expected,
int actual)
Constructor with all data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActual()
Returns the actual version.
|
@NotNull java.lang.String |
getAggregateId()
Returns the unique identifier of the aggregate.
|
@NotNull java.lang.String |
getAggregateType()
Returns the type of the aggregate.
|
int |
getExpected()
Returns the expected version.
|
java.lang.String |
getShortId() |
afterMarshal, afterUnmarshal, beforeMarshalprotected AggregateVersionConflictException()
public AggregateVersionConflictException(@NotNull
@NotNull EntityType aggregateType,
@NotNull
@NotNull AggregateRootId aggregateId,
int expected,
int actual)
aggregateType - Type of the aggregate.aggregateId - Unique identifier of the aggregate.expected - Expected version.actual - Actual version.public final java.lang.String getShortId()
getShortId in interface org.fuin.objects4j.common.ExceptionShortIdentifable@NotNull public final @NotNull java.lang.String getAggregateType()
@NotNull public final @NotNull java.lang.String getAggregateId()
public final int getExpected()
public final int getActual()
Copyright © 2019 fuin.org (Germany). All Rights Reserved.