Package | Description |
---|---|
org.hibernate.reactive.mutiny |
An API for Hibernate Reactive where non-blocking operations are
represented by a Mutiny
Uni . |
Modifier and Type | Method and Description |
---|---|
Mutiny.Transaction |
Mutiny.Session.currentTransaction()
Obtain the transaction currently associated with this session,
if any.
|
Mutiny.Transaction |
Mutiny.StatelessSession.currentTransaction()
Obtain the transaction currently associated with this session,
if any.
|
Modifier and Type | Method and Description |
---|---|
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.SessionFactory.withStatelessTransaction(BiFunction<Mutiny.StatelessSession,Mutiny.Transaction,io.smallrye.mutiny.Uni<T>> work)
Perform work using a
reactive session within an
associated transaction . |
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.SessionFactory.withStatelessTransaction(String tenantId,
BiFunction<Mutiny.StatelessSession,Mutiny.Transaction,io.smallrye.mutiny.Uni<T>> work)
Perform work using a
reactive session for a
specified tenant within an associated transaction . |
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.SessionFactory.withTransaction(BiFunction<Mutiny.Session,Mutiny.Transaction,io.smallrye.mutiny.Uni<T>> work)
Perform work using a
reactive session within an
associated transaction . |
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.Session.withTransaction(Function<Mutiny.Transaction,io.smallrye.mutiny.Uni<T>> work)
Performs the given work within the scope of a database transaction,
automatically flushing the session.
|
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.StatelessSession.withTransaction(Function<Mutiny.Transaction,io.smallrye.mutiny.Uni<T>> work)
Performs the given work within the scope of a database transaction,
automatically flushing the session.
|
<T> io.smallrye.mutiny.Uni<T> |
Mutiny.SessionFactory.withTransaction(String tenantId,
BiFunction<Mutiny.Session,Mutiny.Transaction,io.smallrye.mutiny.Uni<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.