Package | Description |
---|---|
org.hibernate.reactive.stage | An API for Hibernate Reactive where non-blocking operations are represented by a Java CompletionStage . |
org.hibernate.reactive.stage.impl |
Modifier and Type | Method and Description |
---|---|
Stage.Session | Stage.Session.clear() Completely clear the session. |
Stage.Session | Stage.Session.detach(Object entity) Remove this instance from the session cache. |
Stage.Session | Stage.Session.disableFetchProfile(String name) Disable a particular fetch profile on this session, or do nothing if the requested fetch profile is not enabled. |
Stage.Session | Stage.Session.enableFetchProfile(String name) Enable a particular fetch profile on this session, or do nothing if requested fetch profile is already enabled. |
Stage.Session | Stage.SessionFactory.openSession() Obtain a new reactive session , the main interaction point between the user's program and Hibernate Reactive. |
Stage.Session | Stage.SessionFactory.openSession(String tenantId) Obtain a new reactive session for a specified tenant. |
Stage.Session | Stage.Session.setBatchSize(Integer batchSize) Set the session-level JDBC batch size, overriding the batch size set by the configuration property hibernate.jdbc.batch_size . |
Stage.Session | Stage.Session.setCacheMode(CacheMode cacheMode) Set the cache mode for this session. |
Stage.Session | Stage.Session.setDefaultReadOnly(boolean readOnly) Change the default for entities and proxies loaded into this session from modifiable to read-only mode, or from modifiable to read-only mode. |
Stage.Session | Stage.Session.setFlushMode(FlushMode flushMode) Set the flush mode for this session. |
Stage.Session | Stage.Session.setReadOnly(Object entityOrProxy, boolean readOnly) Set an unmodified persistent object to read-only mode, or a read-only object to modifiable mode. |
Modifier and Type | Method and Description |
---|---|
<T> CompletionStage<T> | Stage.SessionFactory.withSession(Function<Stage.Session,CompletionStage<T>> work) Perform work using a reactive session . |
<T> CompletionStage<T> | Stage.SessionFactory.withSession(String tenantId, Function<Stage.Session,CompletionStage<T>> work) Perform work using a reactive session for a specified tenant. |
<T> CompletionStage<T> | Stage.SessionFactory.withTransaction(BiFunction<Stage.Session,Stage.Transaction,CompletionStage<T>> work) Perform work using a reactive session within an associated transaction . |
<T> CompletionStage<T> | Stage.SessionFactory.withTransaction(String tenantId, BiFunction<Stage.Session,Stage.Transaction,CompletionStage<T>> work) Perform work using a reactive session for a specified tenant within an associated transaction . |
Modifier and Type | Class and Description |
---|---|
class | StageSessionImpl Implements the Stage.Session API. |
Modifier and Type | Method and Description |
---|---|
Stage.Session | StageSessionImpl.clear() |
Stage.Session | StageSessionImpl.detach(Object entity) |
Stage.Session | StageSessionImpl.disableFetchProfile(String name) |
Stage.Session | StageSessionImpl.enableFetchProfile(String name) |
Stage.Session | StageSessionFactoryImpl.openSession() |
Stage.Session | StageSessionFactoryImpl.openSession(String tenantId) |
Stage.Session | StageSessionImpl.setBatchSize(Integer batchSize) |
Stage.Session | StageSessionImpl.setCacheMode(CacheMode cacheMode) |
Stage.Session | StageSessionImpl.setDefaultReadOnly(boolean readOnly) |
Stage.Session | StageSessionImpl.setFlushMode(FlushMode flushMode) |
Stage.Session | StageSessionImpl.setReadOnly(Object entityOrProxy, boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
(package private) CompletionStage<Stage.Session> | StageSessionFactoryImpl.newSession() |
(package private) CompletionStage<Stage.Session> | StageSessionFactoryImpl.newSession(String tenantId) |
Modifier and Type | Method and Description |
---|---|
<T> CompletionStage<T> | StageSessionFactoryImpl.withSession(Function<Stage.Session,CompletionStage<T>> work) |
<T> CompletionStage<T> | StageSessionFactoryImpl.withSession(String tenantId, Function<Stage.Session,CompletionStage<T>> work) |
<T> CompletionStage<T> | StageSessionFactoryImpl.withTransaction(BiFunction<Stage.Session,Stage.Transaction,CompletionStage<T>> work) |
<T> CompletionStage<T> | StageSessionFactoryImpl.withTransaction(String tenantId, BiFunction<Stage.Session,Stage.Transaction,CompletionStage<T>> work) |