org.enodeframework.eventing.DomainEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enode Show documentation
Show all versions of enode Show documentation
The enodeframework core implementation.
package org.enodeframework.eventing;
import org.enodeframework.messaging.Message;
/**
* Represents an abstract generic domain event.
*/
public abstract class DomainEvent extends Message implements IDomainEvent {
private String commandId;
private TAggregateRootId aggregateRootId;
private String aggregateRootTypeName;
private int version;
private int sequence;
public DomainEvent() {
super();
this.version = 1;
this.sequence = 1;
}
@Override
public String getCommandId() {
return commandId;
}
@Override
public void setCommandId(String commandId) {
this.commandId = commandId;
}
@Override
public TAggregateRootId getAggregateRootId() {
return aggregateRootId;
}
@Override
public void setAggregateRootId(TAggregateRootId aggregateRootId) {
this.aggregateRootId = aggregateRootId;
}
@Override
public String getAggregateRootTypeName() {
return aggregateRootTypeName;
}
@Override
public void setAggregateRootTypeName(String aggregateRootTypeName) {
this.aggregateRootTypeName = aggregateRootTypeName;
}
@Override
public int getVersion() {
return version;
}
@Override
public void setVersion(int version) {
this.version = version;
}
@Override
public int getSequence() {
return sequence;
}
@Override
public void setSequence(int sequence) {
this.sequence = sequence;
}
}