@Deprecated
public class JPAEntityManagerContext
extends java.lang.ThreadLocal<java.util.Deque<javax.persistence.EntityManager>>
Please see Using play.db.jpa.JPAApi for more details.
Constructor and Description |
---|
JPAEntityManagerContext()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManager |
em()
Deprecated.
Get the default EntityManager for this thread.
|
java.util.Deque<javax.persistence.EntityManager> |
emStack(boolean threadLocalFallback)
Deprecated.
Get the EntityManager stack.
|
java.util.Deque<javax.persistence.EntityManager> |
initialValue()
Deprecated.
|
void |
pop(boolean threadLocalFallback)
Deprecated.
|
void |
push(javax.persistence.EntityManager em,
boolean threadLocalFallback)
Deprecated.
|
public java.util.Deque<javax.persistence.EntityManager> initialValue()
initialValue
in class java.lang.ThreadLocal<java.util.Deque<javax.persistence.EntityManager>>
public javax.persistence.EntityManager em()
java.lang.RuntimeException
- if no EntityManager is bound to the current Http.Context or the
current Thread.public java.util.Deque<javax.persistence.EntityManager> emStack(boolean threadLocalFallback)
threadLocalFallback
- if true, fall back to a ThreadLocal queue of entity managers if no
HTTP.Context object is found.public void push(javax.persistence.EntityManager em, boolean threadLocalFallback)
public void pop(boolean threadLocalFallback)