org.nanocontainer.persistence.hibernate
Class SessionFactoryDelegator
java.lang.Object
org.nanocontainer.persistence.hibernate.SessionFactoryDelegator
- All Implemented Interfaces:
- Serializable, Referenceable, org.hibernate.SessionFactory
public class SessionFactoryDelegator
- extends Object
- implements org.hibernate.SessionFactory
Delegates everything to session factory obtained from confiuration. this class is necessary
because component adapters are really ugly when it comes to scripting.
- Version:
- $Id: SessionFactoryDelegator.java 2158 2005-07-08 02:13:36Z juze $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactoryDelegator
public SessionFactoryDelegator(org.hibernate.cfg.Configuration configuration)
getDelegatedSessionFactory
public org.hibernate.SessionFactory getDelegatedSessionFactory()
close
public void close()
throws org.hibernate.HibernateException
- Specified by:
close in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evict
public void evict(Class persistentClass)
throws org.hibernate.HibernateException
- Specified by:
evict in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evict
public void evict(Class persistentClass,
Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evict in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictCollection
public void evictCollection(String roleName)
throws org.hibernate.HibernateException
- Specified by:
evictCollection in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictCollection
public void evictCollection(String roleName,
Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evictCollection in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictEntity
public void evictEntity(String entityName)
throws org.hibernate.HibernateException
- Specified by:
evictEntity in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictEntity
public void evictEntity(String entityName,
Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evictEntity in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictQueries
public void evictQueries()
throws org.hibernate.HibernateException
- Specified by:
evictQueries in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictQueries
public void evictQueries(String cacheRegion)
throws org.hibernate.HibernateException
- Specified by:
evictQueries in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getAllClassMetadata
public Map getAllClassMetadata()
throws org.hibernate.HibernateException
- Specified by:
getAllClassMetadata in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getAllCollectionMetadata
public Map getAllCollectionMetadata()
throws org.hibernate.HibernateException
- Specified by:
getAllCollectionMetadata in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(Class persistentClass)
throws org.hibernate.HibernateException
- Specified by:
getClassMetadata in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(String entityName)
throws org.hibernate.HibernateException
- Specified by:
getClassMetadata in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getCollectionMetadata
public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(String roleName)
throws org.hibernate.HibernateException
- Specified by:
getCollectionMetadata in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getCurrentSession
public org.hibernate.classic.Session getCurrentSession()
throws org.hibernate.HibernateException
- Specified by:
getCurrentSession in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getReference
public Reference getReference()
throws NamingException
- Specified by:
getReference in interface Referenceable
- Throws:
NamingException
getStatistics
public org.hibernate.stat.Statistics getStatistics()
- Specified by:
getStatistics in interface org.hibernate.SessionFactory
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface org.hibernate.SessionFactory
openSession
public org.hibernate.classic.Session openSession()
throws org.hibernate.HibernateException
- Specified by:
openSession in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
openSession
public org.hibernate.classic.Session openSession(Connection connection)
- Specified by:
openSession in interface org.hibernate.SessionFactory
openSession
public org.hibernate.classic.Session openSession(Connection connection,
org.hibernate.Interceptor interceptor)
- Specified by:
openSession in interface org.hibernate.SessionFactory
openSession
public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor)
throws org.hibernate.HibernateException
- Specified by:
openSession in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
Copyright 2003-2003-2006 Codehaus. All Rights Reserved.