|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.db.TransactionStore.Transaction
public static class TransactionStore.Transaction
A transaction.
| Field Summary | |
|---|---|
static int |
STATUS_CLOSED
The status of a closed transaction (committed or rolled back). |
static int |
STATUS_OPEN
The status of an open transaction. |
static int |
STATUS_PREPARED
The status of a prepared transaction. |
| Method Summary | ||
|---|---|---|
void |
commit()
Commit the transaction. |
|
java.util.Set<java.lang.String> |
getChangedMaps(long savepointId)
Get the set of changed maps starting at the given savepoint up to now. |
|
long |
getId()
|
|
java.lang.String |
getName()
|
|
int |
getStatus()
|
|
|
openMap(java.lang.String name)
Open a data map. |
|
|
openMap(java.lang.String name,
MVMap.Builder<K,V> builder)
Open the map to store the data. |
|
void |
prepare()
Prepare the transaction. |
|
void |
rollback()
Roll the transaction back. |
|
void |
rollbackToSavepoint(long savepointId)
Roll back to the given savepoint. |
|
void |
setName(java.lang.String name)
|
|
long |
setSavepoint()
Create a new savepoint. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_OPEN
public static final int STATUS_PREPARED
public static final int STATUS_CLOSED
| Method Detail |
|---|
public long getId()
public int getStatus()
public void setName(java.lang.String name)
public java.lang.String getName()
public long setSavepoint()
public <K,V> TransactionStore.TransactionMap<K,V> openMap(java.lang.String name)
K - the key typeV - the value typename - the name of the map
public <K,V> TransactionStore.TransactionMap<K,V> openMap(java.lang.String name,
MVMap.Builder<K,V> builder)
K - the key typeV - the value typename - the name of the mapbuilder - the builder
public void prepare()
public void commit()
public void rollbackToSavepoint(long savepointId)
savepointId - the savepoint idpublic void rollback()
public java.util.Set<java.lang.String> getChangedMaps(long savepointId)
savepointId - the savepoint id, 0 meaning the beginning of the
transaction
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||