net.commerce.zocalo.hibernate
Class NoDBSessionFactory
java.lang.Object
net.commerce.zocalo.hibernate.NoDBSessionFactory
- All Implemented Interfaces:
- java.io.Serializable, javax.naming.Referenceable, org.hibernate.SessionFactory
public class NoDBSessionFactory
- extends java.lang.Object
- implements org.hibernate.SessionFactory
a do-nothing implementation of Hibernate's SessionFactory that can be used when
hibernate is disabled.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoDBSessionFactory
public NoDBSessionFactory()
make
public static org.hibernate.SessionFactory make()
openSession
public org.hibernate.classic.Session openSession(java.sql.Connection connection)
- Specified by:
openSession
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(org.hibernate.Interceptor interceptor)
throws org.hibernate.HibernateException
- Specified by:
openSession
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
openSession
public org.hibernate.classic.Session openSession(java.sql.Connection connection,
org.hibernate.Interceptor interceptor)
- Specified by:
openSession
in interface org.hibernate.SessionFactory
getCurrentSession
public org.hibernate.classic.Session getCurrentSession()
throws org.hibernate.HibernateException
- Specified by:
getCurrentSession
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getClassMetadata
public org.hibernate.metadata.ClassMetadata getClassMetadata(java.lang.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(java.lang.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(java.lang.String roleName)
throws org.hibernate.HibernateException
- Specified by:
getCollectionMetadata
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getAllClassMetadata
public java.util.Map getAllClassMetadata()
throws org.hibernate.HibernateException
- Specified by:
getAllClassMetadata
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getAllCollectionMetadata
public java.util.Map getAllCollectionMetadata()
throws org.hibernate.HibernateException
- Specified by:
getAllCollectionMetadata
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getStatistics
public org.hibernate.stat.Statistics getStatistics()
- Specified by:
getStatistics
in interface org.hibernate.SessionFactory
close
public void close()
throws org.hibernate.HibernateException
- Specified by:
close
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface org.hibernate.SessionFactory
evict
public void evict(java.lang.Class persistentClass)
throws org.hibernate.HibernateException
- Specified by:
evict
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evict
public void evict(java.lang.Class persistentClass,
java.io.Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evict
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictEntity
public void evictEntity(java.lang.String entityName)
throws org.hibernate.HibernateException
- Specified by:
evictEntity
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictEntity
public void evictEntity(java.lang.String entityName,
java.io.Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evictEntity
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictCollection
public void evictCollection(java.lang.String roleName)
throws org.hibernate.HibernateException
- Specified by:
evictCollection
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
evictCollection
public void evictCollection(java.lang.String roleName,
java.io.Serializable id)
throws org.hibernate.HibernateException
- Specified by:
evictCollection
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(java.lang.String cacheRegion)
throws org.hibernate.HibernateException
- Specified by:
evictQueries
in interface org.hibernate.SessionFactory
- Throws:
org.hibernate.HibernateException
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Specified by:
getReference
in interface javax.naming.Referenceable
- Throws:
javax.naming.NamingException