Package | Description |
---|---|
org.hibernate.reactive.mutiny | An API for Hibernate Reactive where non-blocking operations are represented by a Mutiny io.smallrye.mutiny.Uni . |
org.hibernate.reactive.mutiny.impl |
Modifier and Type | Method and Description |
---|---|
Mutiny.Session | Mutiny.Session.clear() Completely clear the session. |
Mutiny.Session | Mutiny.Session.detach(Object entity) Remove this instance from the session cache. |
Mutiny.Session | Mutiny.Session.disableFetchProfile(String name) Disable a particular fetch profile on this session, or do nothing if the requested fetch profile is not enabled. |
Mutiny.Session | Mutiny.Session.enableFetchProfile(String name) Enable a particular fetch profile on this session, or do nothing if requested fetch profile is already enabled. |
Mutiny.Session | Mutiny.SessionFactory.openSession() Obtain a new reactive session , the main interaction point between the user's program and Hibernate Reactive. |
Mutiny.Session | Mutiny.SessionFactory.openSession(String tenantId) Obtain a new reactive session for a specified tenant. |
Mutiny.Session | Mutiny.Session.setBatchSize(Integer batchSize) Set the session-level JDBC batch size, overriding the batch size set by the configuration property hibernate.jdbc.batch_size . |
Mutiny.Session | Mutiny.Session.setCacheMode(CacheMode cacheMode) Set the cache mode for this session. |
Mutiny.Session | Mutiny.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. |
Mutiny.Session | Mutiny.Session.setFlushMode(FlushMode flushMode) Set the flush mode for this session. |
Mutiny.Session | Mutiny.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> <any> | Mutiny.SessionFactory.withSession(Function<Mutiny.Session,<any>> work) Perform work using a reactive session . |
<T> <any> | Mutiny.SessionFactory.withSession(String tenantId, Function<Mutiny.Session,<any>> work) Perform work using a reactive session for a specified tenant. |
<T> <any> | Mutiny.SessionFactory.withTransaction(BiFunction<Mutiny.Session,Mutiny.Transaction,<any>> work) Perform work using a reactive session within an associated transaction . |
<T> <any> | Mutiny.SessionFactory.withTransaction(String tenantId, BiFunction<Mutiny.Session,Mutiny.Transaction,<any>> work) Perform work using a reactive session for a specified tenant within an associated transaction . |
Modifier and Type | Class and Description |
---|---|
class | MutinySessionImpl Implements the Mutiny.Session API. |
Modifier and Type | Method and Description |
---|---|
Mutiny.Session | MutinySessionImpl.clear() |
Mutiny.Session | MutinySessionImpl.detach(Object entity) |
Mutiny.Session | MutinySessionImpl.disableFetchProfile(String name) |
Mutiny.Session | MutinySessionImpl.enableFetchProfile(String name) |
Mutiny.Session | MutinySessionFactoryImpl.openSession() |
Mutiny.Session | MutinySessionFactoryImpl.openSession(String tenantId) |
Mutiny.Session | MutinySessionImpl.setBatchSize(Integer batchSize) |
Mutiny.Session | MutinySessionImpl.setCacheMode(CacheMode cacheMode) |
Mutiny.Session | MutinySessionImpl.setDefaultReadOnly(boolean readOnly) |
Mutiny.Session | MutinySessionImpl.setFlushMode(FlushMode flushMode) |
Mutiny.Session | MutinySessionImpl.setReadOnly(Object entityOrProxy, boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
<T> <any> | MutinySessionFactoryImpl.withSession(Function<Mutiny.Session,<any>> work) |
<T> <any> | MutinySessionFactoryImpl.withSession(String tenantId, Function<Mutiny.Session,<any>> work) |
<T> <any> | MutinySessionFactoryImpl.withTransaction(BiFunction<Mutiny.Session,Mutiny.Transaction,<any>> work) |
<T> <any> | MutinySessionFactoryImpl.withTransaction(String tenantId, BiFunction<Mutiny.Session,Mutiny.Transaction,<any>> work) |