|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modelsphere.jack.baseDb.db.DbUpdateCommand
public abstract class DbUpdateCommand
Super class for all transaction's commands. For each update occurring inside a transaction, a command object is added to the transaction object. Sub classes are required to store a new and old value for undo redo operations. The object for which the update applies can't be used for holding these values since many changes can occur on the same object-property within the same transaction.
DbTransaction
Constructor Summary | |
---|---|
DbUpdateCommand()
|
Method Summary | |
---|---|
abstract void |
redo()
Reapply the new value on the object. |
abstract void |
undo()
Set the old value on the object to restore its previous state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbUpdateCommand()
Method Detail |
---|
public abstract void undo() throws DbException
DbException
public abstract void redo() throws DbException
DbException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |