|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mapdb.TxMaker
public class TxMaker
Transaction factory
| Field Summary | |
|---|---|
protected static Object |
DELETED
marker for deleted records |
protected Engine |
engine
parent engine under which modifications are stored |
| Constructor Summary | |
|---|---|
TxMaker(Engine engine)
|
|
TxMaker(Engine engine,
boolean strictDBGet,
boolean txSnapshotsEnabled)
|
|
| Method Summary | ||
|---|---|---|
void |
close()
|
|
|
execute(Fun.Function1<A,DB> txBlock)
Executes given block withing single transaction. |
|
void |
execute(TxBlock txBlock)
Executes given block withing single transaction. |
|
DB |
makeTx()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Object DELETED
protected Engine engine
| Constructor Detail |
|---|
public TxMaker(Engine engine)
public TxMaker(Engine engine,
boolean strictDBGet,
boolean txSnapshotsEnabled)
| Method Detail |
|---|
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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||