Package org.hibernate.reactive.stage
Interface Stage
-
public interface StageAn API for Hibernate Reactive where non-blocking operations are represented by a JavaCompletionStage.The
Stage.Query,Stage.Session, andStage.SessionFactoryinterfaces declared here are simply non-blocking counterparts to the similarly-named interfaces in Hibernate ORM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceStage.CloseableAn object whoseStage.Closeable.close()method returns aCompletionStage.static interfaceStage.Query<R>A non-blocking counterpart to the HibernateQueryinterface, allowing reactive execution of HQL and JPQL queries.static interfaceStage.SessionA non-blocking counterpart to the HibernateSessioninterface, allowing a reactive style of interaction with the database.static interfaceStage.SessionFactoryFactory forreactive sessions.static interfaceStage.StatelessSessionA non-blocking counterpart to the HibernateStatelessSessioninterface, which provides a command-oriented API for performing bulk operations against a database.static interfaceStage.TransactionAllows code withinStage.Session.withTransaction(Function)to mark a transaction for rollback.
-
Field Summary
Fields Modifier and Type Field Description static org.hibernate.reactive.logging.impl.LogLOG
-
Method Summary
Static Methods Modifier and Type Method Description static <T> CompletionStage<T>fetch(T association)Asynchronously fetch an association that's configured for lazy loading.
-
-
-
Method Detail
-
fetch
static <T> CompletionStage<T> fetch(T association)
Asynchronously fetch an association that's configured for lazy loading.Stage.fetch(author.getBook()).thenAccept(book -> print(book.getTitle()));- Parameters:
association- a lazy-loaded association- Returns:
- the fetched association, via a
CompletionStage - See Also:
Hibernate.initialize(Object)
-
-