Package

longevity.subdomain

ptype

Permalink

package ptype

provides tools for defining the types for your persistent classes

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ptype
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AnyKey[P <: Persistent] = Key[P, V] forSome {type V <: KeyVal[P, V]}

    Permalink

    an arbitrary key type for a given persistent type P

  2. sealed case class ConditionalQuery[P <: Persistent](lhs: Query[P], op: LogicalOp, rhs: Query[P]) extends Query[P] with Product with Serializable

    Permalink

    a conditional query.

    a conditional query. combines two sub-queries with an and or an or operator.

    lhs

    the left-hand side sub-query

    op

    the and or or operator

    rhs

    the right-hand side sub-query

  3. trait DerivedPType[P <: Persistent, Poly >: P <: Persistent] extends PType[P]

    Permalink

    one of the derived types in a family of persistent types.

    one of the derived types in a family of persistent types. mix this in to youe persistent type when it represents a concrete subtype of a PolyPType.

  4. sealed case class EqualityQuery[P <: Persistent, A](prop: Prop[_ >: P <: Persistent, A], op: EqualityOp, value: A) extends Query[P] with Product with Serializable

    Permalink

    an equality query.

    an equality query. compares a property to a value with an eq or an neq operator.

    prop

    the property to compare

    op

    the eq or neq operator

    value

    the value to compare

  5. abstract class EventType[E <: Event] extends PType[E]

    Permalink

    a type class for events

  6. case class Index[P <: Persistent] extends Product with Serializable

    Permalink

    an index for a persistent type

    an index for a persistent type

    P

    the persistent type

  7. case class Key[P <: Persistent, V <: KeyVal[P, V]] extends Product with Serializable

    Permalink

    a natural key for this persistent type.

    a natural key for this persistent type. wraps a property that, given specific a property value, will match the corresponding member of no more than one persistent object.

    P

    the persistent type

    V

    the key value type

  8. sealed case class OrderingQuery[P <: Persistent, A](prop: Prop[_ >: P <: Persistent, A], op: OrderingOp, value: A) extends Query[P] with Product with Serializable

    Permalink

    an ordering query.

    an ordering query. compares a property to a value with a lt, lte, gt, or gte operator.

    prop

    the property to compare

    op

    the ordering operator

    value

    the value to compare

  9. abstract class PType[P <: Persistent] extends AnyRef

    Permalink

    a type class for a domain element that is stored in a persistent collection

    a type class for a domain element that is stored in a persistent collection

    P

    the persistent type

  10. type PTypePool = TypeKeyMap[Persistent, PType]

    Permalink

    a type key map of Persistent to PType

    a type key map of Persistent to PType

    See also

    emblem.TypeKeyMap

  11. trait PolyPType[P <: Persistent] extends PType[P]

    Permalink

    the base type for a family of persistent types.

    the base type for a family of persistent types. mix this in to your persistent type when it represents an abstract persistent type with concrete subtypes.

  12. case class Prop[P <: Persistent, A] extends Product with Serializable

    Permalink

    a property for this persistent type.

    a property for this persistent type. properties map to underlying members within the [Persistent persistent object], at any depth.

    properties can be used to define keys and indexes, as well as for building queries. a property can descend from the root into child entities at any depth.

    at present, a property cannot pass through any collections or terminate with a polymorphic embeddable. violations will cause an exception to be thrown on Subdomain construction.

  13. sealed trait Query[P <: Persistent] extends AnyRef

    Permalink

    a query for looking up persistent entities of type P

  14. class QueryDsl[P <: Persistent] extends AnyRef

    Permalink

    a DSL for creating queries.

    a DSL for creating queries. you can find it in your persistent type at PType.queryDsl

  15. abstract class RootType[R <: Root] extends PType[R]

    Permalink

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

  16. abstract class View[V <: ViewItem] extends PType[V]

    Permalink

    a type class for views

Value Members

  1. object PTypePool

    Permalink

    houses methods for constructing persistent type pools

  2. object Query

    Permalink

    query operators and factory methods

Inherited from AnyRef

Inherited from Any

Ungrouped