net.liftweb.jpa

RequestVarEM

trait RequestVarEM extends ScalaEntityManager with ScalaEMFactory

This trait provides specific functionality for the Lift web framework by using a Lift RequestVar to hold the underlying EM. This allows you to use a singleton for EM access. You must mix in some other class to provide the actual ScalaEMFactory functionality. Example usage would be:

object Model extends LocalEMF("test") with RequestVarEM

Linear Supertypes
ScalaEMFactory, ScalaEntityManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RequestVarEM
  2. ScalaEMFactory
  3. ScalaEntityManager
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def closeEM(em: EntityManager): Unit

    Attributes
    protected[jpa]
    Definition Classes
    ScalaEMFactory
  2. abstract def getUnitName: String

    Attributes
    protected
    Definition Classes
    ScalaEMFactory
  3. abstract def openEM(): EntityManager

    Attributes
    protected
    Definition Classes
    ScalaEMFactory

Concrete 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 clear(): Unit

    Definition Classes
    ScalaEntityManager
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def close(): Unit

    Definition Classes
    ScalaEntityManager
  10. def contains(entity: AnyRef): Boolean

    Definition Classes
    ScalaEntityManager
  11. def createNamedQuery[A](queryName: String): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  12. def createNamedQuery[A](queryName: String, params: (String, Any)*): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  13. def createNativeQuery[A](sqlString: String, resultSetMapping: String): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  14. def createNativeQuery[A](sqlString: String, clazz: Class[A]): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  15. def createNativeQuery[A](sqlString: String): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  16. def createQuery[A](queryString: String): ScalaQuery[A]

    Definition Classes
    ScalaEntityManager
  17. def em: EntityManager

    Attributes
    protected
    Definition Classes
    RequestVarEM → ScalaEntityManager
  18. object emVar extends TransientRequestVar[EntityManager]

    Provides the request var that holds the underlying EntityManager for each request.

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

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

    Definition Classes
    AnyRef → Any
  21. val factory: RequestVarEM

    Definition Classes
    RequestVarEM → ScalaEntityManager
  22. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def find[A](clazz: Class[A], id: Any): Option[A]

    Definition Classes
    ScalaEntityManager
  24. def findAll[A](queryName: String, params: (String, Any)*): JListWrapper[A]

    Definition Classes
    ScalaEntityManager
  25. def flush(): Unit

    Definition Classes
    ScalaEntityManager
  26. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  27. def getDelegate(): AnyRef

    Definition Classes
    ScalaEntityManager
  28. def getFlushMode(): FlushModeType

    Definition Classes
    ScalaEntityManager
  29. def getReference[A](clazz: Class[A], primaryKey: Any): A

    Definition Classes
    ScalaEntityManager
  30. def getTransaction(): EntityTransaction

    Definition Classes
    ScalaEntityManager
  31. def getUnderlying: EntityManager

    Returns the current underlying EntityManager.

    Returns the current underlying EntityManager. Generally you shouldn't need to do this unless you're using some very advanced or propietary functionality on the EM.

    returns

    The underlying EM

  32. def hashCode(): Int

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

    Definition Classes
    Any
  34. def isOpen(): Boolean

    Definition Classes
    ScalaEntityManager
  35. def joinTransaction(): Unit

    Definition Classes
    ScalaEntityManager
  36. def lock(entity: AnyRef, lockMode: LockModeType): Unit

    Definition Classes
    ScalaEntityManager
  37. def merge[T](entity: T): T

    Definition Classes
    ScalaEntityManager
  38. def mergeAndFlush[T](entity: T): T

    Definition Classes
    ScalaEntityManager
  39. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. def newEM: ScalaEntityManager

    Definition Classes
    ScalaEMFactory
  41. final def notify(): Unit

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

    Definition Classes
    AnyRef
  43. def persist(entity: AnyRef): Unit

    Definition Classes
    ScalaEntityManager
  44. def persistAndFlush(entity: AnyRef): Unit

    Definition Classes
    ScalaEntityManager
  45. def refresh(entity: AnyRef): Unit

    Definition Classes
    ScalaEntityManager
  46. def remove(entity: AnyRef): Unit

    Definition Classes
    ScalaEntityManager
  47. def removeAndFlush(entity: AnyRef): Unit

    Definition Classes
    ScalaEntityManager
  48. def setFlushMode(flushModeType: FlushModeType): Unit

    Definition Classes
    ScalaEntityManager
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ScalaEMFactory

Inherited from ScalaEntityManager

Inherited from AnyRef

Inherited from Any