API Reference

function Start_Or_Join_Transaction

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

Description

From thisd point on all object manipulations of this session will be put into a transaction or in the transaction specified by the argument.

Preconditions

None

Postconditions

None

Exceptions

None

function Current_Transaction

   function Current_Transaction return Transaction_ID;  
 

Description

Return the transaction id which is connected to the current session.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Commit_Transaction

   procedure Commit_Transaction(   
      Id : in Transaction_ID := Current_Transaction ); 
 

Description

Commit all changes done to the referenced objects to the server.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Abort_Transaction

   procedure Abort_Transaction(  
      Id : in Transaction_ID := Current_Transaction ); 
 

Description

Cancel all changes done so far to the object in the context of the given transaction identifier or the current session.

Preconditions

None

Postconditions

None

Exceptions

None

procedure Reserve_Object

   procedure Reserve_Object(  
      O    : in out Persistent.Object'Class; 
      Name : in String := "" ); 
 
end Sdb.Transaction.Operations; 

Description

Reserve an object for the transaction which is associated with the current session.

Preconditions

None

Postconditions

None

Exceptions

None