Package com.soffid.iam.spring
Class CustomSessionFactory
- java.lang.Object
-
- com.soffid.iam.spring.CustomSessionFactory
-
- All Implemented Interfaces:
Serializable
,Referenceable
,org.hibernate.SessionFactory
public class CustomSessionFactory extends Object implements org.hibernate.SessionFactory
- Author:
- bubu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomSessionFactory(org.hibernate.SessionFactory proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
evict(Class persistentClass)
void
evict(Class persistentClass, Serializable id)
void
evictCollection(String roleName)
void
evictCollection(String roleName, Serializable id)
void
evictEntity(String entityName)
void
evictEntity(String entityName, Serializable id)
void
evictQueries()
void
evictQueries(String cacheRegion)
Map
getAllClassMetadata()
Map
getAllCollectionMetadata()
org.hibernate.metadata.ClassMetadata
getClassMetadata(Class persistentClass)
org.hibernate.metadata.ClassMetadata
getClassMetadata(String entityName)
org.hibernate.metadata.CollectionMetadata
getCollectionMetadata(String roleName)
org.hibernate.classic.Session
getCurrentSession()
Set
getDefinedFilterNames()
org.hibernate.engine.FilterDefinition
getFilterDefinition(String filterName)
Reference
getReference()
org.hibernate.stat.Statistics
getStatistics()
boolean
isClosed()
org.hibernate.classic.Session
openSession()
org.hibernate.classic.Session
openSession(Connection connection)
org.hibernate.classic.Session
openSession(Connection connection, org.hibernate.Interceptor interceptor)
org.hibernate.classic.Session
openSession(org.hibernate.Interceptor interceptor)
org.hibernate.StatelessSession
openStatelessSession()
org.hibernate.StatelessSession
openStatelessSession(Connection connection)
-
-
-
Method Detail
-
getReference
public Reference getReference() throws NamingException
- Specified by:
getReference
in interfaceReferenceable
- Throws:
NamingException
-
openSession
public org.hibernate.classic.Session openSession(Connection connection)
- Specified by:
openSession
in interfaceorg.hibernate.SessionFactory
-
openSession
public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor) throws org.hibernate.HibernateException
- Specified by:
openSession
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
openSession
public org.hibernate.classic.Session openSession(Connection connection, org.hibernate.Interceptor interceptor)
- Specified by:
openSession
in interfaceorg.hibernate.SessionFactory
-
openSession
public org.hibernate.classic.Session openSession() throws org.hibernate.HibernateException
- Specified by:
openSession
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getCurrentSession
public org.hibernate.classic.Session getCurrentSession() throws org.hibernate.HibernateException
- Specified by:
getCurrentSession
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass) throws org.hibernate.HibernateException
- Specified by:
getClassMetadata
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName) throws org.hibernate.HibernateException
- Specified by:
getClassMetadata
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getCollectionMetadata
public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName) throws org.hibernate.HibernateException
- Specified by:
getCollectionMetadata
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getAllClassMetadata
public Map getAllClassMetadata() throws org.hibernate.HibernateException
- Specified by:
getAllClassMetadata
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getAllCollectionMetadata
public Map getAllCollectionMetadata() throws org.hibernate.HibernateException
- Specified by:
getAllCollectionMetadata
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
getStatistics
public org.hibernate.stat.Statistics getStatistics()
- Specified by:
getStatistics
in interfaceorg.hibernate.SessionFactory
-
close
public void close() throws org.hibernate.HibernateException
- Specified by:
close
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceorg.hibernate.SessionFactory
-
evict
public void evict(Class persistentClass) throws org.hibernate.HibernateException
- Specified by:
evict
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evict
public void evict(Class persistentClass, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evict
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictEntity
public void evictEntity(String entityName) throws org.hibernate.HibernateException
- Specified by:
evictEntity
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictEntity
public void evictEntity(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evictEntity
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictCollection
public void evictCollection(String roleName) throws org.hibernate.HibernateException
- Specified by:
evictCollection
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictCollection
public void evictCollection(String roleName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evictCollection
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictQueries
public void evictQueries() throws org.hibernate.HibernateException
- Specified by:
evictQueries
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
evictQueries
public void evictQueries(String cacheRegion) throws org.hibernate.HibernateException
- Specified by:
evictQueries
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
openStatelessSession
public org.hibernate.StatelessSession openStatelessSession()
- Specified by:
openStatelessSession
in interfaceorg.hibernate.SessionFactory
-
openStatelessSession
public org.hibernate.StatelessSession openStatelessSession(Connection connection)
- Specified by:
openStatelessSession
in interfaceorg.hibernate.SessionFactory
-
getDefinedFilterNames
public Set getDefinedFilterNames()
- Specified by:
getDefinedFilterNames
in interfaceorg.hibernate.SessionFactory
-
getFilterDefinition
public org.hibernate.engine.FilterDefinition getFilterDefinition(String filterName) throws org.hibernate.HibernateException
- Specified by:
getFilterDefinition
in interfaceorg.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
-
-