Container-level transaction management system and method therefor
AssigneeResearch In Motion Limited
InventorsRichard Qing, Laura Doktorova, Kamen Vitanov, Michael Shenfield
Life of this patent
Estimating the term…
Abstract
An application container-level transaction management system for managing transactions of an application on a wireless device. The system comprises a transaction manager for providing an interface to the application container for accessing methods for creation and execution of transactions in a hierarchical order. The transactions comprising correlative operations. The system further comprises a transaction stack for storing the transactions to be executed in an execution order according to the hierarchical order, the order of execution providing for at least one of rollback and completion of the correlative operations.
Claims20
An application container-level transaction management system for managing nested transactions of an application on a wireless device, the system comprising:
- a processor coupled to a memory having computer-readable instructions for execution by the processor, the instructions causing the processor to implement:
- a transaction manager for providing an interface to said application container for accessing methods for creation and execution of nested transactions in a hierarchical nested order;
- each nested transaction including at least a parent transaction and a child transaction, and each of the parent and child transaction including at least two correlative operations;
- where completing execution of each transaction includes completing execution of all correlative operations belonging to each respective transaction;
- and
- a transaction stack for storing said transactions to be executed in an execution order according to said hierarchical nested order, said order of execution providing for at least one of rollback and completion of said correlative operations.
A method for managing execution of nested transactions in an application container of a wireless device, the method comprising:
- obtaining a nested transaction created by said application container;
- each nested transaction including at least a parent transaction and a child transaction, and each of the parent and child transaction including at least two correlative operations;
- where completing execution of each transaction includes completing execution of all correlative operations belonging to each respective transaction;
- adding said transaction to a stack, and if said transaction has offspring transactions, adding said offspring transactions to said stack in an execution order according to a hierarchical nested order defined by the relationship between said transactions;
- executing said transactions in said execution order;
- and
- removing said transactions from said stack following execution.
A non-transitory computer program product having encoded thereon computer-readable instructions for executing a method for managing execution of nested transactions in an application container of a wireless device, each nested transaction including at least a parent transaction and a child transaction, each of the parent and child transaction including at least two correlative operations, where completing execution of each transaction includes completing execution of all correlative operations belonging to each respective transaction, the instructions, when executed, causing a processor to:
- obtain a transaction created by said application container;
- add said transaction to a stack, and if said transaction has offspring transactions, adding said offspring transactions to said stack in an execution order according to a hierarchical nested order defined by the relationship between said transactions;
- execute said transactions in said execution order;
- and
- remove said transactions from said stack following execution.
Dependencies are inferred from the claim text.