//******************************************************************* // // Name: TransactionManager.idl // // Description: // Provides transaction manipulation methods. // // Bugs: // // See also: // // Type: C++ header // //******************************************************************* #ifndef __TRANSACTION_MANAGER_IDL #define __TRANSACTION_MANAGER_IDL #include "CorbaDof.idl" interface TransactionManager { // Connection to Data-Base. typedef long HCONNECTION; // No connection constant. const HCONNECTION NO_CONNECTION = -1; // Start a transaction. boolean StartTransactionEx(in string sCategory, in string sTransactionName, in boolean bForUpdate, in short iDbsNumber, out HCONNECTION hConnection, out string sErrorMsg); // Commit a transaction. boolean Commit(in HCONNECTION hConnection, out string sErrorMsg); // Rollback a transaction. boolean Rollback(in HCONNECTION hConnection, out string sErrorMsg); }; #endif