Class ReactiveSessionImpl
- java.lang.Object
-
- org.hibernate.internal.AbstractSharedSessionContract
-
- org.hibernate.internal.SessionImpl
-
- org.hibernate.reactive.session.impl.ReactiveSessionImpl
-
- All Implemented Interfaces:
jakarta.persistence.EntityManager
,java.io.Closeable
,java.io.Serializable
,java.lang.AutoCloseable
,org.hibernate.engine.jdbc.LobCreationContext
,org.hibernate.engine.spi.SessionImplementor
,org.hibernate.engine.spi.SharedSessionContractImplementor
,org.hibernate.event.spi.EventSource
,org.hibernate.loader.internal.LoadAccessContext
,org.hibernate.query.QueryProducer
,org.hibernate.query.spi.QueryProducerImplementor
,ReactiveSharedSessionContractImplementor
,ReactiveConnectionSupplier
,ReactiveQueryProducer
,ReactiveSession
,org.hibernate.resource.jdbc.spi.JdbcSessionOwner
,org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options
,org.hibernate.Session
,org.hibernate.SharedSessionContract
,org.hibernate.type.descriptor.java.JavaType.CoercionContext
,org.hibernate.type.descriptor.WrapperOptions
public class ReactiveSessionImpl extends org.hibernate.internal.SessionImpl implements ReactiveSession, org.hibernate.event.spi.EventSource
AnReactiveSession
implemented by extension of theSessionImpl
in Hibernate core. Extension was preferred to delegation because there are places where Hibernate core compares the identity of session instances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReactiveSessionImpl(org.hibernate.internal.SessionFactoryImpl delegate, org.hibernate.internal.SessionCreationOptions options, ReactiveConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterOperation(boolean success)
void
checkOpen()
void
checkTransactionNeededForUpdateOperation(java.lang.String exceptionMessage)
void
clear()
void
close()
<T> org.hibernate.graph.spi.RootGraphImplementor<T>
createEntityGraph(java.lang.Class<T> entity, java.lang.String name)
<R> ReactiveMutationQuery<R>
createNamedReactiveMutationQuery(java.lang.String queryName)
<R> ReactiveSelectionQuery<R>
createNamedReactiveSelectionQuery(java.lang.String queryName)
<R> ReactiveSelectionQuery<R>
createNamedReactiveSelectionQuery(java.lang.String queryName, java.lang.Class<R> expectedResultType)
<R> ReactiveMutationQuery<R>
createNativeReactiveMutationQuery(java.lang.String sqlString)
protected org.hibernate.engine.internal.StatefulPersistenceContext
createPersistenceContext()
<R> ReactiveMutationQuery<R>
createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaDelete<R> deleteQuery)
<R> ReactiveMutationQuery<R>
createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaUpdate<R> updateQuery)
<R> ReactiveMutationQuery<R>
createReactiveMutationQuery(java.lang.String hqlString)
<R> ReactiveMutationQuery<R>
createReactiveMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsertSelect<R> insertSelect)
<R> ReactiveQueryImplementor<R>
createReactiveNamedQuery(java.lang.String name, java.lang.Class<R> resultType)
<T> ReactiveNativeQueryImplementor<T>
createReactiveNativeQuery(java.lang.String sqlString)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String sqlString, java.lang.Class<R> resultClass, java.lang.String tableAlias)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String queryString, java.lang.Class<R> resultType, AffectedEntities affectedEntities)
<T> ReactiveNativeQuery<T>
createReactiveNativeQuery(java.lang.String sqlString, java.lang.Class<T> resultClass)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String sqlString, java.lang.String resultSetMappingName)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String sqlString, java.lang.String resultSetMappingName, java.lang.Class<R> resultClass)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String queryString, AffectedEntities affectedEntities)
<R> ReactiveNativeQueryImpl<R>
createReactiveNativeQuery(java.lang.String queryString, ResultSetMapping<R> resultSetMapping)
<R> ReactiveNativeQuery<R>
createReactiveNativeQuery(java.lang.String queryString, ResultSetMapping<R> resultSetMapping, AffectedEntities affectedEntities)
<R> ReactiveQuery<R>
createReactiveQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery)
<R> ReactiveQuery<R>
createReactiveQuery(java.lang.String queryString)
<R> ReactiveQuery<R>
createReactiveQuery(java.lang.String queryString, java.lang.Class<R> expectedResultType)
<R> ReactiveSelectionQuery<R>
createReactiveSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria)
<R> ReactiveSelectionQuery<R>
createReactiveSelectionQuery(java.lang.String hqlString, java.lang.Class<R> resultType)
void
delayedAfterCompletion()
java.lang.Integer
getBatchSize()
org.hibernate.dialect.Dialect
getDialect()
<T> java.lang.Class<T>
getEntityClass(T entity)
<T> org.hibernate.graph.spi.RootGraphImplementor<T>
getEntityGraph(java.lang.Class<T> entity, java.lang.String name)
java.lang.Object
getEntityId(java.lang.Object entity)
org.hibernate.engine.spi.ExceptionConverter
getExceptionConverter()
ReactiveActionQueue
getReactiveActionQueue()
ReactiveConnection
getReactiveConnection()
Obtain theReactiveConnection
that is associated with the current session.<T> ResultSetMapping<T>
getResultSetMapping(java.lang.Class<T> resultType, java.lang.String mappingName)
org.hibernate.engine.spi.SessionImplementor
getSharedContract()
java.lang.Object
immediateLoad(java.lang.String entityName, java.lang.Object id)
void
initializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing)
Deprecated.void
prepareForQueryExecution(boolean requiresTxn)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveAutoflush()
java.util.concurrent.CompletionStage<java.lang.Boolean>
reactiveAutoFlushIfRequired(java.util.Set<java.lang.String> querySpaces)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveClose()
<E,T>
java.util.concurrent.CompletionStage<T>reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E,T> field)
<T> java.util.concurrent.CompletionStage<T>
reactiveFetch(T association, boolean unproxy)
<T> java.util.concurrent.CompletionStage<java.util.List<T>>
reactiveFind(java.lang.Class<T> entityClass, java.lang.Object... ids)
<T> java.util.concurrent.CompletionStage<T>
reactiveFind(java.lang.Class<T> entityClass, java.lang.Object id, org.hibernate.LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph)
<T> java.util.concurrent.CompletionStage<T>
reactiveFind(java.lang.Class<T> entityClass, java.util.Map<java.lang.String,java.lang.Object> ids)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveFlush()
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveForceFlush(org.hibernate.engine.spi.EntityEntry entry)
<T> java.util.concurrent.CompletionStage<T>
reactiveGet(java.lang.Class<T> entityClass, java.lang.Object id)
java.util.concurrent.CompletionStage<java.lang.Object>
reactiveImmediateLoad(java.lang.String entityName, java.lang.Object id)
Load the data for the object with the specified id into a newly created object.java.util.concurrent.CompletionStage<java.lang.Void>
reactiveInitializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing)
java.util.concurrent.CompletionStage<java.lang.Object>
reactiveInternalLoad(java.lang.String entityName, java.lang.Object id, boolean eager, boolean nullable)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveLock(java.lang.Object object, org.hibernate.LockOptions lockOptions)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveMerge(java.lang.Object object, org.hibernate.event.spi.MergeContext copiedAlready)
<T> java.util.concurrent.CompletionStage<T>
reactiveMerge(T object)
java.util.concurrent.CompletionStage<java.lang.Void>
reactivePersist(java.lang.Object entity)
java.util.concurrent.CompletionStage<java.lang.Void>
reactivePersist(java.lang.Object object, org.hibernate.event.spi.PersistContext copiedAlready)
java.util.concurrent.CompletionStage<java.lang.Void>
reactivePersistOnFlush(java.lang.Object entity, org.hibernate.event.spi.PersistContext copiedAlready)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRefresh(java.lang.Object object, org.hibernate.event.spi.RefreshContext refreshedAlready)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRefresh(java.lang.Object entity, org.hibernate.LockOptions lockOptions)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRemove(java.lang.Object entity)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRemove(java.lang.String entityName, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRemove(java.lang.String entityName, java.lang.Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRemoveOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
void
removeOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
void
setBatchSize(java.lang.Integer batchSize)
<T> T
unwrap(java.lang.Class<T> clazz)
-
Methods inherited from class org.hibernate.internal.SessionImpl
addEventListeners, addSharedSessionTransactionObserver, afterScrollOperation, afterTransactionBegin, afterTransactionCompletion, applyLockOptionsHint, applyQuerySettingsAndHints, applyQuerySettingsAndHints, asEventSource, autoFlushIfRequired, beforeTransactionCompletion, bestGuessEntityName, bestGuessEntityName, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, checkNoUnresolvedActionsAfterOperation, checkNoUnresolvedActionsBeforeOperation, checkOpenOrWaitingForAutoClose, checkSessionFactoryOpen, cleanupOnClose, closeWithoutOpenChecks, contains, contains, createActionQueue, createNamedStoredProcedureQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, delete, delete, delete, detach, determineAppropriateLocalCacheMode, disableFetchProfile, disableFilter, enableFetchProfile, enableFilter, evict, find, find, find, find, fireLoad, flush, flushBeforeTransactionCompletion, forceFlush, forceFlush, get, get, get, get, get, get, getActionQueue, getCacheRetrieveMode, getCacheStoreMode, getContextEntityIdentifier, getCurrentLockMode, getDelegate, getEnabledFilter, getEntityManagerFactory, getEntityName, getEntityPersister, getEntityUsingInterceptor, getFetchBatchSize, getIdentifier, getLoadQueryInfluencers, getLobHelper, getLockMode, getMetamodel, getPersistenceContext, getPersistenceContextInternal, getProperties, getReference, getReference, getReference, getSession, getSessionFactory, getStatistics, guessEntityName, instantiate, instantiate, internalLoad, internalLoadType, isAutoCloseSessionEnabled, isDefaultReadOnly, isDirty, isEnforcingFetchGraph, isEventSource, isFetchProfileEnabled, isOpen, isReadOnly, isSubselectFetchingEnabled, load, load, load, load, load, load, load, lock, lock, lock, lock, lock, lock, merge, merge, merge, persist, persist, persist, persistOnFlush, pulseTransactionCoordinator, refresh, refresh, refresh, refresh, refresh, refresh, refresh, refresh, refresh, remove, removeSharedSessionTransactionObserver, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, sessionWithOptions, setAutoClear, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setEnforcingFetchGraph, setFetchBatchSize, setFlushMode, setProperty, setReadOnly, setSubselectFetchingEnabled, shouldAutoClose, shouldCloseJdbcCoordinatorOnClose, startTransactionBoundary, toString, update, update
-
Methods inherited from class org.hibernate.internal.AbstractSharedSessionContract
accessTransaction, addResultType, beginTransaction, buildNamedQuery, buildNamedQuery, checkMutationQuery, checkOpen, checkResultType, checkSelectionQuery, checkTransactionSynchStatus, createEntityGraph, createEntityGraph, createMutationQuery, createMutationQuery, createMutationQuery, createMutationQuery, createNamedMutationQuery, createNamedQuery, createNamedQuery, createNamedSelectionQuery, createNamedSelectionQuery, createNativeMutationQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQueryImplementor, createNativeQueryImplementor, createQuery, createQuery, createQuery, createQuery, createQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, createSqmQueryImplementor, createSqmQueryImplementor, doReturningWork, doWork, execute, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getCriteriaBuilder, getCurrentTransaction, getEntityGraph, getEntityGraphs, getEntityNameResolver, getEventListenerManager, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcCoordinator, getJdbcServices, getJdbcSessionContext, getJdbcTimeZone, getLobCreator, getNamedNativeQuery, getNamedNativeQuery, getNamedProcedureCall, getNamedQuery, getPreferredSqlTypeCodeForBoolean, getResultSetMappingMemento, getSessionIdentifier, getSessionToken, getTenantIdentifier, getTransaction, getTransactionCoordinator, interpretHql, isClosed, isConnected, isCriteriaCopyTreeEnabled, isJoinedToTransaction, isOpenOrWaitingForAutoClose, isTransactionInProgress, joinTransaction, markForRollbackOnly, prepareForAutoClose, setCacheMode, setClosed, setCriteriaCopyTreeEnabled, setHibernateFlushMode, setJdbcBatchSize, shouldAutoJoinTransaction, useStreamForLobBinding
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.EntityManager
contains, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, setProperty
-
Methods inherited from interface org.hibernate.event.spi.EventSource
delete, forceFlush, forceFlush, getActionQueue, instantiate, merge, persist, persistOnFlush, refresh
-
Methods inherited from interface org.hibernate.resource.jdbc.spi.JdbcSessionOwner
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, flushBeforeTransactionCompletion, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcSessionContext, getTransactionCoordinator, startTransactionBoundary
-
Methods inherited from interface org.hibernate.query.QueryProducer
createMutationQuery, createNamedSelectionQuery, createNamedSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery
-
Methods inherited from interface org.hibernate.query.spi.QueryProducerImplementor
createMutationQuery, createMutationQuery, createMutationQuery, createNamedMutationQuery, createNamedQuery, createNamedQuery, createNativeMutationQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, getNamedNativeQuery, getNamedNativeQuery, getNamedQuery
-
Methods inherited from interface org.hibernate.reactive.session.ReactiveQueryProducer
createEntityGraph, getFactory
-
Methods inherited from interface org.hibernate.reactive.session.ReactiveSession
contains, detach, disableFetchProfile, disableFilter, enableFetchProfile, enableFilter, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityName, getFetchBatchSize, getHibernateFlushMode, getIdentifier, getReference, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isOpen, isReadOnly, isSubselectFetchingEnabled, setCacheMode, setDefaultReadOnly, setFetchBatchSize, setHibernateFlushMode, setReadOnly, setSubselectFetchingEnabled
-
Methods inherited from interface org.hibernate.reactive.engine.spi.ReactiveSharedSessionContractImplementor
getPersistenceContext
-
Methods inherited from interface org.hibernate.Session
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, contains, createNamedQuery, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createQuery, delete, delete, detach, disableFetchProfile, disableFilter, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCacheRetrieveMode, getCacheStoreMode, getCurrentLockMode, getEnabledFilter, getEntityGraphs, getEntityName, getFetchBatchSize, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, isSubselectFetchingEnabled, load, load, load, load, load, load, load, lock, lock, lock, merge, merge, persist, persist, refresh, refresh, refresh, refresh, refresh, remove, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, sessionWithOptions, setCacheMode, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setFetchBatchSize, setFlushMode, setHibernateFlushMode, setReadOnly, setSubselectFetchingEnabled, update, update
-
Methods inherited from interface org.hibernate.engine.spi.SessionImplementor
asSessionImplementor, createEntityGraph, createEntityGraph, getEntityGraph, getSession, getSessionFactory, isSessionImplementor, lock
-
Methods inherited from interface org.hibernate.SharedSessionContract
beginTransaction, createNamedStoredProcedureQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, doReturningWork, doWork, getCriteriaBuilder, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTransaction, isConnected, isJoinedToTransaction, isOpen, joinTransaction, setJdbcBatchSize
-
Methods inherited from interface org.hibernate.engine.spi.SharedSessionContractImplementor
accessTransaction, afterScrollOperation, asEventSource, asStatelessSession, autoFlushIfRequired, bestGuessEntityName, bestGuessEntityName, checkOpen, flush, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getPersistenceContext, getPersistenceContextInternal, getSessionIdentifier, getSessionToken, getTypeConfiguration, guessEntityName, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isCriteriaCopyTreeEnabled, isDefaultReadOnly, isEnforcingFetchGraph, isEventSource, isOpenOrWaitingForAutoClose, isStatelessSession, isTransactionInProgress, markForRollbackOnly, setAutoClear, setCacheMode, setCriteriaCopyTreeEnabled, setEnforcingFetchGraph, setHibernateFlushMode, shouldAutoClose
-
-
-
-
Constructor Detail
-
ReactiveSessionImpl
public ReactiveSessionImpl(org.hibernate.internal.SessionFactoryImpl delegate, org.hibernate.internal.SessionCreationOptions options, ReactiveConnection connection)
-
-
Method Detail
-
getSharedContract
public org.hibernate.engine.spi.SessionImplementor getSharedContract()
- Specified by:
getSharedContract
in interfaceReactiveQueryProducer
- Specified by:
getSharedContract
in interfaceReactiveSession
-
getDialect
public org.hibernate.dialect.Dialect getDialect()
- Specified by:
getDialect
in interfaceReactiveQueryProducer
-
createPersistenceContext
protected org.hibernate.engine.internal.StatefulPersistenceContext createPersistenceContext()
- Overrides:
createPersistenceContext
in classorg.hibernate.internal.SessionImpl
-
getReactiveActionQueue
public ReactiveActionQueue getReactiveActionQueue()
- Specified by:
getReactiveActionQueue
in interfaceReactiveSession
-
immediateLoad
public java.lang.Object immediateLoad(java.lang.String entityName, java.lang.Object id) throws org.hibernate.HibernateException
- Specified by:
immediateLoad
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
immediateLoad
in classorg.hibernate.internal.SessionImpl
- Throws:
org.hibernate.HibernateException
-
reactiveImmediateLoad
public java.util.concurrent.CompletionStage<java.lang.Object> reactiveImmediateLoad(java.lang.String entityName, java.lang.Object id) throws org.hibernate.HibernateException
Load the data for the object with the specified id into a newly created object. This is only called when lazily initializing a proxy. Do NOT return a proxy.- Specified by:
reactiveImmediateLoad
in interfaceReactiveSession
- Throws:
org.hibernate.HibernateException
-
reactiveInternalLoad
public java.util.concurrent.CompletionStage<java.lang.Object> reactiveInternalLoad(java.lang.String entityName, java.lang.Object id, boolean eager, boolean nullable)
- Specified by:
reactiveInternalLoad
in interfaceReactiveQueryProducer
-
reactiveFetch
public <T> java.util.concurrent.CompletionStage<T> reactiveFetch(T association, boolean unproxy)
- Specified by:
reactiveFetch
in interfaceReactiveQueryProducer
-
reactiveFetch
public <E,T> java.util.concurrent.CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E,T> field)
- Specified by:
reactiveFetch
in interfaceReactiveSession
-
createReactiveQuery
public <R> ReactiveQuery<R> createReactiveQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery)
- Specified by:
createReactiveQuery
in interfaceReactiveQueryProducer
-
createReactiveQuery
public <R> ReactiveQuery<R> createReactiveQuery(java.lang.String queryString)
- Specified by:
createReactiveQuery
in interfaceReactiveQueryProducer
-
createReactiveQuery
public <R> ReactiveQuery<R> createReactiveQuery(java.lang.String queryString, java.lang.Class<R> expectedResultType)
- Specified by:
createReactiveQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <T> ReactiveNativeQueryImplementor<T> createReactiveNativeQuery(java.lang.String sqlString)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
prepareForQueryExecution
public void prepareForQueryExecution(boolean requiresTxn)
- Specified by:
prepareForQueryExecution
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
prepareForQueryExecution
in classorg.hibernate.internal.AbstractSharedSessionContract
-
createReactiveNativeQuery
public <T> ReactiveNativeQuery<T> createReactiveNativeQuery(java.lang.String sqlString, java.lang.Class<T> resultClass)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String sqlString, java.lang.Class<R> resultClass, java.lang.String tableAlias)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String sqlString, java.lang.String resultSetMappingName)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String sqlString, java.lang.String resultSetMappingName, java.lang.Class<R> resultClass)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createReactiveSelectionQuery(java.lang.String hqlString, java.lang.Class<R> resultType)
- Specified by:
createReactiveSelectionQuery
in interfaceReactiveQueryProducer
-
createReactiveNamedQuery
public <R> ReactiveQueryImplementor<R> createReactiveNamedQuery(java.lang.String name, java.lang.Class<R> resultType)
- Specified by:
createReactiveNamedQuery
in interfaceReactiveQueryProducer
-
createReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createReactiveSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria)
- Specified by:
createReactiveSelectionQuery
in interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(java.lang.String hqlString)
- Specified by:
createReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaUpdate<R> updateQuery)
- Specified by:
createReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaDelete<R> deleteQuery)
- Specified by:
createReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsertSelect<R> insertSelect)
- Specified by:
createReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createNamedReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createNamedReactiveMutationQuery(java.lang.String queryName)
- Specified by:
createNamedReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createNamedReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createNamedReactiveSelectionQuery(java.lang.String queryName)
- Specified by:
createNamedReactiveSelectionQuery
in interfaceReactiveQueryProducer
-
createNamedReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createNamedReactiveSelectionQuery(java.lang.String queryName, java.lang.Class<R> expectedResultType)
- Specified by:
createNamedReactiveSelectionQuery
in interfaceReactiveQueryProducer
-
createNativeReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createNativeReactiveMutationQuery(java.lang.String sqlString)
- Specified by:
createNativeReactiveMutationQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String queryString, AffectedEntities affectedEntities)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String queryString, java.lang.Class<R> resultType, AffectedEntities affectedEntities)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQueryImpl<R> createReactiveNativeQuery(java.lang.String queryString, ResultSetMapping<R> resultSetMapping)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(java.lang.String queryString, ResultSetMapping<R> resultSetMapping, AffectedEntities affectedEntities)
- Specified by:
createReactiveNativeQuery
in interfaceReactiveQueryProducer
-
getResultSetMapping
public <T> ResultSetMapping<T> getResultSetMapping(java.lang.Class<T> resultType, java.lang.String mappingName)
- Specified by:
getResultSetMapping
in interfaceReactiveQueryProducer
-
initializeCollection
@Deprecated public void initializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing)
Deprecated.- Specified by:
initializeCollection
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
initializeCollection
in classorg.hibernate.internal.SessionImpl
-
reactiveInitializeCollection
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveInitializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing)
- Specified by:
reactiveInitializeCollection
in interfaceReactiveSession
-
reactivePersist
public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersist(java.lang.Object entity)
- Specified by:
reactivePersist
in interfaceReactiveSession
-
reactivePersist
public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersist(java.lang.Object object, org.hibernate.event.spi.PersistContext copiedAlready)
- Specified by:
reactivePersist
in interfaceReactiveSession
-
reactivePersistOnFlush
public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersistOnFlush(java.lang.Object entity, org.hibernate.event.spi.PersistContext copiedAlready)
- Specified by:
reactivePersistOnFlush
in interfaceReactiveSession
-
reactiveRemove
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemove(java.lang.Object entity)
- Specified by:
reactiveRemove
in interfaceReactiveSession
-
reactiveRemove
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemove(java.lang.String entityName, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities) throws org.hibernate.HibernateException
- Specified by:
reactiveRemove
in interfaceReactiveSession
- Throws:
org.hibernate.HibernateException
-
reactiveRemove
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemove(java.lang.String entityName, java.lang.Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities)
- Specified by:
reactiveRemove
in interfaceReactiveSession
-
reactiveMerge
public <T> java.util.concurrent.CompletionStage<T> reactiveMerge(T object) throws org.hibernate.HibernateException
- Specified by:
reactiveMerge
in interfaceReactiveSession
- Throws:
org.hibernate.HibernateException
-
reactiveMerge
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveMerge(java.lang.Object object, org.hibernate.event.spi.MergeContext copiedAlready) throws org.hibernate.HibernateException
- Specified by:
reactiveMerge
in interfaceReactiveSession
- Throws:
org.hibernate.HibernateException
-
reactiveFlush
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveFlush()
- Specified by:
reactiveFlush
in interfaceReactiveSession
-
reactiveAutoflush
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveAutoflush()
- Specified by:
reactiveAutoflush
in interfaceReactiveSession
-
reactiveAutoFlushIfRequired
public java.util.concurrent.CompletionStage<java.lang.Boolean> reactiveAutoFlushIfRequired(java.util.Set<java.lang.String> querySpaces)
- Specified by:
reactiveAutoFlushIfRequired
in interfaceReactiveSharedSessionContractImplementor
-
reactiveForceFlush
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveForceFlush(org.hibernate.engine.spi.EntityEntry entry)
- Specified by:
reactiveForceFlush
in interfaceReactiveSession
-
getExceptionConverter
public org.hibernate.engine.spi.ExceptionConverter getExceptionConverter()
- Specified by:
getExceptionConverter
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
getExceptionConverter
in classorg.hibernate.internal.AbstractSharedSessionContract
-
reactiveRefresh
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRefresh(java.lang.Object entity, org.hibernate.LockOptions lockOptions)
- Specified by:
reactiveRefresh
in interfaceReactiveSession
-
reactiveRefresh
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRefresh(java.lang.Object object, org.hibernate.event.spi.RefreshContext refreshedAlready)
- Specified by:
reactiveRefresh
in interfaceReactiveSession
-
reactiveLock
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveLock(java.lang.Object object, org.hibernate.LockOptions lockOptions)
- Specified by:
reactiveLock
in interfaceReactiveSession
-
reactiveGet
public <T> java.util.concurrent.CompletionStage<T> reactiveGet(java.lang.Class<T> entityClass, java.lang.Object id)
- Specified by:
reactiveGet
in interfaceReactiveSession
-
reactiveFind
public <T> java.util.concurrent.CompletionStage<T> reactiveFind(java.lang.Class<T> entityClass, java.lang.Object id, org.hibernate.LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph)
- Specified by:
reactiveFind
in interfaceReactiveSession
-
reactiveFind
public <T> java.util.concurrent.CompletionStage<java.util.List<T>> reactiveFind(java.lang.Class<T> entityClass, java.lang.Object... ids)
- Specified by:
reactiveFind
in interfaceReactiveSession
-
reactiveFind
public <T> java.util.concurrent.CompletionStage<T> reactiveFind(java.lang.Class<T> entityClass, java.util.Map<java.lang.String,java.lang.Object> ids)
- Specified by:
reactiveFind
in interfaceReactiveSession
-
delayedAfterCompletion
public void delayedAfterCompletion()
- Specified by:
delayedAfterCompletion
in interfaceorg.hibernate.loader.internal.LoadAccessContext
- Overrides:
delayedAfterCompletion
in classorg.hibernate.internal.SessionImpl
-
afterOperation
public void afterOperation(boolean success)
- Specified by:
afterOperation
in interfaceorg.hibernate.loader.internal.LoadAccessContext
- Specified by:
afterOperation
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
afterOperation
in classorg.hibernate.internal.SessionImpl
-
checkTransactionNeededForUpdateOperation
public void checkTransactionNeededForUpdateOperation(java.lang.String exceptionMessage)
- Specified by:
checkTransactionNeededForUpdateOperation
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
- Overrides:
checkTransactionNeededForUpdateOperation
in classorg.hibernate.internal.AbstractSharedSessionContract
-
unwrap
public <T> T unwrap(java.lang.Class<T> clazz)
- Specified by:
unwrap
in interfacejakarta.persistence.EntityManager
- Overrides:
unwrap
in classorg.hibernate.internal.SessionImpl
-
getReactiveConnection
public ReactiveConnection getReactiveConnection()
Description copied from interface:ReactiveConnectionSupplier
Obtain theReactiveConnection
that is associated with the current session.- Specified by:
getReactiveConnection
in interfaceReactiveConnectionSupplier
-
close
public void close() throws org.hibernate.HibernateException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacejakarta.persistence.EntityManager
- Specified by:
close
in interfaceorg.hibernate.SharedSessionContract
- Overrides:
close
in classorg.hibernate.internal.SessionImpl
- Throws:
org.hibernate.HibernateException
-
reactiveClose
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveClose()
- Specified by:
reactiveClose
in interfaceReactiveSession
-
getBatchSize
public java.lang.Integer getBatchSize()
- Specified by:
getBatchSize
in interfaceReactiveSession
-
setBatchSize
public void setBatchSize(java.lang.Integer batchSize)
- Specified by:
setBatchSize
in interfaceReactiveSession
-
getEntityClass
public <T> java.lang.Class<T> getEntityClass(T entity)
- Specified by:
getEntityClass
in interfaceReactiveSession
-
getEntityId
public java.lang.Object getEntityId(java.lang.Object entity)
- Specified by:
getEntityId
in interfaceReactiveSession
-
checkOpen
public void checkOpen()
- Specified by:
checkOpen
in interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
-
removeOrphanBeforeUpdates
public void removeOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
- Specified by:
removeOrphanBeforeUpdates
in interfaceorg.hibernate.event.spi.EventSource
- Specified by:
removeOrphanBeforeUpdates
in interfaceorg.hibernate.engine.spi.SessionImplementor
- Overrides:
removeOrphanBeforeUpdates
in classorg.hibernate.internal.SessionImpl
-
reactiveRemoveOrphanBeforeUpdates
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemoveOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
- Specified by:
reactiveRemoveOrphanBeforeUpdates
in interfaceReactiveSession
-
clear
public void clear()
- Specified by:
clear
in interfacejakarta.persistence.EntityManager
- Specified by:
clear
in interfaceReactiveSession
- Specified by:
clear
in interfaceorg.hibernate.Session
- Overrides:
clear
in classorg.hibernate.internal.SessionImpl
-
createEntityGraph
public <T> org.hibernate.graph.spi.RootGraphImplementor<T> createEntityGraph(java.lang.Class<T> entity, java.lang.String name)
- Specified by:
createEntityGraph
in interfaceReactiveQueryProducer
- Specified by:
createEntityGraph
in interfaceorg.hibernate.SharedSessionContract
- Overrides:
createEntityGraph
in classorg.hibernate.internal.AbstractSharedSessionContract
-
getEntityGraph
public <T> org.hibernate.graph.spi.RootGraphImplementor<T> getEntityGraph(java.lang.Class<T> entity, java.lang.String name)
- Specified by:
getEntityGraph
in interfaceReactiveQueryProducer
-
-