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

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

public class PortletSessionFactoryImpl
extends SessionFactoryImpl

Author:
Shuyang Zhou, Alexander Chow

Field Summary
 
Fields inherited from class com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl
portletSessionFactories
 
Constructor Summary
PortletSessionFactoryImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 javax.sql.DataSource getDataSource()
           
protected  org.hibernate.SessionFactory getSessionFactory()
           
 com.liferay.portal.kernel.dao.orm.Session openSession()
           
 void setDataSource(javax.sql.DataSource dataSource)
           
 
Methods inherited from class com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl
closeSession, getDialect, getPortletSessionFactories, getSessionFactoryClassLoader, getSessionFactoryImplementor, openNewSession, setSessionFactoryClassLoader, setSessionFactoryImplementor, wrapSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletSessionFactoryImpl

public PortletSessionFactoryImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()
Overrides:
destroy in class SessionFactoryImpl

getDataSource

public javax.sql.DataSource getDataSource()

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
Overrides:
openSession in class SessionFactoryImpl
Throws:
com.liferay.portal.kernel.dao.orm.ORMException

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)

getSessionFactory

protected org.hibernate.SessionFactory getSessionFactory()