Class SessionWrapper
Object
com.liferay.portal.kernel.dao.orm.SessionWrapper
- All Implemented Interfaces:
Session
- Author:
- Shuyang Zhou
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(com.liferay.petra.function.UnsafeConsumer<Connection, SQLException> unsafeConsumer) void
clear()
close()
boolean
createQuery
(String queryString) createQuery
(String queryString, boolean strictName) createSQLQuery
(String queryString) createSQLQuery
(String queryString, boolean strictName) createSynchronizedSQLQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) createSynchronizedSQLQuery
(String queryString) createSynchronizedSQLQuery
(String queryString, boolean strictName) createSynchronizedSQLQuery
(String queryString, boolean strictName, String[] tableNames) void
void
evict
(Class<?> clazz, Serializable id) void
void
flush()
get
(Class<?> clazz, Serializable id) get
(Class<?> clazz, Serializable id, LockMode lockMode) boolean
isDirty()
load
(Class<?> clazz, Serializable id) void
saveOrUpdate
(Object object)
-
Field Details
-
session
-
-
Constructor Details
-
SessionWrapper
-
-
Method Details
-
apply
public void apply(com.liferay.petra.function.UnsafeConsumer<Connection, SQLException> unsafeConsumer) throws ORMException- Specified by:
apply
in interfaceSession
- Throws:
ORMException
-
clear
- Specified by:
clear
in interfaceSession
- Throws:
ORMException
-
close
- Specified by:
close
in interfaceSession
- Throws:
ORMException
-
contains
- Specified by:
contains
in interfaceSession
- Throws:
ORMException
-
createQuery
- Specified by:
createQuery
in interfaceSession
- Throws:
ORMException
-
createQuery
- Specified by:
createQuery
in interfaceSession
- Throws:
ORMException
-
createSQLQuery
- Specified by:
createSQLQuery
in interfaceSession
- Throws:
ORMException
-
createSQLQuery
- Specified by:
createSQLQuery
in interfaceSession
- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) throws ORMException - Specified by:
createSynchronizedSQLQuery
in interfaceSession
- Throws:
ORMException
-
createSynchronizedSQLQuery
- Specified by:
createSynchronizedSQLQuery
in interfaceSession
- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName) throws ORMException - Specified by:
createSynchronizedSQLQuery
in interfaceSession
- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName, String[] tableNames) throws ORMException - Specified by:
createSynchronizedSQLQuery
in interfaceSession
- Throws:
ORMException
-
delete
- Specified by:
delete
in interfaceSession
- Throws:
ORMException
-
evict
- Specified by:
evict
in interfaceSession
- Throws:
ORMException
-
evict
- Specified by:
evict
in interfaceSession
- Throws:
ORMException
-
flush
- Specified by:
flush
in interfaceSession
- Throws:
ORMException
-
get
- Specified by:
get
in interfaceSession
- Throws:
ORMException
-
get
- Specified by:
get
in interfaceSession
- Throws:
ORMException
-
getWrappedSession
- Specified by:
getWrappedSession
in interfaceSession
- Throws:
ORMException
-
isDirty
- Specified by:
isDirty
in interfaceSession
- Throws:
ORMException
-
load
- Specified by:
load
in interfaceSession
- Throws:
ORMException
-
merge
- Specified by:
merge
in interfaceSession
- Throws:
ORMException
-
save
- Specified by:
save
in interfaceSession
- Throws:
ORMException
-
saveOrUpdate
- Specified by:
saveOrUpdate
in interfaceSession
- Throws:
ORMException
-