| User's Guide: A Framework for Object Persistency for GNAT; Version 0.6.1; Document Revision $Revision: 1.17 $ | ||
|---|---|---|
| Prev | Chapter 27. ODB.Transaction | Next |
procedure Initialize(
Size : in Natural );
Invalid_Transaction : exception; Invalid_Usage : exception;
Initialize the transaction manager package to handle the given number of transactions.
P.1 - Transaction Manager not initialized.
C.1 - The object value is the same as at the time of the invokation
of the start method.
C.2 - Transaction is still active.
P.1 - Unvalid_Use
procedure Finalize;
Shuttdown the transaction management
P.1 - Transaction manager is Initialized.
C.1 - All tranaction data is lost. C.2 - Transaction Monitoring is stoped.
Notes:
procedure Start(
This : in out Object;
Instance : in Persistent.Reference );
Start a transaction. This procedure blocks if other processes do have an active transaction. The transaction is closed either by the Commit of the Cancel method.
P.1 - The transaction package has been initialized by means of the
initialize procedure.
C.1 - A copy of the given persistent object is created. C.2 - The object is locked for other transactions. The method will
block until the instance has been aquiered by the process.
Notes:
procedure Commit(
This : in out Object );
Close the transaction.
P.1 - Transaction has been Started
C.1 - The backup copy of the object is deleted and the object is
available for other processes to aquiere the object by means of a start operation.
Notes:
procedure Cancel(
This : in out Object );
Cancel the current transaction.
P.1 - Transction has been started
C.1 - The Original value of the object is restored C.2 - object is available for other transactions.
Notes:
procedure Rollback(
This : in out Object );
Restore the contents of the object to the original value
P.1 - Transaction is active
C.1 - The object value is the same as at the time of the invokation
of the start method.
C.2 - Transaction is still active.
Notes: