Class SessionImpl

Object
com.liferay.portal.dao.orm.hibernate.SessionImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.Session

public class SessionImpl extends Object implements com.liferay.portal.kernel.dao.orm.Session
Author:
Brian Wing Shun Chan, Shuyang Zhou
  • Constructor Details

    • SessionImpl

      public SessionImpl(org.hibernate.Session session, ClassLoader sessionFactoryClassLoader)
  • Method Details

    • apply

      public void apply(com.liferay.petra.function.UnsafeConsumer<Connection,SQLException> unsafeConsumer) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      apply in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • clear

      public void clear() throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      clear in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • close

      public Connection close() throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      close in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • contains

      public boolean contains(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      contains in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createQuery

      public com.liferay.portal.kernel.dao.orm.Query createQuery(String queryString) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createQuery

      public com.liferay.portal.kernel.dao.orm.Query createQuery(String queryString, boolean strictName) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSQLQuery(String queryString) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSQLQuery(String queryString, boolean strictName) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSynchronizedSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSynchronizedSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSynchronizedSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • createSynchronizedSQLQuery

      public com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName, String[] tableNames) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • delete

      public void delete(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      delete in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • evict

      public void evict(Class<?> clazz, Serializable id) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      evict in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • evict

      public void evict(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      evict in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • flush

      public void flush() throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      flush in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • get

      public Object get(Class<?> clazz, Serializable id) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      get in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • get

      public Object get(Class<?> clazz, Serializable id, com.liferay.portal.kernel.dao.orm.LockMode lockMode) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      get in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • getWrappedSession

      public Object getWrappedSession()
      Specified by:
      getWrappedSession in interface com.liferay.portal.kernel.dao.orm.Session
    • isDirty

      public boolean isDirty() throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      isDirty in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • load

      public Object load(Class<?> clazz, Serializable id) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      load in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • merge

      public Object merge(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      merge in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • save

      public Serializable save(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      save in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • saveOrUpdate

      public void saveOrUpdate(Object object) throws com.liferay.portal.kernel.dao.orm.ORMException
      Specified by:
      saveOrUpdate in interface com.liferay.portal.kernel.dao.orm.Session
      Throws:
      com.liferay.portal.kernel.dao.orm.ORMException
    • toString

      public String toString()
      Overrides:
      toString in class Object