Trait

com.github.aselab.activerecord.inner.Relations

QuerySupport

Related Doc: package Relations

Permalink

trait QuerySupport[T <: AR, S] extends AnyRef

Source
Relations.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QuerySupport
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Inc[A <: AR] = (T) ⇒ ActiveRecord.Association[T, A]

    Permalink
  2. abstract type JoinedType <: TupleN

    Permalink
  3. type TupleN = AnyRef { def _1: T }

    Permalink

Abstract Value Members

  1. abstract def copyParams[R](params: Parameters[T, JoinedType, R]): Relation[T, R]

    Permalink
    Attributes
    protected
  2. abstract val manifest: ClassTag[T]

    Permalink
  3. abstract val parameters: Parameters[T, JoinedType, S]

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. lazy val companion: ActiveRecordBaseCompanion[_, T]

    Permalink
  7. def conditions: List[(JoinedType) ⇒ dsl.LogicalBoolean]

    Permalink
  8. def copyParams[R](conditions: List[(JoinedType) ⇒ dsl.LogicalBoolean] = parameters.conditions, orders: List[(JoinedType) ⇒ dsl.ExpressionNode] = parameters.orders, selector: (JoinedType) ⇒ R = parameters.selector, includeAssociations: List[(T) ⇒ ActiveRecord.Association[T, AR]] = parameters.includeAssociations, pages: Option[(Int, Int)] = parameters.pages, isUnique: Boolean = parameters.isUnique, isReverse: Boolean = parameters.isReverse): Relation[T, R]

    Permalink
    Attributes
    protected
  9. def distinct: QuerySupport.this.type

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def includeAssociations: List[(T) ⇒ ActiveRecord.Association[T, AR]]

    Permalink
  16. def includes[A1 <: AR, A2 <: AR, A3 <: AR, A4 <: AR](a1: Inc[A1], a2: Inc[A2], a3: Inc[A3], a4: Inc[A4]): QuerySupport.this.type

    Permalink
  17. def includes[A1 <: AR, A2 <: AR, A3 <: AR](a1: Inc[A1], a2: Inc[A2], a3: Inc[A3]): QuerySupport.this.type

    Permalink
  18. def includes[A1 <: AR, A2 <: AR](a1: Inc[A1], a2: Inc[A2]): QuerySupport.this.type

    Permalink
  19. def includes[A <: AR](association: Inc[A]): QuerySupport.this.type

    Permalink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isReverse: Boolean

    Permalink
  22. def isUnique: Boolean

    Permalink
  23. def limit(count: Int): QuerySupport.this.type

    Permalink

    returns limited results.

    returns limited results.

    Post.all.orderBy(p => p.updatedAt desc).limit(10)
    count

    max count

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

    Permalink
    Definition Classes
    AnyRef
  25. def not(condition: (T) ⇒ dsl.LogicalBoolean): QuerySupport.this.type

    Permalink
  26. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  28. def orderBy(conditions: (T) ⇒ dsl.ExpressionNode*): QuerySupport.this.type

    Permalink
  29. def orders: List[(JoinedType) ⇒ dsl.ExpressionNode]

    Permalink
  30. def ordersExpression(m: JoinedType): List[dsl.ExpressionNode]

    Permalink
    Attributes
    protected
  31. def page(offset: Int, count: Int): QuerySupport.this.type

    Permalink

    returns page results.

    returns page results.

    Post.all.orderBy(p => p.updatedAt desc).page(10 * (pageNumber - 1), 10)
    offset

    offset count

    count

    max count

  32. def pages: Option[(Int, Int)]

    Permalink
  33. def paginate[R](query: dsl.Query[R]): Query[R]

    Permalink
    Attributes
    protected
  34. implicit def relationToThisType[R](self: Relation[T, R]): QuerySupport.this.type

    Permalink
    Attributes
    protected
  35. def reverse: QuerySupport.this.type

    Permalink
  36. def reverseOrder(m: JoinedType): List[dsl.OrderByExpression]

    Permalink
    Attributes
    protected
  37. def select[R](selector: (T) ⇒ R): Relation[T, R]

    Permalink
  38. def selector: (JoinedType) ⇒ S

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def where(condition: (T) ⇒ dsl.LogicalBoolean): QuerySupport.this.type

    Permalink
  45. def whereScope(m: JoinedType): WhereState[_ >: Unconditioned with Conditioned <: AnyRef]

    Permalink
    Attributes
    protected
  46. def wrap[A <: TupleN, R](f: (T) ⇒ R): (A) ⇒ R

    Permalink
    Attributes
    protected
  47. def wrapTuple1[A <: TupleN, R](f: ((T)) ⇒ R): (A) ⇒ R

    Permalink
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped