Class NoOpAggregateRoot<T>
java.lang.Object
io.fluxcapacitor.javaclient.modeling.NoOpAggregateRoot<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 TypeMethodDescription<E extends Exception>
AggregateRoot<T>assertLegal(Object command) <E extends Exception>
AggregateRoot<T>assertThat(Entity.Validator<T, E> validator) <E extends Exception>
AggregateRoot<T>Collection<? extends Entity<?,?>> entities()get()id()previous()longtype()update(UnaryOperator<T> function) 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, makeReadOnly, parent, playBackToCondition, playBackToEvent, relationshipsMethods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
allEntities, apply, apply, apply, apply, assertAndApply, assertAndApply, getEntity, possibleTargets, root
-
Constructor Details
-
NoOpAggregateRoot
public NoOpAggregateRoot()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceEntity<AggregateRoot<T>,T>
-
update
- Specified by:
updatein interfaceAggregateRoot<T>
-
assertLegal
- Specified by:
assertLegalin interfaceEntity<AggregateRoot<T>,T> - Throws:
E extends Exception
-
assertThat
- Specified by:
assertThatin interfaceEntity<AggregateRoot<T>,T> - Throws:
E extends Exception
-
ensure
-
lastEventId
- Specified by:
lastEventIdin interfaceAggregateRoot<T>
-
lastEventIndex
- Specified by:
lastEventIndexin interfaceAggregateRoot<T>
-
timestamp
- Specified by:
timestampin interfaceAggregateRoot<T>
-
sequenceNumber
public long sequenceNumber()- Specified by:
sequenceNumberin interfaceAggregateRoot<T>
-
previous
- Specified by:
previousin 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>
-