play.db.jpa
Class JPA
java.lang.Object
play.db.jpa.JPA
public class JPA
- extends java.lang.Object
JPA Support
Constructor Summary |
JPA()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManagerFactory
public static javax.persistence.EntityManagerFactory entityManagerFactory
local
public static java.lang.ThreadLocal<JPA> local
entityManager
public javax.persistence.EntityManager entityManager
JPA
public JPA()
getEntityManager
@Deprecated
public static javax.persistence.EntityManager getEntityManager()
- Deprecated.
em
public static javax.persistence.EntityManager em()
abort
@Deprecated
public static void abort()
- Deprecated.
setRollbackOnly
public static void setRollbackOnly()
isEnabled
public static boolean isEnabled()
- Returns:
- true if an entityManagerFactory has started
execute
public static int execute(java.lang.String query)
- Execute a JPQL query
newEntityManager
public static javax.persistence.EntityManager newEntityManager()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly