net.liftweb.jpa.RequestVarEM

trait 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

author
- Derek Chen-Becker


Source: RequestVarEM.scala(41)

 Fields

em.. protected def em EntityManager
emVar.. object emVar
Provides the request var that holds the underlying EntityManager for each request


 extends TransientRequestVar[EntityManager]
factory.. val factory RequestVarEM
getUnderlying.. def getUnderlying
Returns the current underlying EntityManager [details]
Generally you shouldn't need to do this unless you're using some very advanced or propietary functionality on the EM.
return
- The underlying EM
EntityManager
newEM.. def newEM ScalaEntityManager ScalaEMFactory

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clear.. def clear Unit ScalaEntityManager
clone.. protected def clone Object AnyRef
close.. def close Unit ScalaEntityManager
closeEM.. protected[jpa] abstract def closeEM(arg0 : EntityManager) Unit ScalaEMFactory
contains.. def contains(arg0 : Object) Boolean ScalaEntityManager
createNamedQuery.. def createNamedQuery[A](arg0 : String, arg1 : (String, Any)*) ScalaQuery[A] ScalaEntityManager
createNamedQuery.. def createNamedQuery[A](arg0 : String) ScalaQuery[A] ScalaEntityManager
createNativeQuery.. def createNativeQuery[A](arg0 : String, arg1 : String) ScalaQuery[A] ScalaEntityManager
createNativeQuery.. def createNativeQuery[A](arg0 : String) ScalaQuery[A] ScalaEntityManager
createNativeQuery.. def createNativeQuery[A](arg0 : String, arg1 : Class[A]) ScalaQuery[A] ScalaEntityManager
createQuery.. def createQuery[A](arg0 : String) ScalaQuery[A] ScalaEntityManager
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
find.. def find[A](arg0 : Class[A], arg1 : Any) Option[A] ScalaEntityManager
findAll.. def findAll[A](arg0 : String, arg1 : (String, Any)*) BufferWrapper[A] ScalaEntityManager
flush.. def flush Unit ScalaEntityManager
getClass.. final def getClass Class[Any] AnyRef
getDelegate.. def getDelegate Object ScalaEntityManager
getFlushMode.. def getFlushMode FlushModeType ScalaEntityManager
getReference.. def getReference[A](arg0 : Class[A], arg1 : Any) A ScalaEntityManager
getTransaction.. def getTransaction EntityTransaction ScalaEntityManager
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
isOpen.. def isOpen Boolean ScalaEntityManager
joinTransaction.. def joinTransaction Unit ScalaEntityManager
lock.. def lock(arg0 : Object, arg1 : LockModeType) Unit ScalaEntityManager
merge.. def merge[T](arg0 : T) T ScalaEntityManager
mergeAndFlush.. def mergeAndFlush[T](arg0 : T) T ScalaEntityManager
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
openEM.. protected abstract def openEM EntityManager ScalaEMFactory
persist.. def persist(arg0 : Object) Unit ScalaEntityManager
persistAndFlush.. def persistAndFlush(arg0 : Object) Unit ScalaEntityManager
refresh.. def refresh(arg0 : Object) Unit ScalaEntityManager
remove.. def remove(arg0 : Object) Unit ScalaEntityManager
removeAndFlush.. def removeAndFlush(arg0 : Object) Unit ScalaEntityManager
setFlushMode.. def setFlushMode(arg0 : FlushModeType) Unit ScalaEntityManager
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.