com.github.aselab.activerecord

RichQuery

case class RichQuery[T <: com.github.aselab.activerecord.ActiveRecordBase[_]](query: Queryable[T], m: Manifest[T]) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RichQuery
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichQuery(query: Queryable[T])(implicit m: Manifest[T])

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def canEqual(arg0: Any): Boolean

    Definition Classes
    RichQuery → Equals
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. val companion: com.github.aselab.activerecord.ActiveRecordBaseCompanion[_, T]

  10. def count: Long

  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    RichQuery → Equals → AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def findAllBy(name: String, value: Any): Query[T]

  15. def findAllBy(condition: (String, Any), conditions: (String, Any)*): Query[T]

  16. def findBy(name: String, value: Any): Option[T]

  17. def findBy(condition: (String, Any), conditions: (String, Any)*): Option[T]

  18. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    RichQuery → AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def limit(count: Int): Query[T]

    returns limited results.

    returns limited results.

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

    max count

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

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def orderBy(condition: (T) ⇒ OrderByExpression, conditions: (T) ⇒ OrderByExpression*): Query[T]

    sort results.

    sort results.

    Person.findAllBy("country", "Japan").orderBy(p => p.age asc)
    Person.all.orderBy(p => p.age asc, p => p.name asc)
    
    condition

    sort condition

    conditions

    multiple sort conditions(optional)

  26. def page(offset: Int, count: Int): Query[T]

    returns page results.

    returns page results.

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

    offset count

    count

    max count

  27. def productArity: Int

    Definition Classes
    RichQuery → Product
  28. def productElement(arg0: Int): Any

    Definition Classes
    RichQuery → Product
  29. def productIterator: Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix: String

    Definition Classes
    RichQuery → Product
  31. val query: Queryable[T]

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

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    RichQuery → AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def where(condition: (T) ⇒ LogicalBoolean): Query[T]

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any