public class SessionImpl
extends Object
implements com.liferay.portal.kernel.dao.orm.Session
| Constructor and Description |
|---|
SessionImpl(org.hibernate.Session session,
ClassLoader sessionFactoryClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(com.liferay.petra.function.UnsafeConsumer<Connection,SQLException> unsafeConsumer) |
void |
clear() |
Connection |
close() |
boolean |
contains(Object object) |
com.liferay.portal.kernel.dao.orm.Query |
createQuery(String queryString) |
com.liferay.portal.kernel.dao.orm.Query |
createQuery(String queryString,
boolean strictName) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSQLQuery(String queryString) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSQLQuery(String queryString,
boolean strictName) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSynchronizedSQLQuery(String queryString) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSynchronizedSQLQuery(String queryString,
boolean strictName) |
com.liferay.portal.kernel.dao.orm.SQLQuery |
createSynchronizedSQLQuery(String queryString,
boolean strictName,
String[] tableNames) |
void |
delete(Object object) |
void |
evict(Class<?> clazz,
Serializable id) |
void |
evict(Object object) |
void |
flush() |
Object |
get(Class<?> clazz,
Serializable id) |
Object |
get(Class<?> clazz,
Serializable id,
com.liferay.portal.kernel.dao.orm.LockMode lockMode) |
Object |
getWrappedSession() |
boolean |
isDirty() |
Object |
load(Class<?> clazz,
Serializable id) |
Object |
merge(Object object) |
Serializable |
save(Object object) |
void |
saveOrUpdate(Object object) |
String |
toString() |
public SessionImpl(org.hibernate.Session session,
ClassLoader sessionFactoryClassLoader)
public void apply(com.liferay.petra.function.UnsafeConsumer<Connection,SQLException> unsafeConsumer)
throws com.liferay.portal.kernel.dao.orm.ORMException
apply in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void clear()
throws com.liferay.portal.kernel.dao.orm.ORMException
clear in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Connection close()
throws com.liferay.portal.kernel.dao.orm.ORMException
close in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic boolean contains(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
contains in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.Query createQuery(String queryString)
throws com.liferay.portal.kernel.dao.orm.ORMException
createQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.Query createQuery(String queryString,
boolean strictName)
throws com.liferay.portal.kernel.dao.orm.ORMException
createQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSQLQuery(String queryString)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSQLQuery(String queryString,
boolean strictName)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString,
boolean strictName)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic com.liferay.portal.kernel.dao.orm.SQLQuery createSynchronizedSQLQuery(String queryString,
boolean strictName,
String[] tableNames)
throws com.liferay.portal.kernel.dao.orm.ORMException
createSynchronizedSQLQuery in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void delete(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
delete in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void evict(Class<?> clazz,
Serializable id)
throws com.liferay.portal.kernel.dao.orm.ORMException
evict in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void evict(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
evict in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void flush()
throws com.liferay.portal.kernel.dao.orm.ORMException
flush in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Object get(Class<?> clazz,
Serializable id)
throws com.liferay.portal.kernel.dao.orm.ORMException
get in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Object get(Class<?> clazz,
Serializable id,
com.liferay.portal.kernel.dao.orm.LockMode lockMode)
throws com.liferay.portal.kernel.dao.orm.ORMException
get in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Object getWrappedSession()
getWrappedSession in interface com.liferay.portal.kernel.dao.orm.Sessionpublic boolean isDirty()
throws com.liferay.portal.kernel.dao.orm.ORMException
isDirty in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Object load(Class<?> clazz,
Serializable id)
throws com.liferay.portal.kernel.dao.orm.ORMException
load in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Object merge(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
merge in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic Serializable save(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
save in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic void saveOrUpdate(Object object)
throws com.liferay.portal.kernel.dao.orm.ORMException
saveOrUpdate in interface com.liferay.portal.kernel.dao.orm.Sessioncom.liferay.portal.kernel.dao.orm.ORMExceptionpublic String toString()
toString in class Object