public static EntityManager getEntityManager(String puName)(Code)
Create the EntityManager for the specified persistence unit name. *Notice:If
the EntityManagerFactory with specified presistence unit is not created
before, a new one will be created.
Parameters: puName - -Persistence unit name EntityManager
getEntityManagerFactory
public static EntityManagerFactory getEntityManagerFactory()(Code)
Create or return the EntityManager by peference in zk.xml
public static EntityManagerFactory getEntityManagerFactory(String puName)(Code)
Create or return the EntityManagerFactory for the specified persistence
unit name. *Notice:If the EntityManagerFactory with specified
presistence unit is not created before, a new one will be created.
Parameters: puName - -Persistence unit name EntityManagerFactory
getEntityManagerFactory
public static EntityManagerFactory getEntityManagerFactory(String puName, Map priority)(Code)
Create the EntityManagerFactory for the specified persistence unit and
defined priorities. *Notice: It always creates a new
EntityManagerFactory.
Parameters: puName - -Persistence unit name Parameters: priority - -Defined priorities EntityManagerFactory
getEntiyManager
public static EntityManager getEntiyManager(String puName, Map priority)(Code)
Create the EntityManager for the specified persistence unit name and
defined priorities. *Notice: It always creates a new EntityManger
Parameters: puName - -Persistence unit name Parameters: priority - -Defined priorities EntityManager