Class ImmutableAggregateRoot<T>
java.lang.Object
io.fluxcapacitor.javaclient.modeling.ImmutableAggregateRoot<T>
- All Implemented Interfaces:
AggregateRoot<T>,Entity<AggregateRoot<T>,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
Entity.Validator<T,E extends Exception> -
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.modeling.AggregateRoot
AGGREGATE_ID_METADATA_KEY, AGGREGATE_TYPE_METADATA_KEY, loading -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DeserializingMessage message) Collection<? extends Entity<?,?>> entities()static <T> ImmutableAggregateRoot<T>from(AggregateRoot<T> a, EventSourcingHandlerFactory handlerFactory, Serializer serializer) get()id()type()update(UnaryOperator<T> function) withEventIndex(Long index, String messageId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.modeling.AggregateRoot
associations, dissociations, lastEventId, lastEventIndex, makeReadOnly, parent, playBackToCondition, playBackToEvent, previous, relationships, sequenceNumber, timestampMethods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
allEntities, apply, apply, apply, apply, assertAndApply, assertAndApply, assertLegal, assertThat, ensure, getEntity, possibleTargets, root
-
Constructor Details
-
ImmutableAggregateRoot
public ImmutableAggregateRoot()
-
-
Method Details
-
from
public static <T> ImmutableAggregateRoot<T> from(AggregateRoot<T> a, EventSourcingHandlerFactory handlerFactory, Serializer serializer) -
apply
- Specified by:
applyin interfaceEntity<AggregateRoot<T>,T>
-
apply
-
update
- Specified by:
updatein interfaceAggregateRoot<T>
-
id
- Specified by:
idin interfaceEntity<AggregateRoot<T>,T>
-
type
- Specified by:
typein interfaceEntity<AggregateRoot<T>,T>
-
get
- Specified by:
getin interfaceEntity<AggregateRoot<T>,T>
-
idProperty
- Specified by:
idPropertyin interfaceEntity<AggregateRoot<T>,T>
-
entities
- Specified by:
entitiesin interfaceEntity<AggregateRoot<T>,T>
-
withEventIndex
-
highestEventIndex
-