public class SessionFactoryDecorator extends Object implements org.hibernate.SessionFactory
Constructor and Description |
---|
SessionFactoryDecorator(org.hibernate.SessionFactory delegate) |
Modifier and Type | Method and Description |
---|---|
<T> void |
addNamedEntityGraph(String graphName,
javax.persistence.EntityGraph<T> entityGraph) |
void |
addNamedQuery(String name,
javax.persistence.Query query) |
void |
close() |
boolean |
containsFetchProfileDefinition(String name) |
javax.persistence.EntityManager |
createEntityManager() |
javax.persistence.EntityManager |
createEntityManager(Map map) |
javax.persistence.EntityManager |
createEntityManager(javax.persistence.SynchronizationType synchronizationType) |
javax.persistence.EntityManager |
createEntityManager(javax.persistence.SynchronizationType synchronizationType,
Map map) |
<T> List<javax.persistence.EntityGraph<? super T>> |
findEntityGraphsByType(Class<T> entityClass) |
Map<String,org.hibernate.metadata.ClassMetadata> |
getAllClassMetadata()
Deprecated.
|
Map |
getAllCollectionMetadata()
Deprecated.
|
org.hibernate.Cache |
getCache() |
org.hibernate.metadata.ClassMetadata |
getClassMetadata(Class entityClass)
Deprecated.
|
org.hibernate.metadata.ClassMetadata |
getClassMetadata(String entityName)
Deprecated.
|
org.hibernate.metadata.CollectionMetadata |
getCollectionMetadata(String roleName)
Deprecated.
|
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder() |
org.hibernate.Session |
getCurrentSession() |
Set |
getDefinedFilterNames() |
protected org.hibernate.SessionFactory |
getDelegate() |
org.hibernate.engine.spi.FilterDefinition |
getFilterDefinition(String filterName) |
org.hibernate.Metamodel |
getMetamodel() |
javax.persistence.PersistenceUnitUtil |
getPersistenceUnitUtil() |
Map<String,Object> |
getProperties() |
Reference |
getReference() |
org.hibernate.boot.spi.SessionFactoryOptions |
getSessionFactoryOptions() |
org.hibernate.stat.Statistics |
getStatistics() |
org.hibernate.TypeHelper |
getTypeHelper() |
boolean |
isClosed() |
boolean |
isOpen() |
org.hibernate.Session |
openSession() |
org.hibernate.StatelessSession |
openStatelessSession() |
org.hibernate.StatelessSession |
openStatelessSession(Connection connection) |
<T> T |
unwrap(Class<T> cls) |
org.hibernate.SessionBuilder |
withOptions() |
org.hibernate.StatelessSessionBuilder |
withStatelessOptions() |
public SessionFactoryDecorator(@Nonnull org.hibernate.SessionFactory delegate)
@Nonnull protected org.hibernate.SessionFactory getDelegate()
public org.hibernate.boot.spi.SessionFactoryOptions getSessionFactoryOptions()
getSessionFactoryOptions
in interface org.hibernate.SessionFactory
public org.hibernate.SessionBuilder withOptions()
withOptions
in interface org.hibernate.SessionFactory
public org.hibernate.Session openSession() throws org.hibernate.HibernateException
openSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.Session getCurrentSession() throws org.hibernate.HibernateException
getCurrentSession
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public org.hibernate.StatelessSessionBuilder withStatelessOptions()
withStatelessOptions
in interface org.hibernate.SessionFactory
public org.hibernate.StatelessSession openStatelessSession()
openStatelessSession
in interface org.hibernate.SessionFactory
public org.hibernate.StatelessSession openStatelessSession(Connection connection)
openStatelessSession
in interface org.hibernate.SessionFactory
@Deprecated public org.hibernate.metadata.ClassMetadata getClassMetadata(Class entityClass)
getClassMetadata
in interface org.hibernate.SessionFactory
@Deprecated public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
getClassMetadata
in interface org.hibernate.SessionFactory
@Deprecated public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
getCollectionMetadata
in interface org.hibernate.SessionFactory
@Deprecated public Map<String,org.hibernate.metadata.ClassMetadata> getAllClassMetadata()
getAllClassMetadata
in interface org.hibernate.SessionFactory
@Deprecated public Map getAllCollectionMetadata()
getAllCollectionMetadata
in interface org.hibernate.SessionFactory
public org.hibernate.stat.Statistics getStatistics()
getStatistics
in interface org.hibernate.SessionFactory
public void close() throws org.hibernate.HibernateException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface javax.persistence.EntityManagerFactory
close
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public Map<String,Object> getProperties()
getProperties
in interface javax.persistence.EntityManagerFactory
public boolean isClosed()
isClosed
in interface org.hibernate.SessionFactory
public org.hibernate.Cache getCache()
getCache
in interface javax.persistence.EntityManagerFactory
getCache
in interface org.hibernate.SessionFactory
public javax.persistence.PersistenceUnitUtil getPersistenceUnitUtil()
getPersistenceUnitUtil
in interface javax.persistence.EntityManagerFactory
public void addNamedQuery(String name, javax.persistence.Query query)
addNamedQuery
in interface javax.persistence.EntityManagerFactory
public <T> T unwrap(Class<T> cls)
unwrap
in interface javax.persistence.EntityManagerFactory
public <T> void addNamedEntityGraph(String graphName, javax.persistence.EntityGraph<T> entityGraph)
addNamedEntityGraph
in interface javax.persistence.EntityManagerFactory
public Set getDefinedFilterNames()
getDefinedFilterNames
in interface org.hibernate.SessionFactory
public org.hibernate.engine.spi.FilterDefinition getFilterDefinition(String filterName) throws org.hibernate.HibernateException
getFilterDefinition
in interface org.hibernate.SessionFactory
org.hibernate.HibernateException
public boolean containsFetchProfileDefinition(String name)
containsFetchProfileDefinition
in interface org.hibernate.SessionFactory
public org.hibernate.TypeHelper getTypeHelper()
getTypeHelper
in interface org.hibernate.SessionFactory
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public <T> List<javax.persistence.EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
findEntityGraphsByType
in interface org.hibernate.jpa.HibernateEntityManagerFactory
public javax.persistence.EntityManager createEntityManager()
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(Map map)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(javax.persistence.SynchronizationType synchronizationType)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.EntityManager createEntityManager(javax.persistence.SynchronizationType synchronizationType, Map map)
createEntityManager
in interface javax.persistence.EntityManagerFactory
public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface javax.persistence.EntityManagerFactory
public org.hibernate.Metamodel getMetamodel()
getMetamodel
in interface javax.persistence.EntityManagerFactory
getMetamodel
in interface org.hibernate.jpa.HibernateEntityManagerFactory
public boolean isOpen()
isOpen
in interface javax.persistence.EntityManagerFactory