Uses of Interface
org.hibernate.reactive.stage.Stage.Session
Packages that use Stage.Session
Package
Description
An API for Hibernate Reactive where non-blocking operations are
represented by a Java
CompletionStage.-
Uses of Stage.Session in org.hibernate.reactive.stage
Methods in org.hibernate.reactive.stage that return Stage.SessionModifier and TypeMethodDescriptionStage.Session.clear()Completely clear the session.Remove this instance from the session cache.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.enableFetchProfile(String name) Enable a particular fetch profile on this session, or do nothing if requested fetch profile is already enabled.Stage.SessionFactory.getCurrentSession()Return the current instance ofStage.Session, if any.Stage.Session.setBatchSize(Integer batchSize) Set the session-level batch size, overriding the batch size set by the configuration propertyhibernate.jdbc.batch_size.Stage.Session.setCacheMode(CacheMode cacheMode) Set thecache modefor this session.default Stage.SessionStage.Session.setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode) Set theCacheRetrieveModefor this session.default Stage.SessionStage.Session.setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode) Set theCacheStoreModefor this 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.setFetchBatchSize(int batchSize) Set the maximum batch size for batch fetching associations by id in this session.default Stage.SessionStage.Session.setFlushMode(jakarta.persistence.FlushModeType flushModeType) Set theflush modefor this session.Stage.Session.setFlushMode(FlushMode flushMode) Set theflush modefor this 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.Stage.Session.setSubselectFetchingEnabled(boolean enabled) Enable or disable subselect fetching in this session.Methods in org.hibernate.reactive.stage that return types with arguments of type Stage.SessionModifier and TypeMethodDescriptionStage.SessionFactory.openSession()Obtain a new reactive sessionCompletionStage, the main interaction point between the user's program and Hibernate Reactive.Stage.SessionFactory.openSession(String tenantId) Obtain a new reactive sessionCompletionStagefor a specified tenant.Method parameters in org.hibernate.reactive.stage with type arguments of type Stage.SessionModifier and TypeMethodDescription<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.withSession(Function<Stage.Session, CompletionStage<T>> work) Perform work using a reactive session.<T> CompletionStage<T>Stage.SessionFactory.withTransaction(String tenantId, BiFunction<Stage.Session, Stage.Transaction, CompletionStage<T>> work) Perform work using a reactive session for the tenant with the specified tenant id within an associatedtransaction.<T> CompletionStage<T>Stage.SessionFactory.withTransaction(BiFunction<Stage.Session, Stage.Transaction, CompletionStage<T>> work) Perform work using a reactive session within an associatedtransaction.default <T> CompletionStage<T>Stage.SessionFactory.withTransaction(Function<Stage.Session, CompletionStage<T>> work) Perform work using a reactive session within an associated transaction. -
Uses of Stage.Session in org.hibernate.reactive.tuple
Methods in org.hibernate.reactive.tuple with parameters of type Stage.SessionModifier and TypeMethodDescriptionabstract CompletionStage<Object>StageGenerator.generate(Stage.Session session, Object owner, Object currentValue, org.hibernate.generator.EventType eventType)