sorm

Querier

class Querier[T <: AnyRef] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Querier
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Querier(query: Query, connector: Connector)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T])

Value Members

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

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

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

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

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def count(): Int

    Fetch a number of matching entities stored in db.

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

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

    Definition Classes
    AnyRef → Any
  9. def exists(): Boolean

    Fetch a boolean value indicating whether any matching entities are stored in db.

  10. def fetch(): Stream[T with Persisted]

    Fetch matching entities from db.

    Fetch matching entities from db.

    returns

    A stream of entity instances with sorm.Persisted mixed in

  11. def fetchIds(): Stream[Long]

    Fetch ids of matching entities stored in db.

    Fetch ids of matching entities stored in db.

    returns

    A stream of ids

  12. def fetchOne(): Option[T with Persisted]

    Fetch only one entity ensuring that limit(1) is applied to the query.

    Fetch only one entity ensuring that limit(1) is applied to the query.

    returns

    An option of entity instance with sorm.Persisted mixed in

  13. def fetchOneId(): Option[Long]

    Fetch only one id ensuring that limit(1) is applied to the query.

  14. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  18. def limit(amount: Int): Querier[T]

    Limit the amount of entities to be fetched

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

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

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

    Definition Classes
    AnyRef
  22. def offset(offset: Int): Querier[T]

    Set the amount of first results to skip

  23. def order(p: String, reverse: Boolean = false): Querier[T]

    Add an ordering instruction

  24. def replace(value: T): List[T with Persisted]

    Replace all matching entities stored in db with the value provided

    Replace all matching entities stored in db with the value provided

    value

    A value to replace the existing entities with

    returns

    A list of saved entities with sorm.Persisted mixed in

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def where(f: Filter): Querier[T]

    Return a copy of this Querier object with a filter generated from DSL.

    Return a copy of this Querier object with a filter generated from DSL.

    Usage of this method should be accompanied with

    import sorm.Dsl._
  31. def whereConstitutes(p: String, v: Any): Querier[T]

  32. def whereContains(p: String, v: Any): Querier[T]

  33. def whereEqual(p: String, v: Any): Querier[T]

    Return a copy of this Querier object with an equality filter applied.

    Return a copy of this Querier object with an equality filter applied.

    p

    A string indicating a path to the property on which to filter

    v

    A value to compare with

    returns

    A new instance of Querier with this filter applied

  34. def whereIn(p: String, v: Any): Querier[T]

  35. def whereIncludes(p: String, v: Any): Querier[T]

  36. def whereLarger(p: String, v: Any): Querier[T]

  37. def whereLargerOrEqual(p: String, v: Any): Querier[T]

  38. def whereLike(p: String, v: Any): Querier[T]

  39. def whereNotConstitutes(p: String, v: Any): Querier[T]

  40. def whereNotContains(p: String, v: Any): Querier[T]

  41. def whereNotEqual(p: String, v: Any): Querier[T]

  42. def whereNotIn(p: String, v: Any): Querier[T]

  43. def whereNotIncludes(p: String, v: Any): Querier[T]

  44. def whereNotLike(p: String, v: Any): Querier[T]

  45. def whereNotRegex(p: String, v: Any): Querier[T]

  46. def whereRegex(p: String, v: Any): Querier[T]

  47. def whereSmaller(p: String, v: Any): Querier[T]

  48. def whereSmallerOrEqual(p: String, v: Any): Querier[T]

Inherited from AnyRef

Inherited from Any

Ungrouped