All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.enodeframework.eventing.DomainEvent Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy