Class TransactionScopedStatelessSession
java.lang.Object
io.quarkus.hibernate.orm.runtime.session.TransactionScopedStatelessSession
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,org.hibernate.query.QueryProducer
,org.hibernate.SharedSessionContract
,org.hibernate.StatelessSession
public class TransactionScopedStatelessSession
extends Object
implements org.hibernate.StatelessSession
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransactionScopedStatelessSession
(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedStatelessSessionHolder> requestScopedSessions) -
Method Summary
Modifier and TypeMethodDescription(package private) TransactionScopedStatelessSession.SessionResult
org.hibernate.Transaction
void
close()
<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.<T> T
doReturningWork
(org.hibernate.jdbc.ReturningWork<T> work) void
doWork
(org.hibernate.jdbc.Work work) void
<T> T
get
(jakarta.persistence.EntityGraph<T> graph, org.hibernate.graph.GraphSemantic graphSemantic, Object id) <T> T
get
(jakarta.persistence.EntityGraph<T> graph, org.hibernate.graph.GraphSemantic graphSemantic, Object id, org.hibernate.LockMode lockMode) <T> T
<T> T
org.hibernate.query.criteria.HibernateCriteriaBuilder
org.hibernate.graph.RootGraph<?>
getEntityGraph
(String graphName) <T> List<jakarta.persistence.EntityGraph<? super T>>
getEntityGraphs
(Class<T> entityClass) org.hibernate.SessionFactory
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.org.hibernate.Transaction
boolean
boolean
boolean
isOpen()
void
void
void
void
Deprecated.void
void
setJdbcBatchSize
(Integer jdbcBatchSize) void
Deprecated.void
Deprecated.void
void
-
Field Details
-
TRANSACTION_IS_NOT_ACTIVE
- See Also:
-
-
Constructor Details
-
TransactionScopedStatelessSession
public TransactionScopedStatelessSession(jakarta.transaction.TransactionManager transactionManager, jakarta.transaction.TransactionSynchronizationRegistry transactionSynchronizationRegistry, org.hibernate.SessionFactory sessionFactory, String unitName, jakarta.enterprise.inject.Instance<RequestScopedStatelessSessionHolder> requestScopedSessions)
-
-
Method Details
-
acquireSession
TransactionScopedStatelessSession.SessionResult acquireSession() -
refresh
- Specified by:
refresh
in interfaceorg.hibernate.StatelessSession
-
createQuery
Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
public <T> org.hibernate.query.Query<T> createQuery(jakarta.persistence.criteria.CriteriaQuery<T> criteriaQuery) - Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery) Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
@Deprecated public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery) Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedQuery
Deprecated.- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedQuery
- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
Deprecated.- 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 interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
@Deprecated public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMapping) Deprecated.- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedStoredProcedureQuery
- Specified by:
createNamedStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
- Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, Class... resultClasses) - Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
createStoredProcedureQuery
public org.hibernate.procedure.ProcedureCall createStoredProcedureQuery(String procedureName, String... resultSetMappings) - Specified by:
createStoredProcedureQuery
in interfaceorg.hibernate.SharedSessionContract
-
joinTransaction
public void joinTransaction()- Specified by:
joinTransaction
in interfaceorg.hibernate.SharedSessionContract
-
isJoinedToTransaction
public boolean isJoinedToTransaction()- Specified by:
isJoinedToTransaction
in interfaceorg.hibernate.SharedSessionContract
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.hibernate.SharedSessionContract
- Specified by:
close
in interfaceorg.hibernate.StatelessSession
-
insert
- Specified by:
insert
in interfaceorg.hibernate.StatelessSession
-
insert
- Specified by:
insert
in interfaceorg.hibernate.StatelessSession
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceorg.hibernate.SharedSessionContract
-
getTransaction
public org.hibernate.Transaction getTransaction()- Specified by:
getTransaction
in interfaceorg.hibernate.SharedSessionContract
-
getCriteriaBuilder
public org.hibernate.query.criteria.HibernateCriteriaBuilder getCriteriaBuilder()- Specified by:
getCriteriaBuilder
in interfaceorg.hibernate.SharedSessionContract
-
update
Deprecated.- Specified by:
update
in interfaceorg.hibernate.StatelessSession
-
update
Deprecated.- Specified by:
update
in interfaceorg.hibernate.StatelessSession
-
delete
Deprecated.- Specified by:
delete
in interfaceorg.hibernate.StatelessSession
-
delete
Deprecated.- Specified by:
delete
in interfaceorg.hibernate.StatelessSession
-
refresh
Deprecated.- Specified by:
refresh
in interfaceorg.hibernate.StatelessSession
-
refresh
- Specified by:
refresh
in interfaceorg.hibernate.StatelessSession
-
refresh
- Specified by:
refresh
in interfaceorg.hibernate.StatelessSession
-
fetch
- Specified by:
fetch
in interfaceorg.hibernate.StatelessSession
-
get
- Specified by:
get
in interfaceorg.hibernate.StatelessSession
-
get
- Specified by:
get
in interfaceorg.hibernate.StatelessSession
-
get
- Specified by:
get
in interfaceorg.hibernate.StatelessSession
-
get
- Specified by:
get
in interfaceorg.hibernate.StatelessSession
-
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
-
createEntityGraph
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
createEntityGraph
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
createEntityGraph
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
getEntityGraph
- Specified by:
getEntityGraph
in interfaceorg.hibernate.SharedSessionContract
-
getEntityGraphs
- Specified by:
getEntityGraphs
in interfaceorg.hibernate.SharedSessionContract
-
getFactory
public org.hibernate.SessionFactory getFactory()- Specified by:
getFactory
in interfaceorg.hibernate.SharedSessionContract
-
upsert
- Specified by:
upsert
in interfaceorg.hibernate.StatelessSession
-
upsert
- Specified by:
upsert
in interfaceorg.hibernate.StatelessSession
-
get
public <T> T get(jakarta.persistence.EntityGraph<T> graph, org.hibernate.graph.GraphSemantic graphSemantic, Object id) - Specified by:
get
in interfaceorg.hibernate.StatelessSession
-
get
public <T> T get(jakarta.persistence.EntityGraph<T> graph, org.hibernate.graph.GraphSemantic graphSemantic, Object id, org.hibernate.LockMode lockMode) - Specified by:
get
in interfaceorg.hibernate.StatelessSession
-