Module org.fuin.cqrs4j
Package org.fuin.cqrs4j
Interface AggregateCommand<ROOT_ID extends org.fuin.ddd4j.ddd.AggregateRootId,ENTITY_ID extends org.fuin.ddd4j.ddd.EntityId>
- Type Parameters:
ROOT_ID- Type of the aggregate root identifier.ENTITY_ID- Type of the identifier (the last one in the path).
- All Superinterfaces:
Command,org.fuin.ddd4j.ddd.DomainEvent<ENTITY_ID>,org.fuin.ddd4j.ddd.Event,Serializable
- All Known Implementing Classes:
AbstractAggregateCommand
public interface AggregateCommand<ROOT_ID extends org.fuin.ddd4j.ddd.AggregateRootId,ENTITY_ID extends org.fuin.ddd4j.ddd.EntityId>
extends Command, org.fuin.ddd4j.ddd.DomainEvent<ENTITY_ID>
Common behavior shared by all commands related to an aggregate.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier of the aggregate root this command targets.Methods inherited from interface org.fuin.ddd4j.ddd.DomainEvent
getAggregateVersion, getAggregateVersionInteger, getEntityId, getEntityIdPathMethods inherited from interface org.fuin.ddd4j.ddd.Event
getCausationId, getCorrelationId, getEventId, getEventTimestamp, getEventType
-
Method Details
-
getAggregateRootId
Returns the identifier of the aggregate root this command targets.- Returns:
- Aggregate root identifier.
-