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 TypeMethodDescriptionvoidapply(com.liferay.petra.function.UnsafeConsumer<Connection, SQLException> unsafeConsumer) voidclear()close()booleancreateQuery(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) voidvoidevict(Class<?> clazz, Serializable id) voidvoidflush()get(Class<?> clazz, Serializable id) get(Class<?> clazz, Serializable id, LockMode lockMode) booleanisDirty()load(Class<?> clazz, Serializable id) voidsaveOrUpdate(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:
applyin interfaceSession- Throws:
ORMException
-
clear
- Specified by:
clearin interfaceSession- Throws:
ORMException
-
close
- Specified by:
closein interfaceSession- Throws:
ORMException
-
contains
- Specified by:
containsin interfaceSession- Throws:
ORMException
-
createQuery
- Specified by:
createQueryin interfaceSession- Throws:
ORMException
-
createQuery
- Specified by:
createQueryin interfaceSession- Throws:
ORMException
-
createSQLQuery
- Specified by:
createSQLQueryin interfaceSession- Throws:
ORMException
-
createSQLQuery
- Specified by:
createSQLQueryin interfaceSession- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) throws ORMException - Specified by:
createSynchronizedSQLQueryin interfaceSession- Throws:
ORMException
-
createSynchronizedSQLQuery
- Specified by:
createSynchronizedSQLQueryin interfaceSession- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName) throws ORMException - Specified by:
createSynchronizedSQLQueryin interfaceSession- Throws:
ORMException
-
createSynchronizedSQLQuery
public SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName, String[] tableNames) throws ORMException - Specified by:
createSynchronizedSQLQueryin interfaceSession- Throws:
ORMException
-
delete
- Specified by:
deletein interfaceSession- Throws:
ORMException
-
evict
- Specified by:
evictin interfaceSession- Throws:
ORMException
-
evict
- Specified by:
evictin interfaceSession- Throws:
ORMException
-
flush
- Specified by:
flushin interfaceSession- Throws:
ORMException
-
get
- Specified by:
getin interfaceSession- Throws:
ORMException
-
get
- Specified by:
getin interfaceSession- Throws:
ORMException
-
getWrappedSession
- Specified by:
getWrappedSessionin interfaceSession- Throws:
ORMException
-
isDirty
- Specified by:
isDirtyin interfaceSession- Throws:
ORMException
-
load
- Specified by:
loadin interfaceSession- Throws:
ORMException
-
merge
- Specified by:
mergein interfaceSession- Throws:
ORMException
-
save
- Specified by:
savein interfaceSession- Throws:
ORMException
-
saveOrUpdate
- Specified by:
saveOrUpdatein interfaceSession- Throws:
ORMException
-