public class EntityManagerFactoryImpl extends Object implements HibernateEntityManagerFactory
EntityManagerFactory
.Constructor and Description |
---|
EntityManagerFactoryImpl(PersistenceUnitTransactionType transactionType,
boolean discardOnClose,
Class sessionInterceptorClass,
Configuration cfg,
ServiceRegistry serviceRegistry,
String persistenceUnitName) |
EntityManagerFactoryImpl(String persistenceUnitName,
SessionFactoryImplementor sessionFactory,
SettingsImpl settings,
Map<?,?> configurationValues,
Configuration cfg) |
public EntityManagerFactoryImpl(PersistenceUnitTransactionType transactionType, boolean discardOnClose, Class sessionInterceptorClass, Configuration cfg, ServiceRegistry serviceRegistry, String persistenceUnitName)
public EntityManagerFactoryImpl(String persistenceUnitName, SessionFactoryImplementor sessionFactory, SettingsImpl settings, Map<?,?> configurationValues, Configuration cfg)
protected org.hibernate.jpa.internal.EntityManagerFactoryImpl.JpaMetaModelPopulationSetting determineJpaMetaModelPopulationSetting(Configuration cfg)
public EntityManager createEntityManager()
createEntityManager
in interface EntityManagerFactory
public EntityManager createEntityManager(SynchronizationType synchronizationType)
createEntityManager
in interface EntityManagerFactory
public EntityManager createEntityManager(Map map)
createEntityManager
in interface EntityManagerFactory
public EntityManager createEntityManager(SynchronizationType synchronizationType, Map map)
createEntityManager
in interface EntityManagerFactory
public CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface EntityManagerFactory
public Metamodel getMetamodel()
getMetamodel
in interface EntityManagerFactory
public void close()
close
in interface EntityManagerFactory
public Map<String,Object> getProperties()
getProperties
in interface EntityManagerFactory
public Cache getCache()
getCache
in interface EntityManagerFactory
protected void validateNotClosed()
public PersistenceUnitUtil getPersistenceUnitUtil()
getPersistenceUnitUtil
in interface EntityManagerFactory
public void addNamedQuery(String name, Query query)
addNamedQuery
in interface EntityManagerFactory
public <T> T unwrap(Class<T> cls)
unwrap
in interface EntityManagerFactory
public <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
addNamedEntityGraph
in interface EntityManagerFactory
public EntityGraphImpl findEntityGraphByName(String name)
public <T> List<EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
public boolean isOpen()
isOpen
in interface EntityManagerFactory
public SessionFactoryImpl getSessionFactory()
HibernateEntityManagerFactory
getSessionFactory
in interface HibernateEntityManagerFactory
public EntityTypeImpl getEntityTypeByName(String entityName)
HibernateEntityManagerFactory
getEntityTypeByName
in interface HibernateEntityManagerFactory
entityName
- The entity namepublic String getEntityManagerFactoryName()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.