1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>CosTransactions_Terminator</title>
27
<prepared>Niclas Eklund</prepared>
28
<responsible>Niclas Eklund</responsible>
30
<approved>Niclas Eklund</approved>
32
<date>1999-04-12</date>
35
<module>CosTransactions_Terminator</module>
36
<modulesummary>This module implements the OMG CosTransactions::Terminator interface.</modulesummary>
38
<p>To get access to the record definitions for the structures use: <br></br>
39
<c>-include_lib("cosTransactions/include/CosTransactions.hrl").</c></p>
43
<name>commit(Terminator, ReportHeuristics) -> Return</name>
44
<fsummary>Try to commit a transaction</fsummary>
46
<v>Terminator = #objref</v>
47
<v>ReportHeuristics = boolean()</v>
48
<v>Return = ok | {'EXCEPTION', E}</v>
49
<v>E = #'CosTransactions_HeuristicMixed'{} | #'CosTransactions_HeuristicHazrd'{} | #'CosTransactions_TransactionRolledBack'{}</v>
52
<p>This operation initiates the two-phase commit protocol. If the transaction has not been marked
53
<c>'rollback only'</c> and all the participants agree to commit, the operation terminates normally. Otherwise,
54
the TransactionRolledBack is raised. If the parameter <c>ReportHeuristics</c> is true and inconsistent
55
outcomes by raising an Heuristic Exception.</p>
59
<name>rollback(Terminator) -> Return</name>
60
<fsummary>Rollback a transaction</fsummary>
62
<v>Terminator = #objref</v>
66
<p>This operation roles back the transaction. </p>