Package

longevity.model

query

Permalink

package query

Content Hierarchy
Visibility
  1. Public
  2. All

Type Members

  1. sealed case class ConditionalFilter[P](lhs: QueryFilter[P], op: LogicalOp, rhs: QueryFilter[P]) extends QueryFilter[P] with Product with Serializable

    Permalink

    a conditional query filter.

    a conditional query filter. 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

  2. sealed case class FilterAll[P]() extends QueryFilter[P] with Product with Serializable

    Permalink

    a query that filters nothing and returns everything

  3. sealed trait LogicalOp extends AnyRef

    Permalink

    either of the binary logical operators and and or

  4. case class Query[P](filter: QueryFilter[P], orderBy: QueryOrderBy[P] = QueryOrderBy.empty[P], offset: Option[Int] = None, limit: Option[Int] = None) extends Product with Serializable

    Permalink

    a query for looking up persistent objects of type P

  5. sealed trait QueryFilter[P] extends AnyRef

    Permalink

    a query filter for looking up persistent entities of type P

  6. case class QueryOrderBy[P](sortExprs: Seq[QuerySortExpr[P]]) extends Product with Serializable

    Permalink

    a query order by clause

    a query order by clause

    sortExprs

    the sort expressions that make up the order by clause

  7. sealed trait QuerySortDirection extends AnyRef

    Permalink

    the direction for a query sort expression

  8. case class QuerySortExpr[P](prop: Prop[_ >: P, _], direction: QuerySortDirection = Ascending) extends Product with Serializable

    Permalink

    a query sort expression

    a query sort expression

    prop

    the property to sort on

    direction

    the direction of the sort

  9. sealed case class RelationalFilter[P, A](prop: Prop[_ >: P, A], op: RelationalOp, value: A) extends QueryFilter[P] with Product with Serializable

    Permalink

    an equality query filter.

    an equality query filter. compares a property to a value with an eq, neq, lt, lte, gt, or gte operator.

    prop

    the property to compare

    op

    the relational operator

    value

    the value to compare

  10. sealed trait RelationalOp extends AnyRef

    Permalink

    a query relational operator.

    a query relational operator. compares a persistent property to a raw value

Value Members

  1. object AndOp extends LogicalOp with Product with Serializable

    Permalink

    the and operator

  2. object Ascending extends QuerySortDirection with Product with Serializable

    Permalink

    an ascending sort for a query sort expression

  3. object Descending extends QuerySortDirection with Product with Serializable

    Permalink

    a descending sort for a query sort expression

  4. object EqOp extends RelationalOp with Product with Serializable

    Permalink

    the equals operator

  5. object GtOp extends RelationalOp with Product with Serializable

    Permalink

    the greater than operator

  6. object GteOp extends RelationalOp with Product with Serializable

    Permalink

    the greater than equals operator

  7. object LtOp extends RelationalOp with Product with Serializable

    Permalink

    the less than operator

  8. object LteOp extends RelationalOp with Product with Serializable

    Permalink

    the less than equals operator

  9. object NeqOp extends RelationalOp with Product with Serializable

    Permalink

    the not equals operator

  10. object OrOp extends LogicalOp with Product with Serializable

    Permalink

    the or operator

  11. object QueryFilter

    Permalink

    query filter factory methods

  12. object QueryOrderBy extends Serializable

    Permalink

    contains a factory method for an empty order by clause

Ungrouped