public class EntityManagerSessionFactory extends Object implements SessionFactory
Modifier and Type | Field and Description |
---|---|
protected boolean |
closeEntityManager |
protected javax.persistence.EntityManagerFactory |
entityManagerFactory |
protected boolean |
handleTransactions |
Constructor and Description |
---|
EntityManagerSessionFactory(Object entityManagerFactory,
boolean handleTransactions,
boolean closeEntityManager) |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
Class<?> |
getSessionType() |
Session |
openSession() |
protected javax.persistence.EntityManagerFactory entityManagerFactory
protected boolean handleTransactions
protected boolean closeEntityManager
public EntityManagerSessionFactory(Object entityManagerFactory, boolean handleTransactions, boolean closeEntityManager)
public Class<?> getSessionType()
getSessionType
in interface SessionFactory
public Session openSession()
openSession
in interface SessionFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
Copyright © 2015. All rights reserved.