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. Hide All
  2. Show all
  1. ScalaQuery
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaQuery (query: Query)

Value Members

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

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

    Executes an update based on this query.

  11. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def findAll : Buffer[A]

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

  13. 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.

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

    Attributes
    final
    Definition Classes
    AnyRef
  15. def getResultList (): Buffer[A]

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

  16. 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.

  17. def hashCode (): Int

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  22. val query : Query

  23. 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.

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

    Sets the flush mode for the current query.

  25. 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

  26. 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.

  27. 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.

  28. 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.

  29. 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.

  30. 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.

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

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

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

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

  33. def setParams (params: (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)

  34. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  35. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any