package query
- Alphabetic
- Public
- All
Type Members
-
sealed
case class
ConditionalFilter[P](lhs: QueryFilter[P], op: LogicalOp, rhs: QueryFilter[P]) extends QueryFilter[P] with Product with Serializable
a conditional query filter.
a conditional query filter. combines two sub-queries with an
and
or anor
operator.- lhs
the left-hand side sub-query
- op
the
and
oror
operator- rhs
the right-hand side sub-query
-
sealed
case class
FilterAll[P]() extends QueryFilter[P] with Product with Serializable
a query that filters nothing and returns everything
-
sealed
trait
LogicalOp extends AnyRef
either of the binary logical operators and and or
-
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
a query for looking up persistent objects of type
P
-
sealed
trait
QueryFilter[P] extends AnyRef
a query filter for looking up persistent entities of type
P
-
case class
QueryOrderBy[P](sortExprs: Seq[QuerySortExpr[P]]) extends Product with Serializable
a query order by clause
a query order by clause
- sortExprs
the sort expressions that make up the order by clause
-
sealed
trait
QuerySortDirection extends AnyRef
the direction for a query sort expression
-
case class
QuerySortExpr[P](prop: Prop[_ >: P, _], direction: QuerySortDirection = Ascending) extends Product with Serializable
a query sort expression
a query sort expression
- prop
the property to sort on
- direction
the direction of the sort
-
sealed
case class
RelationalFilter[P, A](prop: Prop[_ >: P, A], op: RelationalOp, value: A) extends QueryFilter[P] with Product with Serializable
an equality query filter.
an equality query filter. compares a property to a value with an
eq
,neq
,lt
,lte
,gt
, orgte
operator.- prop
the property to compare
- op
the relational operator
- value
the value to compare
-
sealed
trait
RelationalOp extends AnyRef
a query relational operator.
a query relational operator. compares a persistent property to a raw value
Value Members
-
object
AndOp extends LogicalOp with Product with Serializable
the and operator
-
object
Ascending extends QuerySortDirection with Product with Serializable
an ascending sort for a query sort expression
-
object
Descending extends QuerySortDirection with Product with Serializable
a descending sort for a query sort expression
-
object
EqOp extends RelationalOp with Product with Serializable
the equals operator
-
object
GtOp extends RelationalOp with Product with Serializable
the greater than operator
-
object
GteOp extends RelationalOp with Product with Serializable
the greater than equals operator
-
object
LtOp extends RelationalOp with Product with Serializable
the less than operator
-
object
LteOp extends RelationalOp with Product with Serializable
the less than equals operator
-
object
NeqOp extends RelationalOp with Product with Serializable
the not equals operator
-
object
OrOp extends LogicalOp with Product with Serializable
the or operator
-
object
QueryFilter
query filter factory methods
-
object
QueryOrderBy extends Serializable
contains a factory method for an empty order by clause