|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.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. |
|
long |
getId()
Get the transaction id. |
|
java.lang.String |
getName()
Get the name of the transaction. |
|
int |
getStatus()
Get the transaction status. |
|
|
openMap(java.lang.String name)
Open a data map where reads are always up to date. |
|
|
openMap(java.lang.String name,
long readVersion)
Open a data map where reads are based on the specified version / savepoint. |
|
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)
Set the name of the transaction. |
|
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)
name - the new namepublic 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,
long readVersion)
K - the key typeV - the value typename - the name of the mapreadVersion - the version used for reading
public void rollbackToSavepoint(long savepointId)
savepointId - the savepoint idpublic void prepare()
public void commit()
public void rollback()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||