com.liferay.portal.dao.orm.hibernate
Class SessionImpl
java.lang.Object
com.liferay.portal.dao.orm.hibernate.SessionImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.orm.Session
public class SessionImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.dao.orm.Session
View Source
- Author:
- Brian Wing Shun Chan
Constructor Summary |
SessionImpl(org.hibernate.Session session)
|
Method Summary |
void |
clear()
|
java.sql.Connection |
close()
|
boolean |
contains(java.lang.Object object)
|
com.liferay.portal.kernel.dao.orm.Query |
createQuery(java.lang.String queryString)
|
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSQLQuery(java.lang.String queryString)
|
void |
delete(java.lang.Object object)
|
void |
evict(java.lang.Object object)
|
void |
flush()
|
java.lang.Object |
get(java.lang.Class clazz,
java.io.Serializable id)
|
java.lang.Object |
get(java.lang.Class clazz,
java.io.Serializable id,
com.liferay.portal.kernel.dao.orm.LockMode lockMode)
|
org.hibernate.Session |
getWrappedSession()
|
java.lang.Object |
load(java.lang.Class clazz,
java.io.Serializable id)
|
java.lang.Object |
merge(java.lang.Object object)
|
java.io.Serializable |
save(java.lang.Object object)
|
void |
saveOrUpdate(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionImpl
public SessionImpl(org.hibernate.Session session)
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 java.sql.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(java.lang.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(java.lang.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
createSQLQuery
public com.liferay.portal.kernel.dao.orm.SQLQuery createSQLQuery(java.lang.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
delete
public void delete(java.lang.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(java.lang.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 java.lang.Object get(java.lang.Class clazz,
java.io.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 java.lang.Object get(java.lang.Class clazz,
java.io.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 org.hibernate.Session getWrappedSession()
load
public java.lang.Object load(java.lang.Class clazz,
java.io.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 java.lang.Object merge(java.lang.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 java.io.Serializable save(java.lang.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(java.lang.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