public class TxMaker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object |
DELETED
marker for deleted records
|
protected Engine |
engine
parent engine under which modifications are stored
|
private boolean |
strictDBGet |
private boolean |
txSnapshotsEnabled |
| Constructor and Description |
|---|
TxMaker(Engine engine) |
TxMaker(Engine engine,
boolean strictDBGet,
boolean txSnapshotsEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<A> A |
execute(Fun.Function1<A,DB> txBlock)
Executes given block withing single transaction.
|
void |
execute(TxBlock txBlock)
Executes given block withing single transaction.
|
DB |
makeTx() |
protected static final java.lang.Object DELETED
private final boolean txSnapshotsEnabled
private final boolean strictDBGet
protected Engine engine
public TxMaker(Engine engine)
public TxMaker(Engine engine, boolean strictDBGet, boolean txSnapshotsEnabled)
public DB makeTx()
public void close()
public void execute(TxBlock txBlock)
TxRollbackException execution is repeated until it does not fail.txBlock - public <A> A execute(Fun.Function1<A,DB> txBlock)
TxRollbackException execution is repeated until it does not fail.
This method returns result returned by txBlock.txBlock -