Class 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
    An ReactiveSession implemented by extension of the SessionImpl 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.hibernate.engine.jdbc.LobCreationContext

        org.hibernate.engine.jdbc.LobCreationContext.Callback<T extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.hibernate.Session

        org.hibernate.Session.LockRequest
    • Field Summary

      • Fields inherited from class org.hibernate.internal.AbstractSharedSessionContract

        closed, fastSessionServices, waitingForAutoClose
    • 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)  
      <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 the ReactiveConnection 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)
      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, createEntityGraph, createEntityGraph, 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, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getEntityName, getEntityPersister, getEntityUsingInterceptor, getIdentifier, getLoadQueryInfluencers, getLobHelper, getLockMode, getMetamodel, getPersistenceContext, getPersistenceContextInternal, getProperties, getReference, getReference, getReference, getSession, getSessionFactory, getStatistics, guessEntityName, instantiate, instantiate, internalLoad, isAutoCloseSessionEnabled, isDefaultReadOnly, isDirty, isEnforcingFetchGraph, isEventSource, isFetchProfileEnabled, isOpen, isReadOnly, 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, setFlushMode, setProperty, setReadOnly, shouldAutoClose, shouldCloseJdbcCoordinatorOnClose, startTransactionBoundary, toString, update, update
      • Methods inherited from class org.hibernate.internal.AbstractSharedSessionContract

        accessTransaction, beginTransaction, buildNamedQuery, buildNamedQuery, checkOpen, checkTransactionSynchStatus, createMutationQuery, createMutationQuery, createMutationQuery, createMutationQuery, createNamedMutationQuery, createNamedQuery, createNamedQuery, createNamedSelectionQuery, createNamedSelectionQuery, createNativeMutationQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, doReturningWork, doWork, execute, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getCriteriaBuilder, getCurrentTransaction, getEntityNameResolver, getEventListenerManager, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcCoordinator, getJdbcServices, getJdbcSessionContext, getJdbcTimeZone, getLobCreator, getNamedNativeQuery, getNamedNativeQuery, getNamedProcedureCall, getNamedQuery, getPreferredSqlTypeCodeForBoolean, getSessionIdentifier, getSessionToken, getTenantIdentifier, getTransaction, getTransactionCoordinator, getTransactionStartTimestamp, 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.engine.jdbc.LobCreationContext

        execute, fromContext
      • 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.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, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, 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, setFlushMode, setHibernateFlushMode, setReadOnly, 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, getTransactionStartTimestamp, getTypeConfiguration, guessEntityName, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isCriteriaCopyTreeEnabled, isDefaultReadOnly, isEnforcingFetchGraph, isEventSource, isOpenOrWaitingForAutoClose, isStatelessSession, isTransactionInProgress, markForRollbackOnly, setAutoClear, setCacheMode, setCriteriaCopyTreeEnabled, setEnforcingFetchGraph, setHibernateFlushMode, shouldAutoClose
      • Methods inherited from interface org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options

        shouldAutoJoinTransaction
      • Methods inherited from interface org.hibernate.type.descriptor.WrapperOptions

        getJdbcTimeZone, getLobCreator, getPreferredSqlTypeCodeForBoolean, useStreamForLobBinding
    • Constructor Detail

      • ReactiveSessionImpl

        public ReactiveSessionImpl​(org.hibernate.internal.SessionFactoryImpl delegate,
                                   org.hibernate.internal.SessionCreationOptions options,
                                   ReactiveConnection connection)
    • Method Detail

      • createPersistenceContext

        protected org.hibernate.engine.internal.StatefulPersistenceContext createPersistenceContext()
        Overrides:
        createPersistenceContext in class org.hibernate.internal.SessionImpl
      • immediateLoad

        public java.lang.Object immediateLoad​(java.lang.String entityName,
                                              java.lang.Object id)
                                       throws org.hibernate.HibernateException
        Specified by:
        immediateLoad in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        immediateLoad in class org.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 interface ReactiveSession
        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 interface ReactiveQueryProducer
      • reactiveFetch

        public <T> java.util.concurrent.CompletionStage<T> reactiveFetch​(T association,
                                                                         boolean unproxy)
        Specified by:
        reactiveFetch in interface ReactiveQueryProducer
      • reactiveFetch

        public <E,​T> java.util.concurrent.CompletionStage<T> reactiveFetch​(E entity,
                                                                                 jakarta.persistence.metamodel.Attribute<E,​T> field)
        Specified by:
        reactiveFetch in interface ReactiveSession
      • prepareForQueryExecution

        public void prepareForQueryExecution​(boolean requiresTxn)
        Specified by:
        prepareForQueryExecution in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        prepareForQueryExecution in class org.hibernate.internal.AbstractSharedSessionContract
      • initializeCollection

        @Deprecated
        public void initializeCollection​(org.hibernate.collection.spi.PersistentCollection<?> collection,
                                         boolean writing)
        Specified by:
        initializeCollection in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        initializeCollection in class org.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 interface ReactiveSession
      • reactivePersist

        public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersist​(java.lang.Object entity)
        Specified by:
        reactivePersist in interface ReactiveSession
      • reactivePersist

        public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersist​(java.lang.Object object,
                                                                                    org.hibernate.event.spi.PersistContext copiedAlready)
        Specified by:
        reactivePersist in interface ReactiveSession
      • reactivePersistOnFlush

        public java.util.concurrent.CompletionStage<java.lang.Void> reactivePersistOnFlush​(java.lang.Object entity,
                                                                                           org.hibernate.event.spi.PersistContext copiedAlready)
        Specified by:
        reactivePersistOnFlush in interface ReactiveSession
      • reactiveRemove

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemove​(java.lang.Object entity)
        Specified by:
        reactiveRemove in interface ReactiveSession
      • 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 interface ReactiveSession
        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 interface ReactiveSession
      • reactiveMerge

        public <T> java.util.concurrent.CompletionStage<T> reactiveMerge​(T object)
                                                                  throws org.hibernate.HibernateException
        Specified by:
        reactiveMerge in interface ReactiveSession
        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 interface ReactiveSession
        Throws:
        org.hibernate.HibernateException
      • reactiveFlush

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveFlush()
        Specified by:
        reactiveFlush in interface ReactiveSession
      • reactiveAutoflush

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveAutoflush()
        Specified by:
        reactiveAutoflush in interface ReactiveSession
      • reactiveForceFlush

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveForceFlush​(org.hibernate.engine.spi.EntityEntry entry)
        Specified by:
        reactiveForceFlush in interface ReactiveSession
      • getExceptionConverter

        public org.hibernate.engine.spi.ExceptionConverter getExceptionConverter()
        Specified by:
        getExceptionConverter in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        getExceptionConverter in class org.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 interface ReactiveSession
      • reactiveRefresh

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRefresh​(java.lang.Object object,
                                                                                    org.hibernate.event.spi.RefreshContext refreshedAlready)
        Specified by:
        reactiveRefresh in interface ReactiveSession
      • reactiveLock

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveLock​(java.lang.Object object,
                                                                                 org.hibernate.LockOptions lockOptions)
        Specified by:
        reactiveLock in interface ReactiveSession
      • reactiveGet

        public <T> java.util.concurrent.CompletionStage<T> reactiveGet​(java.lang.Class<T> entityClass,
                                                                       java.lang.Object id)
        Specified by:
        reactiveGet in interface ReactiveSession
      • 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 interface ReactiveSession
      • 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 interface ReactiveSession
      • 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 interface ReactiveSession
      • delayedAfterCompletion

        public void delayedAfterCompletion()
        Specified by:
        delayedAfterCompletion in interface org.hibernate.loader.internal.LoadAccessContext
        Overrides:
        delayedAfterCompletion in class org.hibernate.internal.SessionImpl
      • afterOperation

        public void afterOperation​(boolean success)
        Specified by:
        afterOperation in interface org.hibernate.loader.internal.LoadAccessContext
        Specified by:
        afterOperation in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        afterOperation in class org.hibernate.internal.SessionImpl
      • checkTransactionNeededForUpdateOperation

        public void checkTransactionNeededForUpdateOperation​(java.lang.String exceptionMessage)
        Specified by:
        checkTransactionNeededForUpdateOperation in interface org.hibernate.engine.spi.SharedSessionContractImplementor
        Overrides:
        checkTransactionNeededForUpdateOperation in class org.hibernate.internal.AbstractSharedSessionContract
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
        Specified by:
        unwrap in interface jakarta.persistence.EntityManager
        Overrides:
        unwrap in class org.hibernate.internal.SessionImpl
      • close

        public void close()
                   throws org.hibernate.HibernateException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface jakarta.persistence.EntityManager
        Specified by:
        close in interface org.hibernate.SharedSessionContract
        Overrides:
        close in class org.hibernate.internal.SessionImpl
        Throws:
        org.hibernate.HibernateException
      • reactiveClose

        public java.util.concurrent.CompletionStage<java.lang.Void> reactiveClose()
        Specified by:
        reactiveClose in interface ReactiveSession
      • getEntityId

        public java.lang.Object getEntityId​(java.lang.Object entity)
        Specified by:
        getEntityId in interface ReactiveSession
      • checkOpen

        public void checkOpen()
        Specified by:
        checkOpen in interface org.hibernate.engine.spi.SharedSessionContractImplementor
      • removeOrphanBeforeUpdates

        public void removeOrphanBeforeUpdates​(java.lang.String entityName,
                                              java.lang.Object child)
        Specified by:
        removeOrphanBeforeUpdates in interface org.hibernate.event.spi.EventSource
        Specified by:
        removeOrphanBeforeUpdates in interface org.hibernate.engine.spi.SessionImplementor
        Overrides:
        removeOrphanBeforeUpdates in class org.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 interface ReactiveSession
      • clear

        public void clear()
        Specified by:
        clear in interface jakarta.persistence.EntityManager
        Specified by:
        clear in interface ReactiveSession
        Specified by:
        clear in interface org.hibernate.Session
        Overrides:
        clear in class org.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 interface ReactiveQueryProducer
      • getEntityGraph

        public <T> org.hibernate.graph.spi.RootGraphImplementor<T> getEntityGraph​(java.lang.Class<T> entity,
                                                                                  java.lang.String name)
        Specified by:
        getEntityGraph in interface ReactiveQueryProducer