|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.connector.map.LockBasedTransaction
@Immutable public class LockBasedTransaction

A MapRepositoryTransaction based upon a Lock.
| Constructor Summary | |
|---|---|
LockBasedTransaction(Lock lock)
Create a transaction given the lock. |
|
| Method Summary | |
|---|---|
void |
commit()
Commit any changes that have been made to the repository. |
void |
rollback()
Rollback any changes that have been made to this repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockBasedTransaction(Lock lock)
acquire the lock.
lock - the lock; may not be null| Method Detail |
|---|
public void commit()
commit in interface MapRepositoryTransactionMapRepositoryTransaction.commit()public void rollback()
rollback in interface MapRepositoryTransactionMapRepositoryTransaction.rollback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||