AggregateRootModule

works.iterative.entity.AggregateRootModule
trait AggregateRootModule[Id, Command, Event, State]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

type ARCommand = ARCommand[Id, Command]
type ARCommandResult = ARCommandResult[Id, Command, Event, State]
type AREvent = AREvent[Id, Event]
type AggregateError = AggregateError[Id, Command, Event, State]
type AggregateRoot = AggregateRoot[Id, Command, Event, State]
type AggregateRootFactory[T <: AggregateRoot] = AggregateRootFactory[Id, Command, Event, State, T]
type CommandError = CommandError[Id, Command, Event, State]
type EntityAlreadyExists = EntityAlreadyExists[Id, Command, Event, State]
type EntityCreateService[Init] = EntityCreateService[Id, Command, Event, State, Init]
type EntityNotFound = EntityNotFound[Id, Command, Event, State]
type EntityService[Init] = EntityService[Id, Command, Event, State, Init]
type EntityServiceAccessor[R] = EntityServiceAccessor[R, Id, Command, Event, State]
type EntityUpdateService[Init] = EntityUpdateService[Id, Command, Event, State]
type EventError = EventError[Id, Command, Event, State]
type FactoryError = FactoryError[Id, Command, Event, State]
type InvalidCommand = InvalidCommand[Id, Command, Event, State]
type UnhandledCommand = UnhandledCommand[Id, Command, Event, State]
type UnhandledEvent = UnhandledEvent[Id, Command, Event, State]

Value members

Concrete methods

def ARCommand(id: Id, command: Command, record: EventRecord): ARCommand
def ARCommandResult(command: ARCommand, originalState: State, newState: State, events: Seq[AREvent]): ARCommandResult
def AREvent(id: Id, event: Event, record: EventRecord): AREvent
def EntityAlreadyExists(entityId: String, id: Id): EntityAlreadyExists
def EntityNotFound(entityId: String, id: Id): EntityNotFound
def InvalidCommand(command: ARCommand, state: State, message: UserMessage): InvalidCommand
def UnhandledCommand(command: ARCommand, state: State): UnhandledCommand
def UnhandledEvent(event: AREvent, state: State): UnhandledEvent