Interface AggregateRoot<T>
- All Superinterfaces:
Entity<AggregateRoot<T>,T>
- All Known Implementing Classes:
DelegatingAggregateRoot,ImmutableAggregateRoot,ModifiableAggregateRoot,NoOpAggregateRoot,ReadOnlyAggregateRoot
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
Entity.Validator<T,E extends Exception> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final ThreadLocal<Boolean> -
Method Summary
Modifier and TypeMethodDescriptiondefault Set<Relationship>associations(AggregateRoot<?> previous) default Set<Relationship>dissociations(AggregateRoot<?> previous) static StringgetAggregateId(DeserializingMessage message) static Class<?>getAggregateType(DeserializingMessage message) static booleandefault AggregateRoot<T>default Entity<?,?> parent()default Optional<AggregateRoot<T>>playBackToCondition(Predicate<AggregateRoot<T>> condition) default AggregateRoot<T>playBackToEvent(String eventId) previous()default Set<Relationship>longupdate(UnaryOperator<T> function) Methods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
allEntities, apply, apply, apply, apply, apply, assertAndApply, assertAndApply, assertLegal, assertThat, ensure, entities, get, getEntity, id, idProperty, possibleTargets, root, type
-
Field Details
-
loading
-
AGGREGATE_ID_METADATA_KEY
- See Also:
-
AGGREGATE_TYPE_METADATA_KEY
- See Also:
-
-
Method Details
-
isLoading
static boolean isLoading() -
getAggregateId
-
getAggregateType
-
update
-
lastEventId
String lastEventId() -
lastEventIndex
Long lastEventIndex() -
timestamp
Instant timestamp() -
sequenceNumber
long sequenceNumber() -
previous
AggregateRoot<T> previous() -
playBackToEvent
-
playBackToCondition
-
makeReadOnly
-
relationships
-
associations
-
dissociations
-
parent
- Specified by:
parentin interfaceEntity<AggregateRoot<T>,T>
-