public abstract class AbstractTransaction extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
committed |
protected Document |
document |
version| Constructor and Description |
|---|
AbstractTransaction(Document document) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the transaction.
|
void |
commit()
Commit the transaction.
|
protected abstract void |
doCancel() |
protected abstract void |
doExecute() |
protected abstract void |
doUndo() |
void |
execute() |
void |
move(int xd,
int yd) |
void |
undo() |
getVersion, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModifiedElementprotected Document document
protected boolean committed
public AbstractTransaction(Document document)
public void commit()
public void cancel()
protected abstract void doCancel()
protected abstract void doExecute()
protected abstract void doUndo()
public void execute()
public void undo()
public void move(int xd,
int yd)
Copyright © 2012 Uppsala University and Aalborg University. All Rights Reserved.