Interface Session
- All Known Implementing Classes:
SessionWrapper
@ProviderType
public interface Session
- Author:
- Brian Wing Shun Chan, Shuyang Zhou
-
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)
-
Method Details
-
apply
void apply(com.liferay.petra.function.UnsafeConsumer<Connection, SQLException> unsafeConsumer) throws ORMException- Throws:
ORMException
-
clear
- Throws:
ORMException
-
close
- Throws:
ORMException
-
contains
- Throws:
ORMException
-
createQuery
- Throws:
ORMException
-
createQuery
- Throws:
ORMException
-
createSQLQuery
- Throws:
ORMException
-
createSQLQuery
- Throws:
ORMException
-
createSynchronizedSQLQuery
SQLQuery createSynchronizedSQLQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) throws ORMException - Throws:
ORMException
-
createSynchronizedSQLQuery
- Throws:
ORMException
-
createSynchronizedSQLQuery
- Throws:
ORMException
-
createSynchronizedSQLQuery
SQLQuery createSynchronizedSQLQuery(String queryString, boolean strictName, String[] tableNames) throws ORMException - Throws:
ORMException
-
delete
- Throws:
ORMException
-
evict
- Throws:
ORMException
-
evict
- Throws:
ORMException
-
flush
- Throws:
ORMException
-
get
- Throws:
ORMException
-
get
- Throws:
ORMException
-
getWrappedSession
- Throws:
ORMException
-
isDirty
- Throws:
ORMException
-
load
- Throws:
ORMException
-
merge
- Throws:
ORMException
-
save
- Throws:
ORMException
-
saveOrUpdate
- Throws:
ORMException
-