Package org.hibernate.reactive.session
Interface ReactiveSession
-
- All Superinterfaces:
ReactiveConnectionSupplier
,ReactiveQueryExecutor
public interface ReactiveSession extends ReactiveQueryExecutor
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.ReactiveQueryExecutor
addBulkCleanupAction, createEntityGraph, createEntityGraph, createReactiveCriteriaQuery, createReactiveNamedQuery, createReactiveNamedQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveNativeQuery, createReactiveQuery, createReactiveQuery, createReactiveQuery, executeReactiveUpdate, executeReactiveUpdate, getDialect, getEntityGraph, getFactory, getResultSetMapping, reactiveFetch, reactiveInternalLoad, reactiveList, reactiveList
-
-
-
-
Method Detail
-
getReactiveActionQueue
ReactiveActionQueue getReactiveActionQueue()
-
getPersistenceContext
PersistenceContext getPersistenceContext()
-
getSharedContract
SessionImplementor getSharedContract()
- Specified by:
getSharedContract
in interfaceReactiveQueryExecutor
-
reactiveFetch
<E,T> CompletionStage<T> reactiveFetch(E entity, Attribute<E,T> field)
-
reactivePersist
CompletionStage<Void> reactivePersist(Object entity)
-
reactivePersist
CompletionStage<Void> reactivePersist(Object object, org.hibernate.internal.util.collections.IdentitySet copiedAlready)
-
reactivePersistOnFlush
CompletionStage<Void> reactivePersistOnFlush(Object entity, org.hibernate.internal.util.collections.IdentitySet copiedAlready)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(Object entity)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(Object entity, boolean isCascadeDeleteEnabled, org.hibernate.internal.util.collections.IdentitySet transientObjects)
-
reactiveRemove
CompletionStage<Void> reactiveRemove(String entityName, Object child, boolean isCascadeDeleteEnabled, org.hibernate.internal.util.collections.IdentitySet transientEntities)
-
reactiveMerge
<T> CompletionStage<T> reactiveMerge(T object)
-
reactiveMerge
CompletionStage<Void> reactiveMerge(Object object, org.hibernate.event.internal.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, org.hibernate.internal.util.collections.IdentitySet refreshedAlready)
-
reactiveLock
CompletionStage<Void> reactiveLock(Object entity, LockOptions lockMode)
-
reactiveGet
<T> CompletionStage<T> reactiveGet(Class<T> entityClass, Serializable id)
-
reactiveFind
<T> CompletionStage<T> reactiveFind(Class<T> entityClass, Object id, LockOptions lockOptions, 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, Serializable 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)
-
getIdentifier
Serializable getIdentifier(Object entity)
-
contains
boolean contains(Object entity)
-
getEntityClass
<T> Class<? extends T> getEntityClass(T entity)
-
getEntityId
Serializable getEntityId(Object 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
-
clear
void clear()
-
isDirty
boolean isDirty()
-
isOpen
boolean isOpen()
-
reactiveClose
CompletionStage<Void> reactiveClose()
-
-