hu.elte.tribus.sf
Class HibernateSessionFactory

java.lang.Object
  extended by hu.elte.tribus.sf.HibernateSessionFactory

Deprecated. it was very nice but it is gone an we are not missing it at all :)))

public class HibernateSessionFactory
extends java.lang.Object

Configures and provides access to Hibernate sessions, tied to the current thread of execution. Follows the Thread Local Session pattern, see http://hibernate.org/42.html .


Method Summary
static void closeSession()
          Deprecated. Close the single hibernate session instance.
static org.hibernate.cfg.Configuration getConfiguration()
          Deprecated. return hibernate configuration
static org.hibernate.Session getSession()
          Deprecated. Returns the ThreadLocal Session instance.
static org.hibernate.SessionFactory getSessionFactory()
          Deprecated. return session factory
static void rebuildSessionFactory()
          Deprecated. Rebuild hibernate session factory
static void setConfigFile(java.lang.String configFile)
          Deprecated. return session factory session factory will be rebuilded in the next call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSession

public static org.hibernate.Session getSession()
                                        throws org.hibernate.HibernateException
Deprecated. 
Returns the ThreadLocal Session instance. Lazy initialize the SessionFactory if needed.

Returns:
Session
Throws:
org.hibernate.HibernateException

rebuildSessionFactory

public static void rebuildSessionFactory()
Deprecated. 
Rebuild hibernate session factory


closeSession

public static void closeSession()
                         throws org.hibernate.HibernateException
Deprecated. 
Close the single hibernate session instance.

Throws:
org.hibernate.HibernateException

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()
Deprecated. 
return session factory


setConfigFile

public static void setConfigFile(java.lang.String configFile)
Deprecated. 
return session factory session factory will be rebuilded in the next call


getConfiguration

public static org.hibernate.cfg.Configuration getConfiguration()
Deprecated. 
return hibernate configuration



Copyright © 2006-2007. All Rights Reserved.