public class TxMaker extends Object
Modifier and Type | Field and Description |
---|---|
protected static Object |
DELETED
marker for deleted records
|
protected Engine |
engine
parent engine under which modifications are stored
|
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 Object DELETED
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
- Copyright © 2017. All rights reserved.