Class TransactionScopedSession
java.lang.Object
io.quarkus.hibernate.orm.runtime.session.TransactionScopedSession
- All Implemented Interfaces:
jakarta.persistence.EntityManager
,Closeable
,Serializable
,AutoCloseable
,org.hibernate.query.QueryProducer
,org.hibernate.Session
,org.hibernate.SharedSessionContract
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from interface org.hibernate.Session
org.hibernate.Session.LockRequest
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransactionScopedSession
(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions) -
Method Summary
Modifier and TypeMethodDescription(package private) TransactionScopedSession.SessionResult
void
addEventListeners
(org.hibernate.SessionEventListener... listeners) org.hibernate.Transaction
org.hibernate.Session.LockRequest
buildLockRequest
(org.hibernate.LockOptions lockOptions) <T> org.hibernate.IdentifierLoadAccess<T>
<T> org.hibernate.IdentifierLoadAccess<T>
<T> org.hibernate.MultiIdentifierLoadAccess<T>
byMultipleIds
(Class<T> entityClass) <T> org.hibernate.MultiIdentifierLoadAccess<T>
byMultipleIds
(String entityName) <T> org.hibernate.NaturalIdMultiLoadAccess<T>
byMultipleNaturalId
(Class<T> entityClass) <T> org.hibernate.NaturalIdMultiLoadAccess<T>
byMultipleNaturalId
(String entityName) <T> org.hibernate.NaturalIdLoadAccess<T>
byNaturalId
(Class<T> entityClass) <T> org.hibernate.NaturalIdLoadAccess<T>
byNaturalId
(String entityName) <T> org.hibernate.SimpleNaturalIdLoadAccess<T>
bySimpleNaturalId
(Class<T> entityClass) <T> org.hibernate.SimpleNaturalIdLoadAccess<T>
bySimpleNaturalId
(String entityName) void
void
clear()
void
close()
boolean
boolean
<T> org.hibernate.graph.RootGraph<T>
createEntityGraph
(Class<T> rootType) <T> org.hibernate.graph.RootGraph<T>
createEntityGraph
(Class<T> rootType, String graphName) org.hibernate.graph.RootGraph<?>
createEntityGraph
(String graphName) org.hibernate.query.MutationQuery
createMutationQuery
(jakarta.persistence.criteria.CriteriaDelete deleteQuery) org.hibernate.query.MutationQuery
createMutationQuery
(jakarta.persistence.criteria.CriteriaUpdate updateQuery) org.hibernate.query.MutationQuery
createMutationQuery
(String hqlString) org.hibernate.query.MutationQuery
createMutationQuery
(org.hibernate.query.criteria.JpaCriteriaInsertSelect insertSelect) org.hibernate.query.MutationQuery
org.hibernate.query.Query
createNamedQuery
(String name) Deprecated.<T> org.hibernate.query.Query<T>
createNamedQuery
(String name, Class<T> resultClass) org.hibernate.query.SelectionQuery<?>
<R> org.hibernate.query.SelectionQuery<R>
createNamedSelectionQuery
(String name, Class<R> resultType) org.hibernate.procedure.ProcedureCall
org.hibernate.query.MutationQuery
createNativeMutationQuery
(String sqlString) org.hibernate.query.NativeQuery
createNativeQuery
(String sqlString) Deprecated.org.hibernate.query.NativeQuery
createNativeQuery
(String sqlString, Class resultClass) Deprecated.<R> org.hibernate.query.NativeQuery<R>
createNativeQuery
(String sqlString, Class<R> resultClass, String tableAlias) org.hibernate.query.NativeQuery
createNativeQuery
(String sqlString, String resultSetMapping) Deprecated.<R> org.hibernate.query.NativeQuery<R>
createNativeQuery
(String sqlString, String resultSetMappingName, Class<R> resultClass) org.hibernate.query.Query
createQuery
(jakarta.persistence.criteria.CriteriaDelete deleteQuery) Deprecated.<T> org.hibernate.query.Query<T>
createQuery
(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery) org.hibernate.query.Query
createQuery
(jakarta.persistence.criteria.CriteriaUpdate updateQuery) Deprecated.org.hibernate.query.Query
createQuery
(String qlString) Deprecated.<T> org.hibernate.query.Query<T>
createQuery
(String qlString, Class<T> resultClass) <R> org.hibernate.query.SelectionQuery<R>
createSelectionQuery
(jakarta.persistence.criteria.CriteriaQuery<R> criteria) org.hibernate.query.SelectionQuery<?>
createSelectionQuery
(String hqlString) <R> org.hibernate.query.SelectionQuery<R>
createSelectionQuery
(String hqlString, Class<R> resultType) org.hibernate.procedure.ProcedureCall
createStoredProcedureCall
(String procedureName) org.hibernate.procedure.ProcedureCall
createStoredProcedureCall
(String procedureName, Class... resultClasses) org.hibernate.procedure.ProcedureCall
createStoredProcedureCall
(String procedureName, String... resultSetMappings) org.hibernate.procedure.ProcedureCall
createStoredProcedureQuery
(String procedureName) org.hibernate.procedure.ProcedureCall
createStoredProcedureQuery
(String procedureName, Class... resultClasses) org.hibernate.procedure.ProcedureCall
createStoredProcedureQuery
(String procedureName, String... resultSetMappings) void
Deprecated.void
Deprecated.void
void
disableFetchProfile
(String name) void
disableFilter
(String filterName) <T> T
doReturningWork
(org.hibernate.jdbc.ReturningWork<T> work) void
doWork
(org.hibernate.jdbc.Work work) void
enableFetchProfile
(String name) org.hibernate.Filter
enableFilter
(String filterName) void
<T> T
<T> T
<T> T
find
(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode, Map<String, Object> properties) <T> T
void
flush()
<T> T
<T> T
<T> T
org.hibernate.CacheMode
jakarta.persistence.CacheRetrieveMode
jakarta.persistence.CacheStoreMode
org.hibernate.query.criteria.HibernateCriteriaBuilder
org.hibernate.LockMode
getCurrentLockMode
(Object object) org.hibernate.Filter
getEnabledFilter
(String filterName) org.hibernate.graph.RootGraph<?>
getEntityGraph
(String graphName) <T> List<jakarta.persistence.EntityGraph<? super T>>
getEntityGraphs
(Class<T> entityClass) jakarta.persistence.EntityManagerFactory
getEntityName
(Object object) org.hibernate.SessionFactory
int
jakarta.persistence.FlushModeType
org.hibernate.FlushMode
getIdentifier
(Object object) org.hibernate.LobHelper
jakarta.persistence.LockModeType
getLockMode
(Object entity) jakarta.persistence.metamodel.Metamodel
org.hibernate.query.NativeQuery
getNamedNativeQuery
(String name) Deprecated.org.hibernate.query.NativeQuery
getNamedNativeQuery
(String name, String resultSetMapping) Deprecated.org.hibernate.procedure.ProcedureCall
getNamedProcedureCall
(String name) org.hibernate.query.Query
getNamedQuery
(String queryName) Deprecated.<T> T
getReference
(Class<T> entityClass, Object primaryKey) getReference
(String entityName, Object id) <T> T
getReference
(T object) org.hibernate.SessionFactory
org.hibernate.stat.SessionStatistics
org.hibernate.Transaction
boolean
boolean
boolean
isDirty()
boolean
isFetchProfileEnabled
(String name) boolean
boolean
isOpen()
boolean
isReadOnly
(Object entityOrProxy) boolean
void
<T> T
Deprecated.<T> T
Deprecated.<T> T
Deprecated.void
Deprecated.Deprecated.Deprecated.void
void
void
void
void
<T> T
<T> T
merge
(T entity) void
void
void
void
void
void
void
void
void
Deprecated.void
Deprecated.void
void
Deprecated.void
Deprecated.Deprecated.Deprecated.void
saveOrUpdate
(Object object) Deprecated.void
saveOrUpdate
(String entityName, Object object) Deprecated.org.hibernate.SharedSessionBuilder
void
setCacheMode
(org.hibernate.CacheMode cacheMode) void
setCacheRetrieveMode
(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode) void
setCacheStoreMode
(jakarta.persistence.CacheStoreMode cacheStoreMode) void
setDefaultReadOnly
(boolean readOnly) void
setFetchBatchSize
(int batchSize) void
setFlushMode
(jakarta.persistence.FlushModeType flushMode) void
setHibernateFlushMode
(org.hibernate.FlushMode flushMode) void
setJdbcBatchSize
(Integer jdbcBatchSize) void
setProperty
(String propertyName, Object value) void
setReadOnly
(Object entityOrProxy, boolean readOnly) void
setSubselectFetchingEnabled
(boolean enabled) <T> T
void
Deprecated.void
Deprecated.
-
Field Details
-
TRANSACTION_IS_NOT_ACTIVE
- See Also:
-
-
Constructor Details
-
TransactionScopedSession
public TransactionScopedSession(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
-
-
Method Details
-
acquireSession
TransactionScopedSession.SessionResult acquireSession() -
persist
- Specified by:
persist
in interfacejakarta.persistence.EntityManager
- Specified by:
persist
in interfaceorg.hibernate.Session
-
merge
public <T> T merge(T entity) - Specified by:
merge
in interfacejakarta.persistence.EntityManager
- Specified by:
merge
in interfaceorg.hibernate.Session
-
remove
- Specified by:
remove
in interfacejakarta.persistence.EntityManager
- Specified by:
remove
in interfaceorg.hibernate.Session
-
find
- Specified by:
find
in interfacejakarta.persistence.EntityManager
-
find
- Specified by:
find
in interfacejakarta.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode) - Specified by:
find
in interfacejakarta.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
find
in interfacejakarta.persistence.EntityManager
-
getReference
- Specified by:
getReference
in interfacejakarta.persistence.EntityManager
- Specified by:
getReference
in interfaceorg.hibernate.Session
-
getReference
- Specified by:
getReference
in interfaceorg.hibernate.Session
-
getReference
public <T> T getReference(T object) - Specified by:
getReference
in interfaceorg.hibernate.Session
-
flush
public void flush()- Specified by:
flush
in interfacejakarta.persistence.EntityManager
- Specified by:
flush
in interfaceorg.hibernate.Session
-
setFlushMode
public void setFlushMode(jakarta.persistence.FlushModeType flushMode) - Specified by:
setFlushMode
in interfacejakarta.persistence.EntityManager
- Specified by:
setFlushMode
in interfaceorg.hibernate.Session
-
getFlushMode
public jakarta.persistence.FlushModeType getFlushMode()- Specified by:
getFlushMode
in interfacejakarta.persistence.EntityManager
- Specified by:
getFlushMode
in interfaceorg.hibernate.Session
-
lock
- Specified by:
lock
in interfacejakarta.persistence.EntityManager
-
lock
public void lock(Object entity, jakarta.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
lock
in interfacejakarta.persistence.EntityManager
-
refresh
- Specified by:
refresh
in interfacejakarta.persistence.EntityManager
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
- Specified by:
refresh
in interfacejakarta.persistence.EntityManager
-
refresh
- Specified by:
refresh
in interfacejakarta.persistence.EntityManager
-
refresh
public void refresh(Object entity, jakarta.persistence.LockModeType lockMode, Map<String, Object> properties) - Specified by:
refresh
in interfacejakarta.persistence.EntityManager
-
clear
public void clear()- Specified by:
clear
in interfacejakarta.persistence.EntityManager
- Specified by:
clear
in interfaceorg.hibernate.Session
-
detach
- Specified by:
detach
in interfacejakarta.persistence.EntityManager
- Specified by:
detach
in interfaceorg.hibernate.Session
-
contains
- Specified by:
contains
in interfacejakarta.persistence.EntityManager
-
getLockMode
- Specified by:
getLockMode
in interfacejakarta.persistence.EntityManager
-
setProperty
- Specified by:
setProperty
in interfacejakarta.persistence.EntityManager
-
getProperties
- Specified by:
getProperties
in interfacejakarta.persistence.EntityManager
-
createQuery
Deprecated.- Specified by:
createQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery) - Specified by:
createQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery) Deprecated.- Specified by:
createQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery) Deprecated.- Specified by:
createQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createQuery
- Specified by:
createQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createQuery
in interfaceorg.hibernate.Session
-
createNamedQuery
Deprecated.- Specified by:
createNamedQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createNamedQuery
in interfaceorg.hibernate.Session
-
createNamedQuery
- Specified by:
createNamedQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
- Specified by:
createNamedQuery
in interfaceorg.hibernate.Session
-
createNativeQuery
Deprecated.- Specified by:
createNativeQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, Class resultClass) Deprecated.- Specified by:
createNativeQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMapping) Deprecated.- Specified by:
createNativeQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedStoredProcedureQuery
- Specified by:
createNamedStoredProcedureQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createNamedStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
- Specified by:
createStoredProcedureQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, Class... resultClasses) - Specified by:
createStoredProcedureQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, String... resultSetMappings) - Specified by:
createStoredProcedureQuery
in interfacejakarta.persistence.EntityManager
- Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
joinTransaction
public void joinTransaction()- Specified by:
joinTransaction
in interfacejakarta.persistence.EntityManager
- Specified by:
joinTransaction
in interfaceorg.hibernate.SharedSessionContract
-
isJoinedToTransaction
public boolean isJoinedToTransaction()- Specified by:
isJoinedToTransaction
in interfacejakarta.persistence.EntityManager
- Specified by:
isJoinedToTransaction
in interfaceorg.hibernate.SharedSessionContract
-
unwrap
- Specified by:
unwrap
in interfacejakarta.persistence.EntityManager
-
getDelegate
- Specified by:
getDelegate
in interfacejakarta.persistence.EntityManager
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacejakarta.persistence.EntityManager
- Specified by:
close
in interfaceorg.hibernate.SharedSessionContract
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacejakarta.persistence.EntityManager
- Specified by:
isOpen
in interfaceorg.hibernate.SharedSessionContract
-
getTransaction
public org.hibernate.Transaction getTransaction()- Specified by:
getTransaction
in interfacejakarta.persistence.EntityManager
- Specified by:
getTransaction
in interfaceorg.hibernate.SharedSessionContract
-
getEntityManagerFactory
public jakarta.persistence.EntityManagerFactory getEntityManagerFactory()- Specified by:
getEntityManagerFactory
in interfacejakarta.persistence.EntityManager
-
getCriteriaBuilder
public org.hibernate.query.criteria.HibernateCriteriaBuilder getCriteriaBuilder()- Specified by:
getCriteriaBuilder
in interfacejakarta.persistence.EntityManager
- Specified by:
getCriteriaBuilder
in interfaceorg.hibernate.SharedSessionContract
-
getMetamodel
public jakarta.persistence.metamodel.Metamodel getMetamodel()- Specified by:
getMetamodel
in interfacejakarta.persistence.EntityManager
-
createEntityGraph
- Specified by:
createEntityGraph
in interfacejakarta.persistence.EntityManager
- Specified by:
createEntityGraph
in interfaceorg.hibernate.Session
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
createEntityGraph
- Specified by:
createEntityGraph
in interfacejakarta.persistence.EntityManager
- Specified by:
createEntityGraph
in interfaceorg.hibernate.Session
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
getEntityGraph
- Specified by:
getEntityGraph
in interfacejakarta.persistence.EntityManager
- Specified by:
getEntityGraph
in interfaceorg.hibernate.Session
- Specified by:
getEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
getEntityGraphs
- Specified by:
getEntityGraphs
in interfacejakarta.persistence.EntityManager
- Specified by:
getEntityGraphs
in interfaceorg.hibernate.Session
- Specified by:
getEntityGraphs
in interfaceorg.hibernate.SharedSessionContract
-
sessionWithOptions
public org.hibernate.SharedSessionBuilder sessionWithOptions()- Specified by:
sessionWithOptions
in interfaceorg.hibernate.Session
-
setHibernateFlushMode
public void setHibernateFlushMode(org.hibernate.FlushMode flushMode) - Specified by:
setHibernateFlushMode
in interfaceorg.hibernate.Session
-
getHibernateFlushMode
public org.hibernate.FlushMode getHibernateFlushMode()- Specified by:
getHibernateFlushMode
in interfaceorg.hibernate.Session
-
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cacheMode) - Specified by:
setCacheMode
in interfaceorg.hibernate.Session
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()- Specified by:
getCacheMode
in interfaceorg.hibernate.Session
-
getCacheStoreMode
public jakarta.persistence.CacheStoreMode getCacheStoreMode()- Specified by:
getCacheStoreMode
in interfaceorg.hibernate.Session
-
getCacheRetrieveMode
public jakarta.persistence.CacheRetrieveMode getCacheRetrieveMode()- Specified by:
getCacheRetrieveMode
in interfaceorg.hibernate.Session
-
setCacheStoreMode
public void setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode) - Specified by:
setCacheStoreMode
in interfaceorg.hibernate.Session
-
setCacheRetrieveMode
public void setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode) - Specified by:
setCacheRetrieveMode
in interfaceorg.hibernate.Session
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()- Specified by:
getSessionFactory
in interfaceorg.hibernate.Session
-
cancelQuery
public void cancelQuery() throws org.hibernate.HibernateException- Specified by:
cancelQuery
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
isDirty
public boolean isDirty() throws org.hibernate.HibernateException- Specified by:
isDirty
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.HibernateException
-
isDefaultReadOnly
public boolean isDefaultReadOnly()- Specified by:
isDefaultReadOnly
in interfaceorg.hibernate.Session
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly) - Specified by:
setDefaultReadOnly
in interfaceorg.hibernate.Session
-
getIdentifier
- Specified by:
getIdentifier
in interfaceorg.hibernate.Session
-
contains
- Specified by:
contains
in interfaceorg.hibernate.Session
-
evict
- Specified by:
evict
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
Deprecated.- Specified by:
load
in interfaceorg.hibernate.Session
-
load
- Specified by:
load
in interfaceorg.hibernate.Session
-
replicate
Deprecated.- Specified by:
replicate
in interfaceorg.hibernate.Session
-
replicate
@Deprecated public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode) Deprecated.- Specified by:
replicate
in interfaceorg.hibernate.Session
-
save
Deprecated.- Specified by:
save
in interfaceorg.hibernate.Session
-
save
Deprecated.- Specified by:
save
in interfaceorg.hibernate.Session
-
saveOrUpdate
Deprecated.- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
-
saveOrUpdate
Deprecated.- Specified by:
saveOrUpdate
in interfaceorg.hibernate.Session
-
update
Deprecated.- Specified by:
update
in interfaceorg.hibernate.Session
-
update
Deprecated.- Specified by:
update
in interfaceorg.hibernate.Session
-
merge
- Specified by:
merge
in interfaceorg.hibernate.Session
-
persist
- Specified by:
persist
in interfaceorg.hibernate.Session
-
delete
Deprecated.- Specified by:
delete
in interfaceorg.hibernate.Session
-
delete
Deprecated.- Specified by:
delete
in interfaceorg.hibernate.Session
-
lock
- Specified by:
lock
in interfaceorg.hibernate.Session
-
lock
- Specified by:
lock
in interfaceorg.hibernate.Session
-
lock
- Specified by:
lock
in interfaceorg.hibernate.Session
-
buildLockRequest
public org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions) - Specified by:
buildLockRequest
in interfaceorg.hibernate.Session
-
refresh
Deprecated.- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
- Specified by:
refresh
in interfaceorg.hibernate.Session
-
refresh
@Deprecated public void refresh(String entityName, Object object, org.hibernate.LockOptions lockOptions) Deprecated.- Specified by:
refresh
in interfaceorg.hibernate.Session
-
getCurrentLockMode
- Specified by:
getCurrentLockMode
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
get
- Specified by:
get
in interfaceorg.hibernate.Session
-
getEntityName
- Specified by:
getEntityName
in interfaceorg.hibernate.Session
-
byId
- Specified by:
byId
in interfaceorg.hibernate.Session
-
byMultipleIds
- Specified by:
byMultipleIds
in interfaceorg.hibernate.Session
-
byMultipleIds
- Specified by:
byMultipleIds
in interfaceorg.hibernate.Session
-
byId
- Specified by:
byId
in interfaceorg.hibernate.Session
-
byNaturalId
- Specified by:
byNaturalId
in interfaceorg.hibernate.Session
-
byNaturalId
- Specified by:
byNaturalId
in interfaceorg.hibernate.Session
-
bySimpleNaturalId
- Specified by:
bySimpleNaturalId
in interfaceorg.hibernate.Session
-
bySimpleNaturalId
- Specified by:
bySimpleNaturalId
in interfaceorg.hibernate.Session
-
enableFilter
- Specified by:
enableFilter
in interfaceorg.hibernate.Session
-
getEnabledFilter
- Specified by:
getEnabledFilter
in interfaceorg.hibernate.Session
-
disableFilter
- Specified by:
disableFilter
in interfaceorg.hibernate.Session
-
getStatistics
public org.hibernate.stat.SessionStatistics getStatistics()- Specified by:
getStatistics
in interfaceorg.hibernate.Session
-
isReadOnly
- Specified by:
isReadOnly
in interfaceorg.hibernate.Session
-
setReadOnly
- Specified by:
setReadOnly
in interfaceorg.hibernate.Session
-
isFetchProfileEnabled
- Specified by:
isFetchProfileEnabled
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
enableFetchProfile
- Specified by:
enableFetchProfile
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
disableFetchProfile
- Specified by:
disableFetchProfile
in interfaceorg.hibernate.Session
- Throws:
org.hibernate.UnknownProfileException
-
getLobHelper
public org.hibernate.LobHelper getLobHelper()- Specified by:
getLobHelper
in interfaceorg.hibernate.Session
-
addEventListeners
public void addEventListeners(org.hibernate.SessionEventListener... listeners) - Specified by:
addEventListeners
in interfaceorg.hibernate.Session
-
getTenantIdentifier
- Specified by:
getTenantIdentifier
in interfaceorg.hibernate.SharedSessionContract
-
getTenantIdentifierValue
- Specified by:
getTenantIdentifierValue
in interfaceorg.hibernate.SharedSessionContract
-
isConnected
public boolean isConnected()- Specified by:
isConnected
in interfaceorg.hibernate.SharedSessionContract
-
beginTransaction
public org.hibernate.Transaction beginTransaction()- Specified by:
beginTransaction
in interfaceorg.hibernate.SharedSessionContract
-
getNamedQuery
Deprecated.- Specified by:
getNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
getNamedProcedureCall
- Specified by:
getNamedProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
- Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, Class... resultClasses) - Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings) - Specified by:
createStoredProcedureCall
in interfaceorg.hibernate.SharedSessionContract
-
getJdbcBatchSize
- Specified by:
getJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
setJdbcBatchSize
- Specified by:
setJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
doWork
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException - Specified by:
doWork
in interfaceorg.hibernate.SharedSessionContract
- Throws:
org.hibernate.HibernateException
-
doReturningWork
public <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work) throws org.hibernate.HibernateException - Specified by:
doReturningWork
in interfaceorg.hibernate.SharedSessionContract
- Throws:
org.hibernate.HibernateException
-
getNamedNativeQuery
Deprecated.- Specified by:
getNamedNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public <R> org.hibernate.query.NativeQuery<R> createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias) - Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public <R> org.hibernate.query.NativeQuery<R> createNativeQuery(String sqlString, String resultSetMappingName, Class<R> resultClass) - Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
- Specified by:
createSelectionQuery
in interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery(String hqlString, Class<R> resultType) - Specified by:
createSelectionQuery
in interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria) - Specified by:
createSelectionQuery
in interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
- Specified by:
createMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery) - Specified by:
createMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery) - Specified by:
createMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsertSelect insertSelect) - Specified by:
createMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeMutationQuery
- Specified by:
createNativeMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedSelectionQuery
- Specified by:
createNamedSelectionQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createNamedSelectionQuery(String name, Class<R> resultType) - Specified by:
createNamedSelectionQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedMutationQuery
- Specified by:
createNamedMutationQuery
in interfaceorg.hibernate.query.QueryProducer
-
getNamedNativeQuery
@Deprecated public org.hibernate.query.NativeQuery getNamedNativeQuery(String name, String resultSetMapping) Deprecated.- Specified by:
getNamedNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
byMultipleNaturalId
- Specified by:
byMultipleNaturalId
in interfaceorg.hibernate.Session
-
byMultipleNaturalId
- Specified by:
byMultipleNaturalId
in interfaceorg.hibernate.Session
-
createEntityGraph
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
getFactory
public org.hibernate.SessionFactory getFactory()- Specified by:
getFactory
in interfaceorg.hibernate.SharedSessionContract
-
getFetchBatchSize
public int getFetchBatchSize()- Specified by:
getFetchBatchSize
in interfaceorg.hibernate.Session
-
setFetchBatchSize
public void setFetchBatchSize(int batchSize) - Specified by:
setFetchBatchSize
in interfaceorg.hibernate.Session
-
isSubselectFetchingEnabled
public boolean isSubselectFetchingEnabled()- Specified by:
isSubselectFetchingEnabled
in interfaceorg.hibernate.Session
-
setSubselectFetchingEnabled
public void setSubselectFetchingEnabled(boolean enabled) - Specified by:
setSubselectFetchingEnabled
in interfaceorg.hibernate.Session
-