KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > WrongTransactionHelper


1 /*
2  * @(#)WrongTransactionHelper.java 1.5 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package org.omg.CORBA;
8
9 /**
10 * The Helper for <tt>WrongTransaction</tt>. For more information on
11 * Helper files, see <a HREF="doc-files/generatedfiles.html#helper">
12 * "Generated Files: Helper Files"</a>.<P>
13 * org/omg/CORBA/WrongTransactionHelper.java
14 * Generated by the IDL-to-Java compiler (portable), version "3.0"
15 * from CORBA.idl
16 * Thursday, August 24, 2000 5:32:50 PM PDT
17 */

18
19 abstract public class WrongTransactionHelper
20 {
21   private static String JavaDoc _id = "IDL:omg.org/CORBA/WrongTransaction:1.0";
22
23   public static void insert (org.omg.CORBA.Any JavaDoc a, org.omg.CORBA.WrongTransaction JavaDoc that)
24   {
25     org.omg.CORBA.portable.OutputStream JavaDoc out = a.create_output_stream ();
26     a.type (type ());
27     write (out, that);
28     a.read_value (out.create_input_stream (), type ());
29   }
30
31   public static org.omg.CORBA.WrongTransaction JavaDoc extract (org.omg.CORBA.Any JavaDoc a)
32   {
33     return read (a.create_input_stream ());
34   }
35
36   private static org.omg.CORBA.TypeCode JavaDoc __typeCode = null;
37   private static boolean __active = false;
38   synchronized public static org.omg.CORBA.TypeCode JavaDoc type ()
39   {
40     if (__typeCode == null)
41     {
42       synchronized (org.omg.CORBA.TypeCode JavaDoc.class)
43       {
44         if (__typeCode == null)
45         {
46           if (__active)
47           {
48             return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
49           }
50           __active = true;
51           org.omg.CORBA.StructMember JavaDoc[] _members0 = new org.omg.CORBA.StructMember JavaDoc [0];
52           org.omg.CORBA.TypeCode JavaDoc _tcOf_members0 = null;
53           __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CORBA.WrongTransactionHelper.id (), "WrongTransaction", _members0);
54           __active = false;
55         }
56       }
57     }
58     return __typeCode;
59   }
60
61   public static String JavaDoc id ()
62   {
63     return _id;
64   }
65
66   public static org.omg.CORBA.WrongTransaction JavaDoc read (org.omg.CORBA.portable.InputStream JavaDoc istream)
67   {
68     org.omg.CORBA.WrongTransaction JavaDoc value = new org.omg.CORBA.WrongTransaction JavaDoc ();
69     // read and discard the repository ID
70
istream.read_string ();
71     return value;
72   }
73
74   public static void write (org.omg.CORBA.portable.OutputStream JavaDoc ostream, org.omg.CORBA.WrongTransaction JavaDoc value)
75   {
76     // write the repository ID
77
ostream.write_string (id ());
78   }
79
80 }
81
Popular Tags