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. RequestVarEM
  2. ScalaEMFactory
  3. ScalaEntityManager
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Attributes
    protected[org.scala_libs.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: 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 clear(): Unit

    Definition Classes
    ScalaEntityManager
  6. def clone(): AnyRef

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

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

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

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

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

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

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

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

    Definition Classes
    ScalaEntityManager
  15. def em: EntityManager

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  19. val factory: RequestVarEM

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

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

    Definition Classes
    ScalaEntityManager
  22. def findAll[A](queryName: String, params: Pair[String, Any]*): Buffer[A]

    Definition Classes
    ScalaEntityManager
  23. def flush(): Unit

    Definition Classes
    ScalaEntityManager
  24. final def getClass(): Class[_]

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

    Definition Classes
    ScalaEntityManager
  26. def getFlushMode(): FlushModeType

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

    Definition Classes
    ScalaEntityManager
  28. def getTransaction(): EntityTransaction

    Definition Classes
    ScalaEntityManager
  29. 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

  30. def hashCode(): Int

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

    Definition Classes
    Any
  32. def isOpen(): Boolean

    Definition Classes
    ScalaEntityManager
  33. def joinTransaction(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  38. def newEM: ScalaEntityManager

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  48. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScalaEMFactory

Inherited from ScalaEntityManager

Inherited from AnyRef

Inherited from Any

Ungrouped