Package org.hibernate.reactive.session
Interface ReactiveSession
- All Superinterfaces:
ReactiveConnectionSupplier,ReactiveQueryProducer,ReactiveSharedSessionContractImplementor
- All Known Implementing Classes:
ReactiveSessionImpl
@Incubating
public interface ReactiveSession
extends ReactiveQueryProducer, ReactiveSharedSessionContractImplementor
A contract with the Hibernate session backing the user-visible
reactive session.
This is primarily an internal contract between the various subsystems of Hibernate Reactive.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanvoidvoiddisableFetchProfile(String name) voiddisableFilter(String filterName) voidenableFetchProfile(String name) org.hibernate.FilterenableFilter(String filterName) org.hibernate.CacheModeorg.hibernate.LockModegetCurrentLockMode(Object entity) org.hibernate.FiltergetEnabledFilter(String filterName) <T> Class<? extends T>getEntityClass(T entity) getEntityId(Object entity) getEntityName(Object entity) intorg.hibernate.FlushModegetIdentifier(Object entity) <T> TgetReference(Class<T> entityClass, Object id) org.hibernate.engine.spi.SessionImplementorbooleanbooleanisDirty()booleanisFetchProfileEnabled(String name) booleanisOpen()booleanisReadOnly(Object entityOrProxy) boolean<E,T> CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E, T> field) <T> CompletionStage<List<T>>reactiveFind(Class<T> entityClass, Object... ids) <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> naturalIds) reactiveForceFlush(org.hibernate.engine.spi.EntityEntry entry) <T> CompletionStage<T>reactiveGet(Class<T> entityClass, Object id) reactiveLoad(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) reactiveLock(Object entity, org.hibernate.LockOptions lockMode) reactiveLock(String entityName, Object entity, org.hibernate.LockOptions lockMode) 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 object) reactivePersistOnFlush(Object entity, org.hibernate.event.spi.PersistContext copiedAlready) reactiveRefresh(Object child, org.hibernate.event.spi.RefreshContext refreshedAlready) reactiveRefresh(Object entity, org.hibernate.LockOptions lockMode) reactiveRemove(Object entity) reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities) reactiveRemoveOrphanBeforeUpdates(String entityName, Object child) voidsetBatchSize(Integer batchSize) voidsetCacheMode(org.hibernate.CacheMode cacheMode) voidsetDefaultReadOnly(boolean readOnly) voidsetFetchBatchSize(int batchSize) voidsetHibernateFlushMode(org.hibernate.FlushMode flushMode) voidsetReadOnly(Object entityOrProxy, boolean readOnly) voidsetSubselectFetchingEnabled(boolean enabled) Methods inherited from interface org.hibernate.reactive.session.ReactiveConnectionSupplier
getReactiveConnectionMethods inherited from interface org.hibernate.reactive.session.ReactiveQueryProducer
createEntityGraph, createEntityGraph, createNamedReactiveMutationQuery, createNamedReactiveSelectionQuery, createNamedReactiveSelectionQuery, createNativeReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveNamedQuery, createReactiveNamedQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveQuery, createReactiveQuery, createReactiveQuery, createReactiveQuery, createReactiveSelectionQuery, createReactiveSelectionQuery, getDialect, getEntityGraph, getFactory, getResultSetMapping, reactiveFetch, reactiveInternalLoadMethods inherited from interface org.hibernate.reactive.engine.spi.ReactiveSharedSessionContractImplementor
getPersistenceContext, reactiveAutoFlushIfRequired, reactiveImmediateLoad, reactiveInitializeCollection
-
Method Details
-
getReactiveActionQueue
ReactiveActionQueue getReactiveActionQueue() -
reactiveFetch
<E,T> CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E, T> field) -
reactivePersist
-
reactivePersist
-
reactivePersist
CompletionStage<Void> reactivePersist(Object object, org.hibernate.event.spi.PersistContext copiedAlready) -
reactivePersistOnFlush
CompletionStage<Void> reactivePersistOnFlush(Object entity, org.hibernate.event.spi.PersistContext copiedAlready) -
reactiveRemove
-
reactiveRemove
CompletionStage<Void> reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, org.hibernate.event.spi.DeleteContext transientEntities) -
reactiveMerge
-
reactiveMerge
CompletionStage<Void> reactiveMerge(Object object, org.hibernate.event.spi.MergeContext copiedAlready) -
reactiveLoad
CompletionStage<Object> reactiveLoad(org.hibernate.event.spi.LoadEventListener.LoadType loadType, Object id, String entityName, org.hibernate.LockOptions lockOptions, Boolean readOnly) -
reactiveFlush
CompletionStage<Void> reactiveFlush() -
reactiveAutoflush
CompletionStage<Void> reactiveAutoflush() -
reactiveForceFlush
-
reactiveRefresh
-
reactiveRefresh
CompletionStage<Void> reactiveRefresh(Object child, org.hibernate.event.spi.RefreshContext refreshedAlready) -
reactiveLock
-
reactiveLock
CompletionStage<Void> reactiveLock(String entityName, Object entity, org.hibernate.LockOptions lockMode) -
reactiveGet
-
reactiveFind
<T> CompletionStage<T> reactiveFind(Class<T> entityClass, Object id, org.hibernate.LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph) -
reactiveFind
-
reactiveFind
-
reactiveRemoveOrphanBeforeUpdates
-
setHibernateFlushMode
void setHibernateFlushMode(org.hibernate.FlushMode flushMode) -
getHibernateFlushMode
org.hibernate.FlushMode getHibernateFlushMode() -
setCacheMode
void setCacheMode(org.hibernate.CacheMode cacheMode) -
getCacheMode
org.hibernate.CacheMode getCacheMode() -
getBatchSize
Integer getBatchSize() -
setBatchSize
-
getReference
-
detach
-
isDefaultReadOnly
boolean isDefaultReadOnly() -
setDefaultReadOnly
void setDefaultReadOnly(boolean readOnly) -
setReadOnly
-
isReadOnly
-
getEntityName
-
getIdentifier
-
contains
-
getEntityClass
-
getEntityId
-
getCurrentLockMode
-
enableFilter
-
disableFilter
-
getEnabledFilter
-
isFetchProfileEnabled
- Throws:
org.hibernate.UnknownProfileException
-
enableFetchProfile
- Throws:
org.hibernate.UnknownProfileException
-
disableFetchProfile
- Throws:
org.hibernate.UnknownProfileException
-
getFetchBatchSize
int getFetchBatchSize() -
setFetchBatchSize
void setFetchBatchSize(int batchSize) -
isSubselectFetchingEnabled
boolean isSubselectFetchingEnabled() -
setSubselectFetchingEnabled
void setSubselectFetchingEnabled(boolean enabled) -
clear
void clear() -
isDirty
boolean isDirty() -
isOpen
boolean isOpen() -
reactiveClose
CompletionStage<Void> reactiveClose()
-