Package org.hibernate.reactive.session
Interface ReactiveSession
-
- All Superinterfaces:
ReactiveConnectionSupplier
,ReactiveQueryProducer
,ReactiveSharedSessionContractImplementor
@Incubating public interface ReactiveSession extends ReactiveQueryProducer, ReactiveSharedSessionContractImplementor
A contract with the Hibernate session backing the user-visiblereactive session
.This is primarily an internal contract between the various subsystems of Hibernate Reactive.
- See Also:
Stage.Session
,Mutiny.Session
-
-
Method Summary
-
Methods inherited from interface org.hibernate.reactive.session.ReactiveConnectionSupplier
getReactiveConnection
-
Methods inherited from interface org.hibernate.reactive.session.ReactiveQueryProducer
createEntityGraph, createEntityGraph, createNamedReactiveMutationQuery, createNamedReactiveSelectionQuery, createNamedReactiveSelectionQuery, createNativeReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveMutationQuery, createReactiveNamedQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveQuery, createReactiveQuery, createReactiveQuery, createReactiveSelectionQuery, createReactiveSelectionQuery, getDialect, getEntityGraph, getFactory, getResultSetMapping, reactiveFetch, reactiveInternalLoad
-
Methods inherited from interface org.hibernate.reactive.engine.spi.ReactiveSharedSessionContractImplementor
getPersistenceContext, reactiveAutoFlushIfRequired
-
-
-
-
Method Detail
-
getReactiveActionQueue
ReactiveActionQueue getReactiveActionQueue()
-
getSharedContract
SessionImplementor getSharedContract()
- Specified by:
getSharedContract
in interfaceReactiveQueryProducer
-
reactiveFetch
<E,T> CompletionStage<T> reactiveFetch(E entity, jakarta.persistence.metamodel.Attribute<E,T> field)
-
reactivePersist
CompletionStage<Void> reactivePersist(Object entity)
-
reactivePersist
CompletionStage<Void> reactivePersist(Object object, PersistContext copiedAlready)
-
reactivePersistOnFlush
CompletionStage<Void> reactivePersistOnFlush(Object entity, PersistContext copiedAlready)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(Object entity)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(String entityName, boolean isCascadeDeleteEnabled, DeleteContext transientObjects)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
-
reactiveMerge
<T> CompletionStage<T> reactiveMerge(T object)
-
reactiveMerge
CompletionStage<Void> reactiveMerge(Object object, MergeContext copiedAlready)
-
reactiveFlush
CompletionStage<Void> reactiveFlush()
-
reactiveAutoflush
CompletionStage<Void> reactiveAutoflush()
-
reactiveForceFlush
CompletionStage<Void> reactiveForceFlush(EntityEntry entry)
-
reactiveRefresh
CompletionStage<Void> reactiveRefresh(Object entity, LockOptions lockMode)
-
reactiveRefresh
CompletionStage<Void> reactiveRefresh(Object child, RefreshContext refreshedAlready)
-
reactiveLock
CompletionStage<Void> reactiveLock(Object entity, LockOptions lockMode)
-
reactiveGet
<T> CompletionStage<T> reactiveGet(Class<T> entityClass, Object id)
-
reactiveFind
<T> CompletionStage<T> reactiveFind(Class<T> entityClass, Object id, LockOptions lockOptions, jakarta.persistence.EntityGraph<T> fetchGraph)
-
reactiveFind
<T> CompletionStage<List<T>> reactiveFind(Class<T> entityClass, Object... ids)
-
reactiveFind
<T> CompletionStage<T> reactiveFind(Class<T> entityClass, Map<String,Object> naturalIds)
-
reactiveImmediateLoad
CompletionStage<Object> reactiveImmediateLoad(String entityName, Object id)
-
reactiveInitializeCollection
CompletionStage<Void> reactiveInitializeCollection(PersistentCollection<?> collection, boolean writing)
-
reactiveRemoveOrphanBeforeUpdates
CompletionStage<Void> reactiveRemoveOrphanBeforeUpdates(String entityName, Object child)
-
setHibernateFlushMode
void setHibernateFlushMode(FlushMode flushMode)
-
getHibernateFlushMode
FlushMode getHibernateFlushMode()
-
setCacheMode
void setCacheMode(CacheMode cacheMode)
-
getCacheMode
CacheMode getCacheMode()
-
getBatchSize
Integer getBatchSize()
-
setBatchSize
void setBatchSize(Integer batchSize)
-
detach
void detach(Object entity)
-
isDefaultReadOnly
boolean isDefaultReadOnly()
-
setDefaultReadOnly
void setDefaultReadOnly(boolean readOnly)
-
setReadOnly
void setReadOnly(Object entityOrProxy, boolean readOnly)
-
isReadOnly
boolean isReadOnly(Object entityOrProxy)
-
contains
boolean contains(Object entity)
-
getEntityClass
<T> Class<? extends T> getEntityClass(T entity)
-
disableFilter
void disableFilter(String filterName)
-
isFetchProfileEnabled
boolean isFetchProfileEnabled(String name) throws UnknownProfileException
- Throws:
UnknownProfileException
-
enableFetchProfile
void enableFetchProfile(String name) throws UnknownProfileException
- Throws:
UnknownProfileException
-
disableFetchProfile
void disableFetchProfile(String name) throws UnknownProfileException
- Throws:
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()
-
-