Class/Object

io.funcqrs

AssignedIdStrategy

Related Docs: object AssignedIdStrategy | package funcqrs

Permalink

class AssignedIdStrategy[A <: AggregateLike] extends AggregateIdStrategy[A]

Strategy to use whenever id generation is managed externally. For instance, when user is responsible for choosing an unique id or when it's generated by a external systems.

When using this strategy, Aggregates are expected to be initialized with a tuple (Id, Command) where Id is the Aggregate id assigned externally and Command the creational (or seed command) to construct the first Aggregate instance.

A

the AggregateType

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AssignedIdStrategy
  2. AggregateIdStrategy
  3. AggregateAliases
  4. ProtocolAliases
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AssignedIdStrategy()

    Permalink

Type Members

  1. type Aggregate = A

    Permalink

    The Aggregate type.

    The Aggregate type. This is the only (abstract) type member to be defined.

    All other type members are aliases defined by type projection of inner types from Aggregate type itself.

    Definition Classes
    AggregateIdStrategyAggregateAliases
  2. type Command = AggregateLike.Protocol.ProtocolCommand

    Permalink

    Alias for Aggregate's ProtocolCommand

    Alias for Aggregate's ProtocolCommand

    Definition Classes
    ProtocolAliases
  3. type Event = AggregateLike.Protocol.ProtocolEvent

    Permalink

    Alias for Aggregate's ProtocolEvent

    Alias for Aggregate's ProtocolEvent

    Definition Classes
    ProtocolAliases
  4. type Events = Seq[Event]

    Permalink

    Alias for an immutable Seq of Aggregate's ProtocolEvent

    Alias for an immutable Seq of Aggregate's ProtocolEvent

    Definition Classes
    ProtocolAliases
  5. type Id = A.Id

    Permalink

    Alias for Aggregate#Id

    Alias for Aggregate#Id

    Definition Classes
    AggregateAliases
  6. type Protocol = A.Protocol

    Permalink

    Alias for Aggregate#Protocol

    Alias for Aggregate#Protocol

    Definition Classes
    AggregateAliasesProtocolAliases
  7. type ReceiveCreateCommand = PartialFunction[Any, (Id, Command)]

    Permalink

    Partial function to transform incoming messages to (Id, Command) tuple

    Partial function to transform incoming messages to (Id, Command) tuple

    Definition Classes
    AggregateIdStrategy

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def seedCommandReceive: ReceiveCreateCommand

    Permalink

    Receives (Id, Command) tuple and returns it as it.

    Receives (Id, Command) tuple and returns it as it.

    Definition Classes
    AssignedIdStrategyAggregateIdStrategy
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AssignedIdStrategy → AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AggregateIdStrategy[A]

Inherited from AggregateAliases

Inherited from ProtocolAliases

Inherited from AnyRef

Inherited from Any

Ungrouped