API Reference

function Create

   function Create(   
      Parent : in Transaction_ID := Null_Transaction_ID ) return Transaction_ID; 
 

Description

Create an transaction element. If no argument is given a new transaction element will be created.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Delete

   procedure Delete( This : in out Transaction_ID );  
 

Description

Delete a given transaction

Preconditions

Postconditions

None

Exceptions

None

function Id

   function Id(   
      This  : in Object ) return Transaction_ID; 
 

Description

Return the identifier of an transaction element.

Preconditions

None

Postconditions

None

Exceptions

None

function Is_Transaction_Active

   function Is_Transaction_Active(   
      Id   : in Transaction_ID ) return Boolean ; 
 

Description

returns true is the given transaction is valid and active.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Vote

   procedure Vote(  
      This    : in out Transaction_ID ; 
      Success : in Boolean ); 
 

Description

Vote for the result of a transaction. Success = true means that the

transaction has been successfully completed. Vote will block until vote has been called by all transaction members or if one of the members has canceled the transaction.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Transaction_Member

   procedure Transaction_Member(  
      This  : in Transaction_ID; 
      Obj   : in Persistent.Object'Class ) ; 
 

Description

Add an object to the given transaction

Preconditions

None

Postconditions

None

Exceptions

None

function Get_Session

   function Get_Session(  
      This : in Transaction_ID ) return Session.Handle; 
 
   To_Many_Tasks      : exception; 
   Invalid_Parameters : exception; 
   Invalid_Object     : exception; 
 

Description

Get the session where the transaction has been created.

Preconditions

None

Postconditions

None

Exceptions

None