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. 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

  4. 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

  5. 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

  6. 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

  7. 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.

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

    Permalink

    a query for looking up persistent entities of type P

  9. 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

Value Members

  1. object Query

    Permalink

    query operators and factory methods

Inherited from AnyRef

Inherited from Any

Ungrouped