public class TransactionalBatch<E extends RuntimeException> extends Object implements TransactionBatch
TransactionBatch that associates and exposes the underlying transaction.Batch.State| Constructor and Description |
|---|
TransactionalBatch(Transaction tx,
Function<Throwable,E> exceptionTransformer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
discard() |
boolean |
equals(Object object) |
Batch.State |
getState() |
Transaction |
getTransaction()
Returns the transaction associated with this batch
|
int |
hashCode() |
TransactionBatch |
interpose()
Returns an interposed batch.
|
String |
toString() |
public TransactionalBatch(Transaction tx, Function<Throwable,E> exceptionTransformer)
public Transaction getTransaction()
TransactionBatchgetTransaction in interface TransactionBatchpublic TransactionBatch interpose()
TransactionBatchinterpose in interface TransactionBatchpublic Batch.State getState()
public void close()
close in interface AutoCloseableclose in interface BatchCopyright © 2023 JBoss by Red Hat. All rights reserved.