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 voidclose()voidevict(Class persistentClass)voidevict(Class persistentClass, Serializable id)voidevictCollection(String roleName)voidevictCollection(String roleName, Serializable id)voidevictEntity(String entityName)voidevictEntity(String entityName, Serializable id)voidevictQueries()voidevictQueries(String cacheRegion)MapgetAllClassMetadata()MapgetAllCollectionMetadata()org.hibernate.metadata.ClassMetadatagetClassMetadata(Class persistentClass)org.hibernate.metadata.ClassMetadatagetClassMetadata(String entityName)org.hibernate.metadata.CollectionMetadatagetCollectionMetadata(String roleName)org.hibernate.classic.SessiongetCurrentSession()SetgetDefinedFilterNames()org.hibernate.engine.FilterDefinitiongetFilterDefinition(String filterName)ReferencegetReference()org.hibernate.stat.StatisticsgetStatistics()booleanisClosed()org.hibernate.classic.SessionopenSession()org.hibernate.classic.SessionopenSession(Connection connection)org.hibernate.classic.SessionopenSession(Connection connection, org.hibernate.Interceptor interceptor)org.hibernate.classic.SessionopenSession(org.hibernate.Interceptor interceptor)org.hibernate.StatelessSessionopenStatelessSession()org.hibernate.StatelessSessionopenStatelessSession(Connection connection)
-
-
-
Method Detail
-
getReference
public Reference getReference() throws NamingException
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
openSession
public org.hibernate.classic.Session openSession(Connection connection)
- Specified by:
openSessionin interfaceorg.hibernate.SessionFactory
-
openSession
public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor) throws org.hibernate.HibernateException- Specified by:
openSessionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
openSession
public org.hibernate.classic.Session openSession(Connection connection, org.hibernate.Interceptor interceptor)
- Specified by:
openSessionin interfaceorg.hibernate.SessionFactory
-
openSession
public org.hibernate.classic.Session openSession() throws org.hibernate.HibernateException- Specified by:
openSessionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getCurrentSession
public org.hibernate.classic.Session getCurrentSession() throws org.hibernate.HibernateException- Specified by:
getCurrentSessionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass) throws org.hibernate.HibernateException
- Specified by:
getClassMetadatain interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName) throws org.hibernate.HibernateException
- Specified by:
getClassMetadatain interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getCollectionMetadata
public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName) throws org.hibernate.HibernateException
- Specified by:
getCollectionMetadatain interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getAllClassMetadata
public Map getAllClassMetadata() throws org.hibernate.HibernateException
- Specified by:
getAllClassMetadatain interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getAllCollectionMetadata
public Map getAllCollectionMetadata() throws org.hibernate.HibernateException
- Specified by:
getAllCollectionMetadatain interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
getStatistics
public org.hibernate.stat.Statistics getStatistics()
- Specified by:
getStatisticsin interfaceorg.hibernate.SessionFactory
-
close
public void close() throws org.hibernate.HibernateException- Specified by:
closein interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceorg.hibernate.SessionFactory
-
evict
public void evict(Class persistentClass) throws org.hibernate.HibernateException
- Specified by:
evictin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evict
public void evict(Class persistentClass, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evictin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictEntity
public void evictEntity(String entityName) throws org.hibernate.HibernateException
- Specified by:
evictEntityin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictEntity
public void evictEntity(String entityName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evictEntityin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictCollection
public void evictCollection(String roleName) throws org.hibernate.HibernateException
- Specified by:
evictCollectionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictCollection
public void evictCollection(String roleName, Serializable id) throws org.hibernate.HibernateException
- Specified by:
evictCollectionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictQueries
public void evictQueries() throws org.hibernate.HibernateException- Specified by:
evictQueriesin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
evictQueries
public void evictQueries(String cacheRegion) throws org.hibernate.HibernateException
- Specified by:
evictQueriesin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
openStatelessSession
public org.hibernate.StatelessSession openStatelessSession()
- Specified by:
openStatelessSessionin interfaceorg.hibernate.SessionFactory
-
openStatelessSession
public org.hibernate.StatelessSession openStatelessSession(Connection connection)
- Specified by:
openStatelessSessionin interfaceorg.hibernate.SessionFactory
-
getDefinedFilterNames
public Set getDefinedFilterNames()
- Specified by:
getDefinedFilterNamesin interfaceorg.hibernate.SessionFactory
-
getFilterDefinition
public org.hibernate.engine.FilterDefinition getFilterDefinition(String filterName) throws org.hibernate.HibernateException
- Specified by:
getFilterDefinitionin interfaceorg.hibernate.SessionFactory- Throws:
org.hibernate.HibernateException
-
-