|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--wobzilla_transaction
Transaction Handling in wobzilla. This service manages all changes to the data-model and can be used
Assigned to every transaction is a wobzilla.changeLog-object, that keeps the elementary node-operations in the order of their execution. This changelog is passed to the requery methods of the views, after a successful transaction.
The inverse transaction is determined with the reversion of the order of the elementary operations and the inversion of each elementary operation. The inverses of the operations are calculated with the following table:
operation | inverse operation | Attribute-transformations |
---|---|---|
DOMNodeInserted | DOMNodeRemoved | inverse.removeBefore=insertBefore |
DOMNodeRemoved | DOMNodeInserted | inverse.insertBefore=removeBefore |
DOMAttrChanged | DOMAttrChanged | inverse.newValue=oldValue; inverse.oldValue=newValue |
Method Summary | |
function
|
commit()
Ends a started transaction and pushes the transaction to the undo-stack. |
function
|
redo()
removes a transaction from the redo-stack and inserts it into the undo-stack. |
function
|
start()
Starts a new transaction and clears the redo-stack. |
function
|
undo()
removes a transaction from the undo-stack and inserts it into the redo-stack. |
Method Detail |
function commit()
requery
-method on the root-view and passes the changeLog
of the transaction as a parameter.
function redo()
function start()
function undo()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |