Package | Description |
---|---|
org.hibernate.reactive.stage |
An API for Hibernate Reactive where non-blocking operations are
represented by a Java
CompletionStage . |
Modifier and Type | Method and Description |
---|---|
Stage.Transaction |
Stage.Session.currentTransaction()
Obtain the transaction currently associated with this session,
if any.
|
Stage.Transaction |
Stage.StatelessSession.currentTransaction()
Obtain the transaction currently associated with this session,
if any.
|
Modifier and Type | Method and Description |
---|---|
<T> CompletionStage<T> |
Stage.SessionFactory.withStatelessTransaction(BiFunction<Stage.StatelessSession,Stage.Transaction,CompletionStage<T>> work)
Perform work using a
reactive session within an
associated transaction . |
<T> CompletionStage<T> |
Stage.SessionFactory.withStatelessTransaction(String tenantId,
BiFunction<Stage.StatelessSession,Stage.Transaction,CompletionStage<T>> work)
Perform work using a
reactive session within an
associated transaction . |
<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.Session.withTransaction(Function<Stage.Transaction,CompletionStage<T>> work)
Performs the given work within the scope of a database transaction,
automatically flushing the session.
|
<T> CompletionStage<T> |
Stage.StatelessSession.withTransaction(Function<Stage.Transaction,CompletionStage<T>> work)
Performs the given work within the scope of a database transaction,
automatically flushing the session.
|
<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 . |
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.