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,Serializable,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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.engine.jdbc.LobCreationContext
org.hibernate.engine.jdbc.LobCreationContext.Callback<T extends Object> -
Field Summary
Fields inherited from class org.hibernate.internal.AbstractSharedSessionContract
closed, waitingForAutoClose -
Constructor Summary
ConstructorsConstructorDescriptionReactiveSessionImpl(org.hibernate.internal.SessionFactoryImpl delegate, org.hibernate.internal.SessionCreationOptions options, ReactiveConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterOperation(boolean success) voidvoidcheckTransactionNeededForUpdateOperation(String exceptionMessage) voidclear()voidclose()<T> org.hibernate.graph.spi.RootGraphImplementor<T>createEntityGraph(Class<T> entity, String name) <R> ReactiveMutationQuery<R>createNamedReactiveMutationQuery(String queryName) <R> ReactiveSelectionQuery<R>createNamedReactiveSelectionQuery(String queryName) <R> ReactiveSelectionQuery<R>createNamedReactiveSelectionQuery(String queryName, Class<R> expectedResultType) <R> ReactiveMutationQuery<R>createNativeReactiveMutationQuery(String sqlString) protected org.hibernate.engine.spi.PersistenceContextprotected <T> ReactiveQueryImplementor<T>createReactiveCriteriaQuery(org.hibernate.query.sqm.tree.SqmStatement<T> criteria, Class<T> resultType) <R> ReactiveMutationQuery<R>createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaDelete<R> deleteQuery) <R> ReactiveMutationQuery<R>createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaUpdate<R> updateQuery) <R> ReactiveMutationQuery<R>createReactiveMutationQuery(String hqlString) <R> ReactiveMutationQuery<R>createReactiveMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsert<R> insert) <R> ReactiveQueryImplementor<R><R> ReactiveQueryImplementor<R>createReactiveNamedQuery(String name, Class<R> resultType) createReactiveNativeQuery(String sqlString) <R> ReactiveNativeQuery<R>createReactiveNativeQuery(String sqlString, Class<R> resultClass, String tableAlias) Deprecated, for removal: This API element is subject to removal in a future version.<R> ReactiveNativeQuery<R>createReactiveNativeQuery(String queryString, Class<R> resultType, AffectedEntities affectedEntities) <T> ReactiveNativeQuery<T>createReactiveNativeQuery(String sqlString, Class<T> resultClass) <R> ReactiveNativeQuery<R>createReactiveNativeQuery(String sqlString, String resultSetMappingName) Deprecated, for removal: This API element is subject to removal in a future version.<R> ReactiveNativeQuery<R>createReactiveNativeQuery(String sqlString, String resultSetMappingName, Class<R> resultClass) Deprecated, for removal: This API element is subject to removal in a future version.<R> ReactiveNativeQuery<R>createReactiveNativeQuery(String queryString, AffectedEntities affectedEntities) <R> ReactiveNativeQueryImpl<R>createReactiveNativeQuery(String queryString, ResultSetMapping<R> resultSetMapping) <R> ReactiveNativeQuery<R>createReactiveNativeQuery(String queryString, ResultSetMapping<R> resultSetMapping, AffectedEntities affectedEntities) protected <T> ReactiveNativeQueryImpl<T>createReactiveNativeQueryImplementor(Class<T> resultType, org.hibernate.query.sql.spi.NamedNativeQueryMemento<?> memento) <R> ReactiveQuery<R>createReactiveQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery) <R> ReactiveQuery<R>createReactiveQuery(jakarta.persistence.TypedQueryReference<R> typedQueryReference) <R> ReactiveQuery<R>createReactiveQuery(String queryString) <R> ReactiveQuery<R>createReactiveQuery(String queryString, Class<R> expectedResultType) <R> ReactiveSelectionQuery<R>createReactiveSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria) <R> ReactiveSelectionQuery<R>createReactiveSelectionQuery(String hqlString, Class<R> resultType) protected <T> ReactiveSqmQueryImpl<T>createReactiveSqmQueryImplementor(Class<T> resultType, org.hibernate.query.sqm.spi.NamedSqmQueryMemento<?> memento) voidorg.hibernate.dialect.Dialect<T> Class<T>getEntityClass(T entity) <T> org.hibernate.graph.spi.RootGraphImplementor<T>getEntityGraph(Class<T> entity, String name) getEntityId(Object entity) org.hibernate.engine.spi.ExceptionConverterObtain theReactiveConnectionthat is associated with the current session.<T> ResultSetMapping<T>getResultSetMapping(Class<T> resultType, String mappingName) org.hibernate.engine.spi.SessionImplementorimmediateLoad(String entityName, Object id) voidinitializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing) Deprecated.load(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) voidprepareForQueryExecution(boolean requiresTxn) reactiveAutoFlushIfRequired(Set<String> querySpaces) <E,T> CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E, T> field) <T> CompletionStage<T>reactiveFetch(T association, boolean unproxy) <T> CompletionStage<List<T>>reactiveFind(Class<T> entityClass, Object... ids) <T> CompletionStage<T>reactiveFind(Class<T> entityClass, Object id, org.hibernate.LockMode lockMode, jakarta.persistence.EntityGraph<T> fetchGraph) <T> CompletionStage<T>reactiveFind(Class<T> entityClass, Object id, org.hibernate.LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph) <T> CompletionStage<T>reactiveFind(Class<T> entityClass, Map<String, Object> ids) reactiveForceFlush(org.hibernate.engine.spi.EntityEntry entry) <T> CompletionStage<T>reactiveGet(Class<T> entityClass, Object id) reactiveImmediateLoad(String entityName, Object id) Load the data for the object with the specified id into a newly created object.reactiveInitializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing) reactiveInternalLoad(String entityName, Object id, boolean eager, boolean nullable) reactiveLoad(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) reactiveLock(Object entity, org.hibernate.LockMode lockMode) reactiveLock(Object object, org.hibernate.LockOptions lockOptions) reactiveLock(String entityName, Object object, org.hibernate.LockOptions lockOptions) reactiveMerge(Object object, org.hibernate.event.spi.MergeContext copiedAlready) <T> CompletionStage<T>reactiveMerge(T object) reactivePersist(Object entity) reactivePersist(Object object, org.hibernate.event.spi.PersistContext copiedAlready) reactivePersist(String entityName, Object entity) reactivePersistOnFlush(Object entity, org.hibernate.event.spi.PersistContext copiedAlready) reactiveRefresh(Object object, org.hibernate.event.spi.RefreshContext refreshedAlready) reactiveRefresh(Object entity, org.hibernate.LockMode lockMode) reactiveRefresh(Object entity, org.hibernate.LockOptions lockOptions) reactiveRemove(Object entity) reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities) reactiveRemoveOrphanBeforeUpdates(String entityName, Object child) voidremoveOrphanBeforeUpdates(String entityName, Object child) voidsetBatchSize(Integer batchSize) <T> TMethods inherited from class org.hibernate.internal.SessionImpl
addEventListeners, addSharedSessionTransactionObserver, afterScrollOperation, afterTransactionBegin, afterTransactionCompletion, applyLockOptionsHint, applyQuerySettingsAndHints, applyQuerySettingsAndHints, asEventSource, autoFlushIfRequired, autoFlushIfRequired, autoPreFlush, beforeTransactionCompletion, bestGuessEntityName, bestGuessEntityName, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, checkNoUnresolvedActionsAfterOperation, checkNoUnresolvedActionsBeforeOperation, checkOpenOrWaitingForAutoClose, checkSessionFactoryOpen, checkTransactionNeededForLock, cleanupOnClose, closeWithoutOpenChecks, contains, contains, createActionQueue, createNamedStoredProcedureQuery, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, delete, detach, determineAppropriateLocalCacheMode, disableFetchProfile, enableFetchProfile, evict, find, find, find, find, find, find, find, find, findMultiple, findMultiple, flush, flushBeforeTransactionCompletion, forceFlush, forceFlush, get, get, get, get, get, get, getActionQueue, getCacheRetrieveMode, getCacheStoreMode, getContextEntityIdentifier, getCurrentLockMode, getDelegate, getEntityManagerFactory, getEntityName, getEntityPersister, getEntityUsingInterceptor, getFetchBatchSize, getFlushMode, getHibernateFlushMode, getIdentifier, getLoadQueryInfluencers, getLobHelper, getLockMode, getManagedEntities, getManagedEntities, getManagedEntities, getManagedEntities, getMetamodel, getPersistenceContext, getPersistenceContextInternal, getProperties, getReadOnlyFromLoadQueryInfluencers, getReference, getReference, getReference, getSession, getStatistics, guessEntityName, instantiate, instantiate, internalLoad, internalLoadType, isAutoCloseSessionEnabled, isDefaultReadOnly, isDirty, isEventSource, isFetchProfileEnabled, isIdentifierRollbackEnabled, isOpen, isReadOnly, isSubselectFetchingEnabled, load, loadFromSecondLevelCache, lock, lock, lock, lock, lock, lock, lock, logIgnoringEntityNotFound, makeLoadEvent, makeLoadEvent, makePostLoadEvent, merge, merge, merge, merge, persist, persist, persist, persistOnFlush, pulseTransactionCoordinator, readOnlyHint, refresh, refresh, refresh, refresh, refresh, refresh, refresh, registerProcess, releaseLoadEvent, releasePostLoadEvent, remove, removeSharedSessionTransactionObserver, replicate, replicate, sessionWithOptions, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setFetchBatchSize, setFlushMode, setHibernateFlushMode, setProperty, setReadOnly, setSubselectFetchingEnabled, shouldAutoClose, shouldCloseJdbcCoordinatorOnClose, startTransactionBoundary, toStringMethods inherited from class org.hibernate.internal.AbstractSharedSessionContract
accessTransaction, afterObtainConnection, beforeReleaseConnection, beginTransaction, buildNamedQuery, checkMutationQuery, checkOpen, checkResultType, checkSelectionQuery, checkTransactionSynchStatus, createCriteriaQuery, createEntityGraph, createEntityGraph, createMutationQuery, createMutationQuery, createMutationQuery, createMutationQuery, createNamedMutationQuery, createNamedQuery, createNamedQuery, createNamedSelectionQuery, createNamedSelectionQuery, createNativeMutationQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQueryImplementor, createNativeQueryImplementor, createNativeQueryImplementor, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, createSqmQueryImplementor, createSqmQueryImplementor, createSqmQueryImplementor, disableFilter, doReturningWork, doWork, enableFilter, execute, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getCriteriaBuilder, getCurrentTransaction, getEnabledFilter, getEntityGraph, getEntityGraphs, getEntityNameResolver, getEventListenerManager, getEventMonitor, getFactory, getInterceptor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcCoordinator, getJdbcServices, getJdbcSessionContext, getJdbcTimeZone, getJsonFormatMapper, getLobCreator, getNamedNativeQuery, getNamedNativeQuery, getNamedProcedureCall, getNamedQuery, getNativeJdbcParametersIgnored, getPreferredSqlTypeCodeForBoolean, getResultSetMappingMemento, getSessionAssociationMarkers, getSessionFactory, getSessionIdentifier, getSessionToken, getTenantIdentifier, getTenantIdentifierValue, getTransaction, getTransactionCoordinator, getTypeConfiguration, getXmlFormatMapper, interpretHql, isClosed, isConnected, isCriteriaCopyTreeEnabled, isCriteriaPlanCacheEnabled, isJoinedToTransaction, isOpenOrWaitingForAutoClose, isTransactionInProgress, joinTransaction, markForRollbackOnly, prepareForAutoClose, requireCollectionPersister, requireEntityPersister, requireEntityPersister, setCacheMode, setClosed, setCriteriaCopyTreeEnabled, setCriteriaPlanCacheEnabled, setJdbcBatchSize, setNativeJdbcParametersIgnored, setUpMultitenancy, shouldAutoJoinTransaction, useStreamForLobBindingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.EntityManager
contains, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, find, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, lock, refresh, refresh, refresh, refreshMethods inherited from interface org.hibernate.event.spi.EventSource
delete, forceFlush, forceFlush, getActionQueue, instantiate, merge, persist, persistOnFlush, refreshMethods inherited from interface org.hibernate.resource.jdbc.spi.JdbcSessionOwner
afterObtainConnection, afterTransactionBegin, afterTransactionCompletion, beforeReleaseConnection, beforeTransactionCompletion, flushBeforeTransactionCompletion, getEventManager, getEventMonitor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcSessionContext, getSqlExceptionHelper, getTransactionCoordinator, startTransactionBoundaryMethods inherited from interface org.hibernate.engine.jdbc.LobCreationContext
execute, fromContextMethods inherited from interface org.hibernate.query.QueryProducer
createMutationQuery, createNamedSelectionQuery, createNamedSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQueryMethods 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, createQuery, getCacheMode, getNamedNativeQuery, getNamedNativeQuery, getNamedQueryMethods inherited from interface org.hibernate.reactive.session.ReactiveQueryProducer
createEntityGraph, getFactoryMethods 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, reactiveFind, setCacheMode, setDefaultReadOnly, setFetchBatchSize, setHibernateFlushMode, setReadOnly, setSubselectFetchingEnabledMethods inherited from interface org.hibernate.reactive.engine.spi.ReactiveSharedSessionContractImplementor
getPersistenceContextMethods inherited from interface org.hibernate.Session
addEventListeners, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, contains, createEntityGraph, createEntityGraph, createNamedQuery, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, detach, disableFetchProfile, enableFetchProfile, evict, find, find, find, findMultiple, findMultiple, flush, get, get, get, get, get, get, getCacheMode, getCacheRetrieveMode, getCacheStoreMode, getCurrentLockMode, getEntityGraph, getEntityGraphs, getEntityName, getFetchBatchSize, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getManagedEntities, getManagedEntities, getManagedEntities, getManagedEntities, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, isSubselectFetchingEnabled, load, lock, lock, lock, merge, merge, merge, persist, persist, refresh, refresh, remove, replicate, replicate, sessionWithOptions, setCacheMode, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setFetchBatchSize, setFlushMode, setHibernateFlushMode, setProperty, setReadOnly, setSubselectFetchingEnabledMethods inherited from interface org.hibernate.engine.spi.SessionImplementor
callWithConnection, createQuery, getSession, getSessionFactory, runWithConnectionMethods inherited from interface org.hibernate.SharedSessionContract
beginTransaction, createNamedStoredProcedureQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, disableFilter, doReturningWork, doWork, enableFilter, fromTransaction, getCriteriaBuilder, getEnabledFilter, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTenantIdentifierValue, getTransaction, inTransaction, isConnected, isJoinedToTransaction, isOpen, joinTransaction, setJdbcBatchSizeMethods inherited from interface org.hibernate.engine.spi.SharedSessionContractImplementor
accessTransaction, afterScrollOperation, asEventSource, asSessionImplementor, asStatelessSession, autoFlushIfRequired, autoFlushIfRequired, autoPreFlush, bestGuessEntityName, bestGuessEntityName, checkOpen, createEntityGraph, createEntityGraph, flush, generateEntityKey, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getEntityGraph, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getFactory, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getNativeJdbcParametersIgnored, getPersistenceContext, getPersistenceContextInternal, getSessionAssociationMarkers, getSessionFactory, getSessionIdentifier, getSessionToken, getTypeConfiguration, guessEntityName, instantiate, internalLoad, isClosed, isCriteriaCopyTreeEnabled, isCriteriaPlanCacheEnabled, isDefaultReadOnly, isEventSource, isIdentifierRollbackEnabled, isOpenOrWaitingForAutoClose, isSessionImplementor, isStatelessSession, isTransactionInProgress, loadFromSecondLevelCache, lock, markForRollbackOnly, registerProcess, setCriteriaCopyTreeEnabled, setCriteriaPlanCacheEnabled, setNativeJdbcParametersIgnoredMethods inherited from interface org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options
shouldAutoJoinTransactionMethods inherited from interface org.hibernate.type.descriptor.WrapperOptions
getJdbcTimeZone, getJsonFormatMapper, getLobCreator, getPreferredSqlTypeCodeForBoolean, getXmlFormatMapper, useStreamForLobBinding
-
Constructor Details
-
ReactiveSessionImpl
public ReactiveSessionImpl(org.hibernate.internal.SessionFactoryImpl delegate, org.hibernate.internal.SessionCreationOptions options, ReactiveConnection connection)
-
-
Method Details
-
getDialect
public org.hibernate.dialect.Dialect getDialect()- Specified by:
getDialectin interfaceReactiveQueryProducer- Specified by:
getDialectin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Specified by:
getDialectin interfaceorg.hibernate.type.descriptor.WrapperOptions- Overrides:
getDialectin classorg.hibernate.internal.AbstractSharedSessionContract
-
createPersistenceContext
protected org.hibernate.engine.spi.PersistenceContext createPersistenceContext()- Overrides:
createPersistenceContextin classorg.hibernate.internal.SessionImpl
-
getReactiveActionQueue
- Specified by:
getReactiveActionQueuein interfaceReactiveSession
-
immediateLoad
- Specified by:
immediateLoadin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
immediateLoadin classorg.hibernate.internal.SessionImpl- Throws:
org.hibernate.HibernateException
-
reactiveImmediateLoad
public CompletionStage<Object> reactiveImmediateLoad(String entityName, 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:
reactiveImmediateLoadin interfaceReactiveSharedSessionContractImplementor- Throws:
org.hibernate.HibernateException
-
reactiveInternalLoad
public CompletionStage<Object> reactiveInternalLoad(String entityName, Object id, boolean eager, boolean nullable) - Specified by:
reactiveInternalLoadin interfaceReactiveQueryProducer
-
load
public Object load(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) - Specified by:
loadin interfaceorg.hibernate.loader.internal.LoadAccessContext- Overrides:
loadin classorg.hibernate.internal.SessionImpl
-
reactiveLoad
public CompletionStage<Object> reactiveLoad(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) - Specified by:
reactiveLoadin interfaceReactiveSession- See Also:
-
SessionImpl.load(LoadEventListener.LoadType, Object, String, LockOptions, Boolean)
-
reactiveFetch
- Specified by:
reactiveFetchin interfaceReactiveQueryProducer
-
reactiveFetch
public <E,T> CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E, T> field) - Specified by:
reactiveFetchin interfaceReactiveSession
-
createReactiveQuery
public <R> ReactiveQuery<R> createReactiveQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteriaQuery) - Specified by:
createReactiveQueryin interfaceReactiveQueryProducer
-
createReactiveCriteriaQuery
protected <T> ReactiveQueryImplementor<T> createReactiveCriteriaQuery(org.hibernate.query.sqm.tree.SqmStatement<T> criteria, Class<T> resultType) -
createReactiveQuery
public <R> ReactiveQuery<R> createReactiveQuery(jakarta.persistence.TypedQueryReference<R> typedQueryReference) - Specified by:
createReactiveQueryin interfaceReactiveQueryProducer
-
createReactiveQuery
- Specified by:
createReactiveQueryin interfaceReactiveQueryProducer
-
createReactiveQuery
- Specified by:
createReactiveQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
- Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
prepareForQueryExecution
public void prepareForQueryExecution(boolean requiresTxn) - Specified by:
prepareForQueryExecutionin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
prepareForQueryExecutionin classorg.hibernate.internal.AbstractSharedSessionContract
-
createReactiveNativeQuery
- Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
@Deprecated(forRemoval=true) public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String sqlString, Class<R> resultClass, String tableAlias) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
@Deprecated(forRemoval=true) public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String sqlString, String resultSetMappingName) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
@Deprecated(forRemoval=true) public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String sqlString, String resultSetMappingName, Class<R> resultClass) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createReactiveSelectionQuery(String hqlString, Class<R> resultType) - Specified by:
createReactiveSelectionQueryin interfaceReactiveQueryProducer
-
createReactiveNamedQuery
- Specified by:
createReactiveNamedQueryin interfaceReactiveQueryProducer
-
createReactiveNamedQuery
- Specified by:
createReactiveNamedQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQueryImplementor
protected <T> ReactiveNativeQueryImpl<T> createReactiveNativeQueryImplementor(Class<T> resultType, org.hibernate.query.sql.spi.NamedNativeQueryMemento<?> memento) -
createReactiveSqmQueryImplementor
protected <T> ReactiveSqmQueryImpl<T> createReactiveSqmQueryImplementor(Class<T> resultType, org.hibernate.query.sqm.spi.NamedSqmQueryMemento<?> memento) -
createReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createReactiveSelectionQuery(jakarta.persistence.criteria.CriteriaQuery<R> criteria) - Specified by:
createReactiveSelectionQueryin interfaceReactiveQueryProducer
-
createReactiveMutationQuery
- Specified by:
createReactiveMutationQueryin interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaUpdate<R> updateQuery) - Specified by:
createReactiveMutationQueryin interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(jakarta.persistence.criteria.CriteriaDelete<R> deleteQuery) - Specified by:
createReactiveMutationQueryin interfaceReactiveQueryProducer
-
createReactiveMutationQuery
public <R> ReactiveMutationQuery<R> createReactiveMutationQuery(org.hibernate.query.criteria.JpaCriteriaInsert<R> insert) - Specified by:
createReactiveMutationQueryin interfaceReactiveQueryProducer
-
createNamedReactiveMutationQuery
- Specified by:
createNamedReactiveMutationQueryin interfaceReactiveQueryProducer
-
createNamedReactiveSelectionQuery
- Specified by:
createNamedReactiveSelectionQueryin interfaceReactiveQueryProducer
-
createNamedReactiveSelectionQuery
public <R> ReactiveSelectionQuery<R> createNamedReactiveSelectionQuery(String queryName, Class<R> expectedResultType) - Specified by:
createNamedReactiveSelectionQueryin interfaceReactiveQueryProducer
-
createNativeReactiveMutationQuery
- Specified by:
createNativeReactiveMutationQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String queryString, AffectedEntities affectedEntities) - Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String queryString, Class<R> resultType, AffectedEntities affectedEntities) - Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQueryImpl<R> createReactiveNativeQuery(String queryString, ResultSetMapping<R> resultSetMapping) - Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
createReactiveNativeQuery
public <R> ReactiveNativeQuery<R> createReactiveNativeQuery(String queryString, ResultSetMapping<R> resultSetMapping, AffectedEntities affectedEntities) - Specified by:
createReactiveNativeQueryin interfaceReactiveQueryProducer
-
getResultSetMapping
- Specified by:
getResultSetMappingin interfaceReactiveQueryProducer
-
initializeCollection
@Deprecated public void initializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing) Deprecated.- Specified by:
initializeCollectionin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
initializeCollectionin classorg.hibernate.internal.SessionImpl
-
reactiveInitializeCollection
public CompletionStage<Void> reactiveInitializeCollection(org.hibernate.collection.spi.PersistentCollection<?> collection, boolean writing) - Specified by:
reactiveInitializeCollectionin interfaceReactiveSharedSessionContractImplementor
-
reactivePersist
- Specified by:
reactivePersistin interfaceReactiveSession
-
reactivePersist
- Specified by:
reactivePersistin interfaceReactiveSession
-
reactivePersist
public CompletionStage<Void> reactivePersist(Object object, org.hibernate.event.spi.PersistContext copiedAlready) - Specified by:
reactivePersistin interfaceReactiveSession
-
reactivePersistOnFlush
public CompletionStage<Void> reactivePersistOnFlush(Object entity, org.hibernate.event.spi.PersistContext copiedAlready) - Specified by:
reactivePersistOnFlushin interfaceReactiveSession
-
reactiveRemove
- Specified by:
reactiveRemovein interfaceReactiveSession
-
reactiveRemove
public CompletionStage<Void> reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities) - Specified by:
reactiveRemovein interfaceReactiveSession
-
reactiveMerge
- Specified by:
reactiveMergein interfaceReactiveSession- Throws:
org.hibernate.HibernateException
-
reactiveMerge
public CompletionStage<Void> reactiveMerge(Object object, org.hibernate.event.spi.MergeContext copiedAlready) throws org.hibernate.HibernateException - Specified by:
reactiveMergein interfaceReactiveSession- Throws:
org.hibernate.HibernateException
-
reactiveFlush
- Specified by:
reactiveFlushin interfaceReactiveSession
-
reactiveAutoflush
- Specified by:
reactiveAutoflushin interfaceReactiveSession
-
reactiveAutoFlushIfRequired
- Specified by:
reactiveAutoFlushIfRequiredin interfaceReactiveSharedSessionContractImplementor
-
reactiveForceFlush
- Specified by:
reactiveForceFlushin interfaceReactiveSession
-
getExceptionConverter
public org.hibernate.engine.spi.ExceptionConverter getExceptionConverter()- Specified by:
getExceptionConverterin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
getExceptionConverterin classorg.hibernate.internal.AbstractSharedSessionContract
-
reactiveRefresh
- Specified by:
reactiveRefreshin interfaceReactiveSession
-
reactiveRefresh
- Specified by:
reactiveRefreshin interfaceReactiveSession
-
reactiveRefresh
public CompletionStage<Void> reactiveRefresh(Object object, org.hibernate.event.spi.RefreshContext refreshedAlready) - Specified by:
reactiveRefreshin interfaceReactiveSession
-
reactiveLock
- Specified by:
reactiveLockin interfaceReactiveSession
-
reactiveLock
- Specified by:
reactiveLockin interfaceReactiveSession
-
reactiveLock
public CompletionStage<Void> reactiveLock(String entityName, Object object, org.hibernate.LockOptions lockOptions) - Specified by:
reactiveLockin interfaceReactiveSession
-
reactiveGet
- Specified by:
reactiveGetin interfaceReactiveSession
-
reactiveFind
public <T> CompletionStage<T> reactiveFind(Class<T> entityClass, Object id, org.hibernate.LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph) - Specified by:
reactiveFindin interfaceReactiveSession
-
reactiveFind
public <T> CompletionStage<T> reactiveFind(Class<T> entityClass, Object id, org.hibernate.LockMode lockMode, jakarta.persistence.EntityGraph<T> fetchGraph) - Specified by:
reactiveFindin interfaceReactiveSession
-
reactiveFind
- Specified by:
reactiveFindin interfaceReactiveSession
-
reactiveFind
- Specified by:
reactiveFindin interfaceReactiveSession
-
delayedAfterCompletion
public void delayedAfterCompletion()- Specified by:
delayedAfterCompletionin interfaceorg.hibernate.loader.internal.LoadAccessContext- Overrides:
delayedAfterCompletionin classorg.hibernate.internal.SessionImpl
-
afterOperation
public void afterOperation(boolean success) - Specified by:
afterOperationin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
afterOperationin classorg.hibernate.internal.SessionImpl
-
checkTransactionNeededForUpdateOperation
- Specified by:
checkTransactionNeededForUpdateOperationin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor- Overrides:
checkTransactionNeededForUpdateOperationin classorg.hibernate.internal.AbstractSharedSessionContract
-
unwrap
- Specified by:
unwrapin interfacejakarta.persistence.EntityManager- Specified by:
unwrapin interfaceorg.hibernate.Session- Specified by:
unwrapin interfaceorg.hibernate.SharedSessionContract- Overrides:
unwrapin classorg.hibernate.internal.SessionImpl
-
getReactiveConnection
Description copied from interface:ReactiveConnectionSupplierObtain theReactiveConnectionthat is associated with the current session.- Specified by:
getReactiveConnectionin interfaceReactiveConnectionSupplier
-
close
public void close() throws org.hibernate.HibernateException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacejakarta.persistence.EntityManager- Specified by:
closein interfaceorg.hibernate.SharedSessionContract- Overrides:
closein classorg.hibernate.internal.SessionImpl- Throws:
org.hibernate.HibernateException
-
reactiveClose
- Specified by:
reactiveClosein interfaceReactiveSession
-
getBatchSize
- Specified by:
getBatchSizein interfaceReactiveSession
-
setBatchSize
- Specified by:
setBatchSizein interfaceReactiveSession
-
getEntityClass
- Specified by:
getEntityClassin interfaceReactiveSession
-
getEntityId
- Specified by:
getEntityIdin interfaceReactiveSession
-
checkOpen
public void checkOpen()- Specified by:
checkOpenin interfaceorg.hibernate.engine.spi.SharedSessionContractImplementor
-
removeOrphanBeforeUpdates
- Specified by:
removeOrphanBeforeUpdatesin interfaceorg.hibernate.event.spi.EventSource- Overrides:
removeOrphanBeforeUpdatesin classorg.hibernate.internal.SessionImpl
-
reactiveRemoveOrphanBeforeUpdates
- Specified by:
reactiveRemoveOrphanBeforeUpdatesin interfaceReactiveSession
-
clear
public void clear()- Specified by:
clearin interfacejakarta.persistence.EntityManager- Specified by:
clearin interfaceReactiveSession- Specified by:
clearin interfaceorg.hibernate.Session- Overrides:
clearin classorg.hibernate.internal.SessionImpl
-
createEntityGraph
public <T> org.hibernate.graph.spi.RootGraphImplementor<T> createEntityGraph(Class<T> entity, String name) - Specified by:
createEntityGraphin interfaceReactiveQueryProducer- Specified by:
createEntityGraphin interfaceorg.hibernate.SharedSessionContract- Overrides:
createEntityGraphin classorg.hibernate.internal.AbstractSharedSessionContract
-
getEntityGraph
public <T> org.hibernate.graph.spi.RootGraphImplementor<T> getEntityGraph(Class<T> entity, String name) - Specified by:
getEntityGraphin interfaceReactiveQueryProducer
reactiveInitializeCollection(PersistentCollection, boolean)instead