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
public class TransactionScopedSession extends Object implements org.hibernate.Session
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTransactionScopedSession.SessionResult
-
Field Summary
Fields Modifier and Type Field Description protected static StringTRANSACTION_IS_NOT_ACTIVE
-
Constructor Summary
Constructors Constructor Description TransactionScopedSession(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) TransactionScopedSession.SessionResultacquireSession()voidaddEventListeners(org.hibernate.SessionEventListener... listeners)org.hibernate.TransactionbeginTransaction()org.hibernate.Session.LockRequestbuildLockRequest(org.hibernate.LockOptions lockOptions)<T> org.hibernate.IdentifierLoadAccess<T>byId(Class<T> entityClass)<T> org.hibernate.IdentifierLoadAccess<T>byId(String entityName)<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)voidcancelQuery()voidclear()voidclose()booleancontains(Object entity)booleancontains(String entityName, Object object)<T> org.hibernate.graph.RootGraph<T>createEntityGraph(Class<T> rootType)org.hibernate.graph.RootGraph<?>createEntityGraph(String graphName)org.hibernate.query.MutationQuerycreateMutationQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery)org.hibernate.query.MutationQuerycreateMutationQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery)org.hibernate.query.MutationQuerycreateMutationQuery(String hqlString)org.hibernate.query.MutationQuerycreateMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsertSelect insertSelect)org.hibernate.query.MutationQuerycreateNamedMutationQuery(String name)org.hibernate.query.QuerycreateNamedQuery(String name)Deprecated.<T> org.hibernate.query.Query<T>createNamedQuery(String name, Class<T> resultClass)org.hibernate.query.SelectionQuery<?>createNamedSelectionQuery(String name)<R> org.hibernate.query.SelectionQuery<R>createNamedSelectionQuery(String name, Class<R> resultType)org.hibernate.procedure.ProcedureCallcreateNamedStoredProcedureQuery(String name)org.hibernate.query.MutationQuerycreateNativeMutationQuery(String sqlString)org.hibernate.query.NativeQuerycreateNativeQuery(String sqlString)Deprecated.org.hibernate.query.NativeQuerycreateNativeQuery(String sqlString, Class resultClass)Deprecated.<R> org.hibernate.query.NativeQuery<R>createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias)org.hibernate.query.NativeQuerycreateNativeQuery(String sqlString, String resultSetMapping)Deprecated.<R> org.hibernate.query.NativeQuery<R>createNativeQuery(String sqlString, String resultSetMappingName, Class<R> resultClass)org.hibernate.query.QuerycreateQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery)Deprecated.<T> org.hibernate.query.Query<T>createQuery(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery)org.hibernate.query.QuerycreateQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery)Deprecated.org.hibernate.query.QuerycreateQuery(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.ProcedureCallcreateStoredProcedureCall(String procedureName)org.hibernate.procedure.ProcedureCallcreateStoredProcedureCall(String procedureName, Class... resultClasses)org.hibernate.procedure.ProcedureCallcreateStoredProcedureCall(String procedureName, String... resultSetMappings)org.hibernate.procedure.ProcedureCallcreateStoredProcedureQuery(String procedureName)org.hibernate.procedure.ProcedureCallcreateStoredProcedureQuery(String procedureName, Class... resultClasses)org.hibernate.procedure.ProcedureCallcreateStoredProcedureQuery(String procedureName, String... resultSetMappings)voiddelete(Object object)Deprecated.voiddelete(String entityName, Object object)Deprecated.voiddetach(Object entity)voiddisableFetchProfile(String name)voiddisableFilter(String filterName)<T> TdoReturningWork(org.hibernate.jdbc.ReturningWork<T> work)voiddoWork(org.hibernate.jdbc.Work work)voidenableFetchProfile(String name)org.hibernate.FilterenableFilter(String filterName)voidevict(Object object)<T> Tfind(Class<T> entityClass, Object primaryKey)<T> Tfind(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode)<T> Tfind(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)<T> Tfind(Class<T> entityClass, Object primaryKey, Map<String,Object> properties)voidflush()<T> Tget(Class<T> entityType, Object id)<T> Tget(Class<T> entityType, Object id, org.hibernate.LockMode lockMode)<T> Tget(Class<T> entityType, Object id, org.hibernate.LockOptions lockOptions)Objectget(String entityName, Object id)Objectget(String entityName, Object id, org.hibernate.LockMode lockMode)Objectget(String entityName, Object id, org.hibernate.LockOptions lockOptions)org.hibernate.CacheModegetCacheMode()jakarta.persistence.CacheRetrieveModegetCacheRetrieveMode()jakarta.persistence.CacheStoreModegetCacheStoreMode()org.hibernate.query.criteria.HibernateCriteriaBuildergetCriteriaBuilder()org.hibernate.LockModegetCurrentLockMode(Object object)ObjectgetDelegate()org.hibernate.FiltergetEnabledFilter(String filterName)org.hibernate.graph.RootGraph<?>getEntityGraph(String graphName)<T> List<jakarta.persistence.EntityGraph<? super T>>getEntityGraphs(Class<T> entityClass)jakarta.persistence.EntityManagerFactorygetEntityManagerFactory()StringgetEntityName(Object object)jakarta.persistence.FlushModeTypegetFlushMode()org.hibernate.FlushModegetHibernateFlushMode()ObjectgetIdentifier(Object object)IntegergetJdbcBatchSize()org.hibernate.LobHelpergetLobHelper()jakarta.persistence.LockModeTypegetLockMode(Object entity)jakarta.persistence.metamodel.MetamodelgetMetamodel()org.hibernate.query.NativeQuerygetNamedNativeQuery(String name)Deprecated.org.hibernate.query.NativeQuerygetNamedNativeQuery(String name, String resultSetMapping)Deprecated.org.hibernate.procedure.ProcedureCallgetNamedProcedureCall(String name)org.hibernate.query.QuerygetNamedQuery(String queryName)Deprecated.Map<String,Object>getProperties()<T> TgetReference(Class<T> entityClass, Object primaryKey)ObjectgetReference(String entityName, Object id)<T> TgetReference(T object)org.hibernate.SessionFactorygetSessionFactory()org.hibernate.stat.SessionStatisticsgetStatistics()StringgetTenantIdentifier()org.hibernate.TransactiongetTransaction()booleanisConnected()booleanisDefaultReadOnly()booleanisDirty()booleanisFetchProfileEnabled(String name)booleanisJoinedToTransaction()booleanisOpen()booleanisReadOnly(Object entityOrProxy)voidjoinTransaction()<T> Tload(Class<T> theClass, Object id)Deprecated.<T> Tload(Class<T> theClass, Object id, org.hibernate.LockMode lockMode)Deprecated.<T> Tload(Class<T> theClass, Object id, org.hibernate.LockOptions lockOptions)Deprecated.voidload(Object object, Object id)Objectload(String entityName, Object id)Deprecated.Objectload(String entityName, Object id, org.hibernate.LockMode lockMode)Deprecated.Objectload(String entityName, Object id, org.hibernate.LockOptions lockOptions)Deprecated.voidlock(Object entity, jakarta.persistence.LockModeType lockMode)voidlock(Object entity, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)voidlock(Object object, org.hibernate.LockMode lockMode)voidlock(Object object, org.hibernate.LockOptions lockOptions)voidlock(String entityName, Object object, org.hibernate.LockMode lockMode)<T> Tmerge(String entityName, T object)<T> Tmerge(T entity)voidpersist(Object entity)voidpersist(String entityName, Object object)voidrefresh(Object entity)voidrefresh(Object entity, jakarta.persistence.LockModeType lockMode)voidrefresh(Object entity, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)voidrefresh(Object entity, Map<String,Object> properties)voidrefresh(Object object, org.hibernate.LockMode lockMode)voidrefresh(Object object, org.hibernate.LockOptions lockOptions)voidrefresh(String entityName, Object object)Deprecated.voidrefresh(String entityName, Object object, org.hibernate.LockOptions lockOptions)Deprecated.voidremove(Object entity)voidreplicate(Object object, org.hibernate.ReplicationMode replicationMode)Deprecated.voidreplicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)Deprecated.Objectsave(Object object)Deprecated.Objectsave(String entityName, Object object)Deprecated.voidsaveOrUpdate(Object object)Deprecated.voidsaveOrUpdate(String entityName, Object object)Deprecated.org.hibernate.SharedSessionBuildersessionWithOptions()voidsetCacheMode(org.hibernate.CacheMode cacheMode)voidsetCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)voidsetCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)voidsetDefaultReadOnly(boolean readOnly)voidsetFlushMode(jakarta.persistence.FlushModeType flushMode)voidsetHibernateFlushMode(org.hibernate.FlushMode flushMode)voidsetJdbcBatchSize(Integer jdbcBatchSize)voidsetProperty(String propertyName, Object value)voidsetReadOnly(Object entityOrProxy, boolean readOnly)<T> Tunwrap(Class<T> cls)voidupdate(Object object)Deprecated.voidupdate(String entityName, Object object)Deprecated.
-
-
-
Field Detail
-
TRANSACTION_IS_NOT_ACTIVE
protected static final String TRANSACTION_IS_NOT_ACTIVE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransactionScopedSession
public TransactionScopedSession(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedSessionHolder> requestScopedSessions)
-
-
Method Detail
-
acquireSession
TransactionScopedSession.SessionResult acquireSession()
-
persist
public void persist(Object entity)
- Specified by:
persistin interfacejakarta.persistence.EntityManager- Specified by:
persistin interfaceorg.hibernate.Session
-
merge
public <T> T merge(T entity)
- Specified by:
mergein interfacejakarta.persistence.EntityManager- Specified by:
mergein interfaceorg.hibernate.Session
-
remove
public void remove(Object entity)
- Specified by:
removein interfacejakarta.persistence.EntityManager- Specified by:
removein interfaceorg.hibernate.Session
-
find
public <T> T find(Class<T> entityClass, Object primaryKey)
- Specified by:
findin interfacejakarta.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, Map<String,Object> properties)
- Specified by:
findin interfacejakarta.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode)
- Specified by:
findin interfacejakarta.persistence.EntityManager
-
find
public <T> T find(Class<T> entityClass, Object primaryKey, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
findin interfacejakarta.persistence.EntityManager
-
getReference
public <T> T getReference(Class<T> entityClass, Object primaryKey)
- Specified by:
getReferencein interfacejakarta.persistence.EntityManager- Specified by:
getReferencein interfaceorg.hibernate.Session
-
getReference
public Object getReference(String entityName, Object id)
- Specified by:
getReferencein interfaceorg.hibernate.Session
-
getReference
public <T> T getReference(T object)
- Specified by:
getReferencein interfaceorg.hibernate.Session
-
flush
public void flush()
- Specified by:
flushin interfacejakarta.persistence.EntityManager- Specified by:
flushin interfaceorg.hibernate.Session
-
setFlushMode
public void setFlushMode(jakarta.persistence.FlushModeType flushMode)
- Specified by:
setFlushModein interfacejakarta.persistence.EntityManager- Specified by:
setFlushModein interfaceorg.hibernate.Session
-
getFlushMode
public jakarta.persistence.FlushModeType getFlushMode()
- Specified by:
getFlushModein interfacejakarta.persistence.EntityManager- Specified by:
getFlushModein interfaceorg.hibernate.Session
-
lock
public void lock(Object entity, jakarta.persistence.LockModeType lockMode)
- Specified by:
lockin interfacejakarta.persistence.EntityManager
-
lock
public void lock(Object entity, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
lockin interfacejakarta.persistence.EntityManager
-
refresh
public void refresh(Object entity)
- Specified by:
refreshin interfacejakarta.persistence.EntityManager- Specified by:
refreshin interfaceorg.hibernate.Session
-
refresh
public void refresh(Object entity, Map<String,Object> properties)
- Specified by:
refreshin interfacejakarta.persistence.EntityManager
-
refresh
public void refresh(Object entity, jakarta.persistence.LockModeType lockMode)
- Specified by:
refreshin interfacejakarta.persistence.EntityManager
-
refresh
public void refresh(Object entity, jakarta.persistence.LockModeType lockMode, Map<String,Object> properties)
- Specified by:
refreshin interfacejakarta.persistence.EntityManager
-
clear
public void clear()
- Specified by:
clearin interfacejakarta.persistence.EntityManager- Specified by:
clearin interfaceorg.hibernate.Session
-
detach
public void detach(Object entity)
- Specified by:
detachin interfacejakarta.persistence.EntityManager- Specified by:
detachin interfaceorg.hibernate.Session
-
contains
public boolean contains(Object entity)
- Specified by:
containsin interfacejakarta.persistence.EntityManager
-
getLockMode
public jakarta.persistence.LockModeType getLockMode(Object entity)
- Specified by:
getLockModein interfacejakarta.persistence.EntityManager
-
setProperty
public void setProperty(String propertyName, Object value)
- Specified by:
setPropertyin interfacejakarta.persistence.EntityManager
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getPropertiesin interfacejakarta.persistence.EntityManager
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(String qlString)
Deprecated.- Specified by:
createQueryin interfacejakarta.persistence.EntityManager- Specified by:
createQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createQueryin interfaceorg.hibernate.Session
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery)
- Specified by:
createQueryin interfacejakarta.persistence.EntityManager- Specified by:
createQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createQueryin interfaceorg.hibernate.Session
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery)
Deprecated.- Specified by:
createQueryin interfacejakarta.persistence.EntityManager- Specified by:
createQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createQueryin interfaceorg.hibernate.Session
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery)
Deprecated.- Specified by:
createQueryin interfacejakarta.persistence.EntityManager- Specified by:
createQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createQueryin interfaceorg.hibernate.Session
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(String qlString, Class<T> resultClass)
- Specified by:
createQueryin interfacejakarta.persistence.EntityManager- Specified by:
createQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createQueryin interfaceorg.hibernate.Session
-
createNamedQuery
@Deprecated public org.hibernate.query.Query createNamedQuery(String name)
Deprecated.- Specified by:
createNamedQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNamedQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createNamedQueryin interfaceorg.hibernate.Session
-
createNamedQuery
public <T> org.hibernate.query.Query<T> createNamedQuery(String name, Class<T> resultClass)
- Specified by:
createNamedQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNamedQueryin interfaceorg.hibernate.query.QueryProducer- Specified by:
createNamedQueryin interfaceorg.hibernate.Session
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString)
Deprecated.- Specified by:
createNativeQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, Class resultClass)
Deprecated.- Specified by:
createNativeQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMapping)
Deprecated.- Specified by:
createNativeQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createNamedStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createNamedStoredProcedureQuery(String name)
- Specified by:
createNamedStoredProcedureQueryin interfacejakarta.persistence.EntityManager- Specified by:
createNamedStoredProcedureQueryin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName)
- Specified by:
createStoredProcedureQueryin interfacejakarta.persistence.EntityManager- Specified by:
createStoredProcedureQueryin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, Class... resultClasses)
- Specified by:
createStoredProcedureQueryin interfacejakarta.persistence.EntityManager- Specified by:
createStoredProcedureQueryin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, String... resultSetMappings)
- Specified by:
createStoredProcedureQueryin interfacejakarta.persistence.EntityManager- Specified by:
createStoredProcedureQueryin interfaceorg.hibernate.SharedSessionContract
-
joinTransaction
public void joinTransaction()
- Specified by:
joinTransactionin interfacejakarta.persistence.EntityManager- Specified by:
joinTransactionin interfaceorg.hibernate.SharedSessionContract
-
isJoinedToTransaction
public boolean isJoinedToTransaction()
- Specified by:
isJoinedToTransactionin interfacejakarta.persistence.EntityManager- Specified by:
isJoinedToTransactionin interfaceorg.hibernate.SharedSessionContract
-
unwrap
public <T> T unwrap(Class<T> cls)
- Specified by:
unwrapin interfacejakarta.persistence.EntityManager
-
getDelegate
public Object getDelegate()
- Specified by:
getDelegatein interfacejakarta.persistence.EntityManager
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacejakarta.persistence.EntityManager- Specified by:
closein interfaceorg.hibernate.SharedSessionContract
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfacejakarta.persistence.EntityManager- Specified by:
isOpenin interfaceorg.hibernate.SharedSessionContract
-
getTransaction
public org.hibernate.Transaction getTransaction()
- Specified by:
getTransactionin interfacejakarta.persistence.EntityManager- Specified by:
getTransactionin interfaceorg.hibernate.SharedSessionContract
-
getEntityManagerFactory
public jakarta.persistence.EntityManagerFactory getEntityManagerFactory()
- Specified by:
getEntityManagerFactoryin interfacejakarta.persistence.EntityManager
-
getCriteriaBuilder
public org.hibernate.query.criteria.HibernateCriteriaBuilder getCriteriaBuilder()
- Specified by:
getCriteriaBuilderin interfacejakarta.persistence.EntityManager- Specified by:
getCriteriaBuilderin interfaceorg.hibernate.SharedSessionContract
-
getMetamodel
public jakarta.persistence.metamodel.Metamodel getMetamodel()
- Specified by:
getMetamodelin interfacejakarta.persistence.EntityManager
-
createEntityGraph
public <T> org.hibernate.graph.RootGraph<T> createEntityGraph(Class<T> rootType)
- Specified by:
createEntityGraphin interfacejakarta.persistence.EntityManager- Specified by:
createEntityGraphin interfaceorg.hibernate.Session
-
createEntityGraph
public org.hibernate.graph.RootGraph<?> createEntityGraph(String graphName)
- Specified by:
createEntityGraphin interfacejakarta.persistence.EntityManager- Specified by:
createEntityGraphin interfaceorg.hibernate.Session
-
getEntityGraph
public org.hibernate.graph.RootGraph<?> getEntityGraph(String graphName)
- Specified by:
getEntityGraphin interfacejakarta.persistence.EntityManager- Specified by:
getEntityGraphin interfaceorg.hibernate.Session
-
getEntityGraphs
public <T> List<jakarta.persistence.EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass)
- Specified by:
getEntityGraphsin interfacejakarta.persistence.EntityManager- Specified by:
getEntityGraphsin interfaceorg.hibernate.Session
-
sessionWithOptions
public org.hibernate.SharedSessionBuilder sessionWithOptions()
- Specified by:
sessionWithOptionsin interfaceorg.hibernate.Session
-
setHibernateFlushMode
public void setHibernateFlushMode(org.hibernate.FlushMode flushMode)
- Specified by:
setHibernateFlushModein interfaceorg.hibernate.Session
-
getHibernateFlushMode
public org.hibernate.FlushMode getHibernateFlushMode()
- Specified by:
getHibernateFlushModein interfaceorg.hibernate.Session
-
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cacheMode)
- Specified by:
setCacheModein interfaceorg.hibernate.Session
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheModein interfaceorg.hibernate.Session
-
getCacheStoreMode
public jakarta.persistence.CacheStoreMode getCacheStoreMode()
- Specified by:
getCacheStoreModein interfaceorg.hibernate.Session
-
getCacheRetrieveMode
public jakarta.persistence.CacheRetrieveMode getCacheRetrieveMode()
- Specified by:
getCacheRetrieveModein interfaceorg.hibernate.Session
-
setCacheStoreMode
public void setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)
- Specified by:
setCacheStoreModein interfaceorg.hibernate.Session
-
setCacheRetrieveMode
public void setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
- Specified by:
setCacheRetrieveModein interfaceorg.hibernate.Session
-
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
- Specified by:
getSessionFactoryin interfaceorg.hibernate.Session
-
cancelQuery
public void cancelQuery() throws org.hibernate.HibernateException- Specified by:
cancelQueryin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
isDirty
public boolean isDirty() throws org.hibernate.HibernateException- Specified by:
isDirtyin interfaceorg.hibernate.Session- Throws:
org.hibernate.HibernateException
-
isDefaultReadOnly
public boolean isDefaultReadOnly()
- Specified by:
isDefaultReadOnlyin interfaceorg.hibernate.Session
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly)
- Specified by:
setDefaultReadOnlyin interfaceorg.hibernate.Session
-
getIdentifier
public Object getIdentifier(Object object)
- Specified by:
getIdentifierin interfaceorg.hibernate.Session
-
contains
public boolean contains(String entityName, Object object)
- Specified by:
containsin interfaceorg.hibernate.Session
-
evict
public void evict(Object object)
- Specified by:
evictin interfaceorg.hibernate.Session
-
load
@Deprecated public <T> T load(Class<T> theClass, Object id, org.hibernate.LockMode lockMode)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
@Deprecated public <T> T load(Class<T> theClass, Object id, org.hibernate.LockOptions lockOptions)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
@Deprecated public Object load(String entityName, Object id, org.hibernate.LockMode lockMode)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
@Deprecated public Object load(String entityName, Object id, org.hibernate.LockOptions lockOptions)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
@Deprecated public <T> T load(Class<T> theClass, Object id)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
@Deprecated public Object load(String entityName, Object id)
Deprecated.- Specified by:
loadin interfaceorg.hibernate.Session
-
load
public void load(Object object, Object id)
- Specified by:
loadin interfaceorg.hibernate.Session
-
replicate
@Deprecated public void replicate(Object object, org.hibernate.ReplicationMode replicationMode)
Deprecated.- Specified by:
replicatein interfaceorg.hibernate.Session
-
replicate
@Deprecated public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)
Deprecated.- Specified by:
replicatein interfaceorg.hibernate.Session
-
save
@Deprecated public Object save(Object object)
Deprecated.- Specified by:
savein interfaceorg.hibernate.Session
-
save
@Deprecated public Object save(String entityName, Object object)
Deprecated.- Specified by:
savein interfaceorg.hibernate.Session
-
saveOrUpdate
@Deprecated public void saveOrUpdate(Object object)
Deprecated.- Specified by:
saveOrUpdatein interfaceorg.hibernate.Session
-
saveOrUpdate
@Deprecated public void saveOrUpdate(String entityName, Object object)
Deprecated.- Specified by:
saveOrUpdatein interfaceorg.hibernate.Session
-
update
@Deprecated public void update(Object object)
Deprecated.- Specified by:
updatein interfaceorg.hibernate.Session
-
update
@Deprecated public void update(String entityName, Object object)
Deprecated.- Specified by:
updatein interfaceorg.hibernate.Session
-
merge
public <T> T merge(String entityName, T object)
- Specified by:
mergein interfaceorg.hibernate.Session
-
persist
public void persist(String entityName, Object object)
- Specified by:
persistin interfaceorg.hibernate.Session
-
delete
@Deprecated public void delete(Object object)
Deprecated.- Specified by:
deletein interfaceorg.hibernate.Session
-
delete
@Deprecated public void delete(String entityName, Object object)
Deprecated.- Specified by:
deletein interfaceorg.hibernate.Session
-
lock
public void lock(Object object, org.hibernate.LockMode lockMode)
- Specified by:
lockin interfaceorg.hibernate.Session
-
lock
public void lock(Object object, org.hibernate.LockOptions lockOptions)
- Specified by:
lockin interfaceorg.hibernate.Session
-
lock
public void lock(String entityName, Object object, org.hibernate.LockMode lockMode)
- Specified by:
lockin interfaceorg.hibernate.Session
-
buildLockRequest
public org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions)
- Specified by:
buildLockRequestin interfaceorg.hibernate.Session
-
refresh
@Deprecated public void refresh(String entityName, Object object)
Deprecated.- Specified by:
refreshin interfaceorg.hibernate.Session
-
refresh
public void refresh(Object object, org.hibernate.LockMode lockMode)
- Specified by:
refreshin interfaceorg.hibernate.Session
-
refresh
public void refresh(Object object, org.hibernate.LockOptions lockOptions)
- Specified by:
refreshin interfaceorg.hibernate.Session
-
refresh
@Deprecated public void refresh(String entityName, Object object, org.hibernate.LockOptions lockOptions)
Deprecated.- Specified by:
refreshin interfaceorg.hibernate.Session
-
getCurrentLockMode
public org.hibernate.LockMode getCurrentLockMode(Object object)
- Specified by:
getCurrentLockModein interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Object id)
- Specified by:
getin interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Object id, org.hibernate.LockMode lockMode)
- Specified by:
getin interfaceorg.hibernate.Session
-
get
public <T> T get(Class<T> entityType, Object id, org.hibernate.LockOptions lockOptions)
- Specified by:
getin interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Object id)
- Specified by:
getin interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Object id, org.hibernate.LockMode lockMode)
- Specified by:
getin interfaceorg.hibernate.Session
-
get
public Object get(String entityName, Object id, org.hibernate.LockOptions lockOptions)
- Specified by:
getin interfaceorg.hibernate.Session
-
getEntityName
public String getEntityName(Object object)
- Specified by:
getEntityNamein interfaceorg.hibernate.Session
-
byId
public <T> org.hibernate.IdentifierLoadAccess<T> byId(String entityName)
- Specified by:
byIdin interfaceorg.hibernate.Session
-
byMultipleIds
public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds(Class<T> entityClass)
- Specified by:
byMultipleIdsin interfaceorg.hibernate.Session
-
byMultipleIds
public <T> org.hibernate.MultiIdentifierLoadAccess<T> byMultipleIds(String entityName)
- Specified by:
byMultipleIdsin interfaceorg.hibernate.Session
-
byId
public <T> org.hibernate.IdentifierLoadAccess<T> byId(Class<T> entityClass)
- Specified by:
byIdin interfaceorg.hibernate.Session
-
byNaturalId
public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId(String entityName)
- Specified by:
byNaturalIdin interfaceorg.hibernate.Session
-
byNaturalId
public <T> org.hibernate.NaturalIdLoadAccess<T> byNaturalId(Class<T> entityClass)
- Specified by:
byNaturalIdin interfaceorg.hibernate.Session
-
bySimpleNaturalId
public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId(String entityName)
- Specified by:
bySimpleNaturalIdin interfaceorg.hibernate.Session
-
bySimpleNaturalId
public <T> org.hibernate.SimpleNaturalIdLoadAccess<T> bySimpleNaturalId(Class<T> entityClass)
- Specified by:
bySimpleNaturalIdin interfaceorg.hibernate.Session
-
enableFilter
public org.hibernate.Filter enableFilter(String filterName)
- Specified by:
enableFilterin interfaceorg.hibernate.Session
-
getEnabledFilter
public org.hibernate.Filter getEnabledFilter(String filterName)
- Specified by:
getEnabledFilterin interfaceorg.hibernate.Session
-
disableFilter
public void disableFilter(String filterName)
- Specified by:
disableFilterin interfaceorg.hibernate.Session
-
getStatistics
public org.hibernate.stat.SessionStatistics getStatistics()
- Specified by:
getStatisticsin interfaceorg.hibernate.Session
-
isReadOnly
public boolean isReadOnly(Object entityOrProxy)
- Specified by:
isReadOnlyin interfaceorg.hibernate.Session
-
setReadOnly
public void setReadOnly(Object entityOrProxy, boolean readOnly)
- Specified by:
setReadOnlyin interfaceorg.hibernate.Session
-
isFetchProfileEnabled
public boolean isFetchProfileEnabled(String name) throws org.hibernate.UnknownProfileException
- Specified by:
isFetchProfileEnabledin interfaceorg.hibernate.Session- Throws:
org.hibernate.UnknownProfileException
-
enableFetchProfile
public void enableFetchProfile(String name) throws org.hibernate.UnknownProfileException
- Specified by:
enableFetchProfilein interfaceorg.hibernate.Session- Throws:
org.hibernate.UnknownProfileException
-
disableFetchProfile
public void disableFetchProfile(String name) throws org.hibernate.UnknownProfileException
- Specified by:
disableFetchProfilein interfaceorg.hibernate.Session- Throws:
org.hibernate.UnknownProfileException
-
getLobHelper
public org.hibernate.LobHelper getLobHelper()
- Specified by:
getLobHelperin interfaceorg.hibernate.Session
-
addEventListeners
public void addEventListeners(org.hibernate.SessionEventListener... listeners)
- Specified by:
addEventListenersin interfaceorg.hibernate.Session
-
getTenantIdentifier
public String getTenantIdentifier()
- Specified by:
getTenantIdentifierin interfaceorg.hibernate.SharedSessionContract
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceorg.hibernate.SharedSessionContract
-
beginTransaction
public org.hibernate.Transaction beginTransaction()
- Specified by:
beginTransactionin interfaceorg.hibernate.SharedSessionContract
-
getNamedQuery
@Deprecated public org.hibernate.query.Query getNamedQuery(String queryName)
Deprecated.- Specified by:
getNamedQueryin interfaceorg.hibernate.query.QueryProducer
-
getNamedProcedureCall
public org.hibernate.procedure.ProcedureCall getNamedProcedureCall(String name)
- Specified by:
getNamedProcedureCallin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName)
- Specified by:
createStoredProcedureCallin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, Class... resultClasses)
- Specified by:
createStoredProcedureCallin interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureCall
public org.hibernate.procedure.ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings)
- Specified by:
createStoredProcedureCallin interfaceorg.hibernate.SharedSessionContract
-
getJdbcBatchSize
public Integer getJdbcBatchSize()
- Specified by:
getJdbcBatchSizein interfaceorg.hibernate.SharedSessionContract
-
setJdbcBatchSize
public void setJdbcBatchSize(Integer jdbcBatchSize)
- Specified by:
setJdbcBatchSizein interfaceorg.hibernate.SharedSessionContract
-
doWork
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException- Specified by:
doWorkin interfaceorg.hibernate.SharedSessionContract- Throws:
org.hibernate.HibernateException
-
doReturningWork
public <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work) throws org.hibernate.HibernateException- Specified by:
doReturningWorkin interfaceorg.hibernate.SharedSessionContract- Throws:
org.hibernate.HibernateException
-
getNamedNativeQuery
@Deprecated public org.hibernate.query.NativeQuery getNamedNativeQuery(String name)
Deprecated.- Specified by:
getNamedNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public <R> org.hibernate.query.NativeQuery<R> createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias)
- Specified by:
createNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public <R> org.hibernate.query.NativeQuery<R> createNativeQuery(String sqlString, String resultSetMappingName, Class<R> resultClass)
- Specified by:
createNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
public org.hibernate.query.SelectionQuery<?> createSelectionQuery(String hqlString)
- Specified by:
createSelectionQueryin interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery(String hqlString, Class<R> resultType)
- Specified by:
createSelectionQueryin interfaceorg.hibernate.query.QueryProducer
-
createSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria)
- Specified by:
createSelectionQueryin interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(String hqlString)
- Specified by:
createMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery)
- Specified by:
createMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery)
- Specified by:
createMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
createMutationQuery
public org.hibernate.query.MutationQuery createMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsertSelect insertSelect)
- Specified by:
createMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
createNativeMutationQuery
public org.hibernate.query.MutationQuery createNativeMutationQuery(String sqlString)
- Specified by:
createNativeMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
createNamedSelectionQuery
public org.hibernate.query.SelectionQuery<?> createNamedSelectionQuery(String name)
- Specified by:
createNamedSelectionQueryin interfaceorg.hibernate.query.QueryProducer
-
createNamedSelectionQuery
public <R> org.hibernate.query.SelectionQuery<R> createNamedSelectionQuery(String name, Class<R> resultType)
- Specified by:
createNamedSelectionQueryin interfaceorg.hibernate.query.QueryProducer
-
createNamedMutationQuery
public org.hibernate.query.MutationQuery createNamedMutationQuery(String name)
- Specified by:
createNamedMutationQueryin interfaceorg.hibernate.query.QueryProducer
-
getNamedNativeQuery
@Deprecated public org.hibernate.query.NativeQuery getNamedNativeQuery(String name, String resultSetMapping)
Deprecated.- Specified by:
getNamedNativeQueryin interfaceorg.hibernate.query.QueryProducer
-
byMultipleNaturalId
public <T> org.hibernate.NaturalIdMultiLoadAccess<T> byMultipleNaturalId(Class<T> entityClass)
- Specified by:
byMultipleNaturalIdin interfaceorg.hibernate.Session
-
byMultipleNaturalId
public <T> org.hibernate.NaturalIdMultiLoadAccess<T> byMultipleNaturalId(String entityName)
- Specified by:
byMultipleNaturalIdin interfaceorg.hibernate.Session
-
-