-
- All Implemented Interfaces:
-
org.enodeframework.commanding.CommandMessage,org.enodeframework.messaging.Message
public abstract class AbstractCommandMessage<TAggregateRootId> extends AbstractMessage implements CommandMessage<TAggregateRootId>
-
-
Field Summary
Fields Modifier and Type Field Description public TAggregateRootIdaggregateRootId
-
Constructor Summary
Constructors Constructor Description AbstractCommandMessage()AbstractCommandMessage(TAggregateRootId aggregateRootId)AbstractCommandMessage(TAggregateRootId aggregateRootId, Map<String, Object> items)AbstractCommandMessage(String id, TAggregateRootId aggregateRootId)Init command with id and aggregateRootId AbstractCommandMessage(String id, TAggregateRootId aggregateRootId, Map<String, Object> items)
-
Method Summary
Modifier and Type Method Description TAggregateRootIdgetAggregateRootId()Represents the associated aggregate root string id. voidsetAggregateRootId(TAggregateRootId aggregateRootId)Represents the associated aggregate root string id. StringgetAggregateRootIdAsString()-
Methods inherited from class org.enodeframework.messaging.AbstractMessage
getId, getItems, getTimestamp, setId, setItems, setTimestamp -
Methods inherited from class org.enodeframework.messaging.Message
mergeItems -
Methods inherited from class org.enodeframework.commanding.CommandMessage
getAggregateRootId, setAggregateRootId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractCommandMessage
AbstractCommandMessage()
-
AbstractCommandMessage
AbstractCommandMessage(TAggregateRootId aggregateRootId)
-
AbstractCommandMessage
AbstractCommandMessage(TAggregateRootId aggregateRootId, Map<String, Object> items)
-
AbstractCommandMessage
AbstractCommandMessage(String id, TAggregateRootId aggregateRootId)
Init command with id and aggregateRootId
-
AbstractCommandMessage
AbstractCommandMessage(String id, TAggregateRootId aggregateRootId, Map<String, Object> items)
-
-
Method Detail
-
getAggregateRootId
TAggregateRootId getAggregateRootId()
Represents the associated aggregate root string id.
-
setAggregateRootId
void setAggregateRootId(TAggregateRootId aggregateRootId)
Represents the associated aggregate root string id.
-
getAggregateRootIdAsString
String getAggregateRootIdAsString()
-
-
-
-