works.iterative.entity

Members list

Type members

Classlikes

final case class ARCommand[Id, Command](id: Id, command: Command, record: EventRecord)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ARCommandResult[Id, Command, Event, State](command: ARCommand[Id, Command], originalState: State, newState: State, events: Seq[AREvent[Id, Event]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class AREvent[Id, Event](id: Id, event: Event, record: EventRecord)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait AggregateError[Id, Command, Event, State]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CommandError[Id, Command, Event, State]
class InvalidCommand[Id, Command, Event, State]
class UnhandledCommand[Id, Command, Event, State]
trait EventError[Id, Command, Event, State]
class UnhandledEvent[Id, Command, Event, State]
trait FactoryError[Id, Command, Event, State]
class EntityAlreadyExists[Id, Command, Event, State]
class EntityNotFound[Id, Command, Event, State]
class InvalidRequest[Id, Command, Event, State]
Show all
trait AggregateRoot[Id, Command, Event, State]

Attributes

Supertypes
class Object
trait Matchable
class Any
trait AggregateRootFactory[Id, Command, Event, State, T <: AggregateRoot[Id, Command, Event, State]]()

Attributes

Supertypes
class Object
trait Matchable
class Any
trait AggregateRootModule[Id, Command, Event, State]

Attributes

Supertypes
class Object
trait Matchable
class Any
sealed trait CommandError[Id, Command, Event, State] extends AggregateError[Id, Command, Event, State]

Attributes

Supertypes
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Known subtypes
class InvalidCommand[Id, Command, Event, State]
class UnhandledCommand[Id, Command, Event, State]
case class EntityAlreadyExists[Id, Command, Event, State](entityId: String, id: Id) extends FactoryError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait FactoryError[Id, Command, Event, State]
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
trait EntityCreateService[Id, Command, Event, State, Init]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EntityService[Id, Command, Event, State, Init]
trait EntityFactory[Entity, Seed]

Generic class for entity factories.

Generic class for entity factories.

Creates a new entity from a "seed".

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class GeneratingFactory[Entity, Seed, Id]
case class EntityNotFound[Id, Command, Event, State](entityId: String, id: Id) extends FactoryError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait FactoryError[Id, Command, Event, State]
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
trait EntityService[Id, Command, Event, State, Init] extends EntityCreateService[Id, Command, Event, State, Init], EntityUpdateService[Id, Command, Event, State]

Attributes

Supertypes
trait EntityUpdateService[Id, Command, Event, State]
trait EntityCreateService[Id, Command, Event, State, Init]
class Object
trait Matchable
class Any
trait EntityServiceAccessor[R, Id, Command, Event, State]

Attributes

Supertypes
class Object
trait Matchable
class Any
trait EntityUpdateService[Id, Command, Event, State]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EntityService[Id, Command, Event, State, Init]
sealed trait EventError[Id, Command, Event, State] extends AggregateError[Id, Command, Event, State]

Attributes

Supertypes
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Known subtypes
class UnhandledEvent[Id, Command, Event, State]
sealed trait FactoryError[Id, Command, Event, State] extends AggregateError[Id, Command, Event, State]

Attributes

Supertypes
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Known subtypes
class EntityAlreadyExists[Id, Command, Event, State]
class EntityNotFound[Id, Command, Event, State]
class GeneratingFactory[Entity, Seed, Id](constructor: Seed => Validated[Id => Entity], idGenerator: IdGenerator[Id]) extends EntityFactory[Entity, Seed]

A factory using idGenerator to create the entity

A factory using idGenerator to create the entity

Attributes

Supertypes
trait EntityFactory[Entity, Seed]
class Object
trait Matchable
class Any
case class InvalidCommand[Id, Command, Event, State](command: ARCommand[Id, Command], state: State, message: UserMessage) extends CommandError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait CommandError[Id, Command, Event, State]
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
case class InvalidRequest[Id, Command, Event, State](message: UserMessage) extends AggregateError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
case class UnhandledCommand[Id, Command, Event, State](command: ARCommand[Id, Command], state: State) extends CommandError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait CommandError[Id, Command, Event, State]
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
case class UnhandledEvent[Id, Command, Event, State](event: AREvent[Id, Event], state: State) extends EventError[Id, Command, Event, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait EventError[Id, Command, Event, State]
trait AggregateError[Id, Command, Event, State]
class Object
trait Matchable
class Any
Show all
trait ViewProcessor[Event]

Attributes

Supertypes
class Object
trait Matchable
class Any