com.liferay.portal.dao.orm.hibernate
Class SessionFactoryImpl

java.lang.Object
  extended by com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory
Direct Known Subclasses:
PortletSessionFactoryImpl

public class SessionFactoryImpl
extends java.lang.Object
implements com.liferay.portal.kernel.dao.orm.SessionFactory

Author:
Brian Wing Shun Chan, Shuyang Zhou

Field Summary
protected static java.util.List<PortletSessionFactoryImpl> portletSessionFactories
           
 
Constructor Summary
SessionFactoryImpl()
           
 
Method Summary
 void closeSession(com.liferay.portal.kernel.dao.orm.Session session)
           
 void destroy()
           
 com.liferay.portal.kernel.dao.orm.Dialect getDialect()
           
static java.util.List<PortletSessionFactoryImpl> getPortletSessionFactories()
           
 java.lang.ClassLoader getSessionFactoryClassLoader()
           
 org.hibernate.engine.SessionFactoryImplementor getSessionFactoryImplementor()
           
 com.liferay.portal.kernel.dao.orm.Session openNewSession(java.sql.Connection connection)
           
 com.liferay.portal.kernel.dao.orm.Session openSession()
           
 void setSessionFactoryClassLoader(java.lang.ClassLoader sessionFactoryClassLoader)
           
 void setSessionFactoryImplementor(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
           
protected  com.liferay.portal.kernel.dao.orm.Session wrapSession(org.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletSessionFactories

protected static final java.util.List<PortletSessionFactoryImpl> portletSessionFactories
Constructor Detail

SessionFactoryImpl

public SessionFactoryImpl()
Method Detail

getPortletSessionFactories

public static java.util.List<PortletSessionFactoryImpl> getPortletSessionFactories()

closeSession

public void closeSession(com.liferay.portal.kernel.dao.orm.Session session)
                  throws com.liferay.portal.kernel.dao.orm.ORMException
Specified by:
closeSession in interface com.liferay.portal.kernel.dao.orm.SessionFactory
Throws:
com.liferay.portal.kernel.dao.orm.ORMException

destroy

public void destroy()

getDialect

public com.liferay.portal.kernel.dao.orm.Dialect getDialect()
                                                     throws com.liferay.portal.kernel.dao.orm.ORMException
Specified by:
getDialect in interface com.liferay.portal.kernel.dao.orm.SessionFactory
Throws:
com.liferay.portal.kernel.dao.orm.ORMException

getSessionFactoryClassLoader

public java.lang.ClassLoader getSessionFactoryClassLoader()

getSessionFactoryImplementor

public org.hibernate.engine.SessionFactoryImplementor getSessionFactoryImplementor()

openNewSession

public com.liferay.portal.kernel.dao.orm.Session openNewSession(java.sql.Connection connection)
                                                         throws com.liferay.portal.kernel.dao.orm.ORMException
Specified by:
openNewSession in interface com.liferay.portal.kernel.dao.orm.SessionFactory
Throws:
com.liferay.portal.kernel.dao.orm.ORMException

openSession

public com.liferay.portal.kernel.dao.orm.Session openSession()
                                                      throws com.liferay.portal.kernel.dao.orm.ORMException
Specified by:
openSession in interface com.liferay.portal.kernel.dao.orm.SessionFactory
Throws:
com.liferay.portal.kernel.dao.orm.ORMException

setSessionFactoryClassLoader

public void setSessionFactoryClassLoader(java.lang.ClassLoader sessionFactoryClassLoader)

setSessionFactoryImplementor

public void setSessionFactoryImplementor(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)

wrapSession

protected com.liferay.portal.kernel.dao.orm.Session wrapSession(org.hibernate.Session session)