org.scala_libs.jpa

ScalaQuery

class ScalaQuery[A] extends AnyRef

This class represents a Scalafied version of the JPA Query class. Big features include better type safety and returning results as Lists. Instances of this class should be obtained via a ScalaEntityManager instance.

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

Instance Constructors

  1. new ScalaQuery(query: Query)

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. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  8. def executeUpdate(): Int

    Executes an update based on this query.

  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findAll: Buffer[A]

    Returns the results of the query as a Seq[A].

    Returns the results of the query as a Seq[A].

  11. def findOne: Option[A]

    Returns a single result of the query as an Option.

    Returns a single result of the query as an Option. If more than one result is found, a NonUniqueResultException is thrown.

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getResultList(): Buffer[A]

    Returns the results of the query as a Seq[A]

  14. def getSingleResult(): A

    Returns a single result of the query as an Option.

    Returns a single result of the query as an Option. If more than one result is found, a NonUniqueResultException is thrown. If no results are found, a NoResultException is thrown.

  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. val query: Query

  21. def setFirstResult(startPosition: Int): ScalaQuery[A]

    Sets the index of the first result to be returned.

    Sets the index of the first result to be returned. Used for pagination.

  22. def setFlushMode(flushMode: FlushModeType): ScalaQuery[A]

    Sets the flush mode for the current query.

  23. def setHint(hintName: String, value: Any): ScalaQuery[A]

    Sets the hints for this query.

    Sets the hints for this query. Hints are provider-specific.

    hintName

    The name of the hint

    value

    The value of the hint

  24. def setMaxResults(maxResult: Int): ScalaQuery[A]

    Sets the maximum number of results that will be returned.

    Sets the maximum number of results that will be returned. Used for pagination.

  25. def setParameter(position: Int, value: Calendar, temporalType: TemporalType): ScalaQuery[A]

    Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.

  26. def setParameter(name: String, value: Calendar, temporalType: TemporalType): ScalaQuery[A]

    Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.

  27. def setParameter(position: Int, value: Date, temporalType: TemporalType): ScalaQuery[A]

    Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.

  28. def setParameter(name: String, value: Date, temporalType: TemporalType): ScalaQuery[A]

    Sets the given time parameter to the given value, using the precision specified by the TemporalType parameter.

  29. def setParameter(position: Int, value: Any): ScalaQuery[A]

    Sets the given positional parameter for this query to the given value.

  30. def setParameter(name: String, value: Any): ScalaQuery[A]

    Sets the given named parameter for this query to the given value.

  31. def setParams(params: Pair[String, Any]*): ScalaQuery[A]

    Sets the parameters for this query from the given name->value pairs.

    Sets the parameters for this query from the given name->value pairs. An example is:

    val query = ... query.setParams("name" -> "fred", "age" -> 12)

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

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    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( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped