1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
<TITLE>CosTransactions_SubtransactionAwareResource</TITLE>
<SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
<STYLE TYPE="text/css">
<!--
.REFBODY { margin-left: 13mm }
.REFTYPES { margin-left: 8mm }
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
ALINK="#FF0000">
<!-- refpage -->
<CENTER>
<A HREF="http://www.erlang.se">
<IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif">
</A>
<H1>CosTransactions_SubtransactionAwareResource</H1>
</CENTER>
<H3>MODULE</H3>
<DIV CLASS=REFBODY>
CosTransactions_SubtransactionAwareResource
</DIV>
<H3>MODULE SUMMARY</H3>
<DIV CLASS=REFBODY>
This module implements the OMG CosTransactions::SubtransactionAwareResource interface.
</DIV>
<H3>DESCRIPTION</H3>
<DIV CLASS=REFBODY>
<P> This interface inherits the CosTransactions::Resource interface. Hence,
it must also support all operations defined in the Resource interface.
<P> To get access to the record definitions for the structures use:<BR>
<CODE>-include_lib("cosTransactions/include/CosTransactions.hrl").</CODE>
</DIV>
<H3>EXPORTS</H3>
<P><A NAME="commit_subtransaction/2"><STRONG><CODE>commit_subtransaction(SubtransactionAwareResource, Coordinator) -> Return</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>SubtransactionAwareResource = #objref</CODE></STRONG><BR>
<STRONG><CODE>Coordinator = #objref</CODE></STRONG><BR>
<STRONG><CODE>Return = ok</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P> If the <CODE>SubtransactionAwareResource</CODE> have been registered with a <STRONG>subtransaction</STRONG>
using the operation <CODE>CosTransactions_Coordinator:register_subtran_aware/2</CODE>,
it will be notified when the transaction has committed.
<P>
<TABLE CELLPADDING=4>
<TR>
<TD VALIGN=TOP><IMG ALT="Note!" SRC="note.gif"></TD>
<TD>
<P> The results of a commited subtransaction are reltive to the completion of its ancestor
transactions, that is, these results can be undone if any ancestor transaction is rolled back.
</TD>
</TR>
</TABLE>
</DIV>
<P><A NAME="rollback_subtransaction/1"><STRONG><CODE>rollback_subtransaction(SubtransactionAwareResource) -> Return</CODE></STRONG></A><BR>
<DIV CLASS=REFBODY><P>Types:
<DIV CLASS=REFTYPES>
<P>
<STRONG><CODE>SubtransactionAwareResource = #objref</CODE></STRONG><BR>
<STRONG><CODE>Return = ok</CODE></STRONG><BR>
</DIV>
</DIV>
<DIV CLASS=REFBODY>
<P> If the <CODE>SubtransactionAwareResource</CODE> have been registered with a transactions
using the operation <CODE>CosTransactions_Coordinator:register_subtran_aware/2</CODE>
it will be notified when the transaction has rolled back.
</DIV>
<H3>AUTHORS</H3>
<DIV CLASS=REFBODY>
support - support@erlang.ericsson.se<BR>
</DIV>
<CENTER>
<HR>
<SMALL>cosTransactions 1.2<BR>
Copyright © 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>
|