Class

longevity.subdomain

RootType

Related Doc: package subdomain

Permalink

abstract class RootType[R <: Root] extends EntityType[R]

a type class for a domain entity that serves as an aggregate root

Source
RootType.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RootType
  2. EntityType
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RootType()(implicit rootTypeKey: TypeKey[R], shorthandPool: ShorthandPool = ShorthandPool.empty)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to any2stringadd[RootType[R]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RootType[R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to ArrowAssoc[RootType[R]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val emblem: Emblem[R]

    Permalink
    Definition Classes
    EntityType
  9. def ensuring(cond: (RootType[R]) ⇒ Boolean, msg: ⇒ Any): RootType[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to Ensuring[RootType[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (RootType[R]) ⇒ Boolean): RootType[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to Ensuring[RootType[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): RootType[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to Ensuring[RootType[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): RootType[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to Ensuring[RootType[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. val entityTypeKey: TypeKey[R]

    Permalink
    Definition Classes
    EntityType
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to StringFormat[RootType[R]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def index(propsHead: Prop[R, _], propsTail: Prop[R, _]*): Index[R]

    Permalink

    constructs a index for this root type based on the supplied set of index props

    constructs a index for this root type based on the supplied set of index props

    propsHead

    one of the properties that define this index

    propsTail

    any remaining properties that define this index

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to create a new index after the RootType is fully initialized

  21. def index(propPathHead: String, propPathTail: String*): Index[R]

    Permalink

    constructs an index for this root type based on the supplied set of property paths

    constructs an index for this root type based on the supplied set of property paths

    propPathHead

    one of the property paths for the properties that define this index

    propPathTail

    any remaining property paths for the properties that define this index

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to create a new index after the RootType is fully initialized

    longevity.exceptions.subdomain.root.PropException if any of the supplied property paths are invalid

    See also

    Prop.apply

  22. lazy val indexes: Set[Index[R]]

    Permalink

    the indexes for this root type.

    the indexes for this root type. you populate this set by repeatedly calling either of the RootType.index methods in your class initializer. you should only attempt to access this set after your RootType is fully initialized.

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to access this set before the RootType is fully initialized

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def key(propsHead: Prop[R, _], propsTail: Prop[R, _]*): Key[R]

    Permalink

    constructs a key for this root type based on the supplied set of key props

    constructs a key for this root type based on the supplied set of key props

    propsHead

    one of the properties that define this key

    propsTail

    any remaining properties that define this key

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to create a new key after the RootType is fully initialized

  25. def key(propPathHead: String, propPathTail: String*): Key[R]

    Permalink

    constructs a key for this root type based on the supplied set of property paths

    constructs a key for this root type based on the supplied set of property paths

    propPathHead

    one of the property paths for the properties that define this key

    propPathTail

    any remaining property paths for the properties that define this key

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to create a new key after the RootType is fully initialized

    longevity.exceptions.subdomain.root.PropException if any of the supplied property paths are invalid

    See also

    Prop.apply

  26. lazy val keys: Set[Key[R]]

    Permalink

    the keys for this root type.

    the keys for this root type. you populate this set by repeatedly calling either of the RootType.key methods in your class initializer. you should only attempt to access this set after your RootType is fully initialized.

    Exceptions thrown

    longevity.exceptions.subdomain.SubdomainException on attempt to access this set before the RootType is fully initialized

  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def prop[A](path: String)(implicit arg0: TypeKey[A]): Prop[R, A]

    Permalink

    constructs a longevity.subdomain.root.Prop from a path

    constructs a longevity.subdomain.root.Prop from a path

    Exceptions thrown

    longevity.exceptions.subdomain.root.PropException if any step along the path does not exist, or any non-final step along the path is not an entity, or the final step along the path is not a Shorthand, an Assoc or a basic type

    See also

    emblem.basicTypes

  31. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  33. def validateQuery(query: Query[R]): ValidatedQuery[R]

    Permalink

    translates the query into a validated query by resolving all the property paths to properties.

    translates the query into a validated query by resolving all the property paths to properties. throws exception if the property value supplied does not match the property type.

    Exceptions thrown

    longevity.exceptions.subdomain.root.PropValTypeException if a dynamic part of the query is mistyped

  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def [B](y: B): (RootType[R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RootType[R] to ArrowAssoc[RootType[R]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from EntityType[R]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from RootType[R] to any2stringadd[RootType[R]]

Inherited by implicit conversion StringFormat from RootType[R] to StringFormat[RootType[R]]

Inherited by implicit conversion Ensuring from RootType[R] to Ensuring[RootType[R]]

Inherited by implicit conversion ArrowAssoc from RootType[R] to ArrowAssoc[RootType[R]]

Ungrouped