Package io.quarkus.hibernate.orm.runtime
Class StatelessSessionLazyDelegator
java.lang.Object
io.quarkus.hibernate.orm.runtime.StatelessSessionLazyDelegator
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
,org.hibernate.query.QueryProducer
,org.hibernate.SharedSessionContract
,org.hibernate.StatelessSession
Plays the exact same role as
SessionLazyDelegator
for Session
-
Constructor Summary
ConstructorDescriptionStatelessSessionLazyDelegator
(Supplier<org.hibernate.StatelessSession> delegate) -
Method Summary
Modifier and TypeMethodDescriptionorg.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.<R> org.hibernate.query.Query<R>
createNamedQuery
(String name, Class<R> 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.<R> org.hibernate.query.NativeQuery<R>
createNativeQuery
(String sqlString, Class<R> resultClass) <R> org.hibernate.query.NativeQuery<R>
createNativeQuery
(String sqlString, Class<R> resultClass, String tableAlias) org.hibernate.query.NativeQuery
createNativeQuery
(String sqlString, String resultSetMappingName) 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.<R> org.hibernate.query.Query<R>
createQuery
(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery) org.hibernate.query.Query
createQuery
(jakarta.persistence.criteria.CriteriaUpdate updateQuery) Deprecated.org.hibernate.query.Query
createQuery
(String queryString) Deprecated.<R> org.hibernate.query.Query<R>
createQuery
(String queryString, Class<R> 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
void
<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
void
void
setJdbcBatchSize
(Integer jdbcBatchSize) void
void
void
void
-
Constructor Details
-
StatelessSessionLazyDelegator
-
-
Method Details
-
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
-
update
- Specified by:
update
in interfaceorg.hibernate.StatelessSession
-
update
- Specified by:
update
in interfaceorg.hibernate.StatelessSession
-
delete
- Specified by:
delete
in interfaceorg.hibernate.StatelessSession
-
delete
- Specified by:
delete
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
-
refresh
- Specified by:
refresh
in interfaceorg.hibernate.StatelessSession
-
refresh
- 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
-
getTenantIdentifier
- Specified by:
getTenantIdentifier
in interfaceorg.hibernate.SharedSessionContract
-
getTenantIdentifierValue
- Specified by:
getTenantIdentifierValue
in interfaceorg.hibernate.SharedSessionContract
-
isOpen
public boolean isOpen()- Specified by:
isOpen
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
-
getTransaction
public org.hibernate.Transaction getTransaction()- Specified by:
getTransaction
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
-
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
-
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
-
getJdbcBatchSize
- Specified by:
getJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
setJdbcBatchSize
- Specified by:
setJdbcBatchSize
in interfaceorg.hibernate.SharedSessionContract
-
getCriteriaBuilder
public org.hibernate.query.criteria.HibernateCriteriaBuilder getCriteriaBuilder()- Specified by:
getCriteriaBuilder
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
-
createQuery
Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
public <R> org.hibernate.query.Query<R> createQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery) - Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
@Deprecated(since="6.0") public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaUpdate updateQuery) Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createQuery
@Deprecated(since="6.0") public org.hibernate.query.Query createQuery(jakarta.persistence.criteria.CriteriaDelete deleteQuery) Deprecated.- Specified by:
createQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
Deprecated.- Specified by:
createNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNativeQuery
public <R> org.hibernate.query.NativeQuery<R> createNativeQuery(String sqlString, Class<R> resultClass) - Specified by:
createNativeQuery
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
@Deprecated(since="6.0") public org.hibernate.query.NativeQuery createNativeQuery(String sqlString, String resultSetMappingName) Deprecated.- 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
-
createNamedQuery
Deprecated.- Specified by:
createNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
createNamedQuery
- Specified by:
createNamedQuery
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
-
getNamedQuery
Deprecated.- Specified by:
getNamedQuery
in interfaceorg.hibernate.query.QueryProducer
-
getNamedNativeQuery
Deprecated.- Specified by:
getNamedNativeQuery
in interfaceorg.hibernate.query.QueryProducer
-
getNamedNativeQuery
@Deprecated(since="6.0") 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
-