public class TransactionExecutor extends Object
| Constructor and Description |
|---|
TransactionExecutor(ShardInfoProvider shardInfoProvider,
Class<?> daoClass,
Class<?> entityClass,
TransactionObserver observer) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<org.hibernate.Session,T> handler,
boolean completeTransaction,
String opType,
int shardId) |
<T,U> T |
execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
boolean completeTransaction,
String opType,
int shardId) |
<T,U,V> V |
execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
Function<T,V> handler,
boolean completeTransaction,
String opType,
int shardId) |
<T,U,V> V |
execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
Function<T,V> handler,
String opType,
int shardId) |
<T,U> T |
execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
String opType,
int shardId) |
<T,U> Optional<T> |
executeAndResolve(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
String opType,
int shardId) |
public TransactionExecutor(ShardInfoProvider shardInfoProvider, Class<?> daoClass, Class<?> entityClass, TransactionObserver observer)
public <T,U> Optional<T> executeAndResolve(org.hibernate.SessionFactory sessionFactory, boolean readOnly, Function<U,T> function, U arg, String opType, int shardId)
public <T,U> T execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
String opType,
int shardId)
public <T,U> T execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
boolean completeTransaction,
String opType,
int shardId)
public <T,U,V> V execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
Function<T,V> handler,
String opType,
int shardId)
public <T,U,V> V execute(org.hibernate.SessionFactory sessionFactory,
boolean readOnly,
Function<U,T> function,
U arg,
Function<T,V> handler,
boolean completeTransaction,
String opType,
int shardId)
Copyright © 2016–2023. All rights reserved.