src/share/classes/org/omg/CORBA/WrongTransactionHelper.java

changeset 1
55540e827aef
child 158
91006f157c46
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/classes/org/omg/CORBA/WrongTransactionHelper.java	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,98 @@
     1.4 +/*
     1.5 + * Copyright 2000-2001 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Sun designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Sun in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.25 + * CA 95054 USA or visit www.sun.com if you need additional information or
    1.26 + * have any questions.
    1.27 + */
    1.28 +package org.omg.CORBA;
    1.29 +
    1.30 +/**
    1.31 +* The Helper for <tt>WrongTransaction</tt>.  For more information on
    1.32 +* Helper files, see <a href="doc-files/generatedfiles.html#helper">
    1.33 +* "Generated Files: Helper Files"</a>.<P>
    1.34 +* org/omg/CORBA/WrongTransactionHelper.java
    1.35 +* Generated by the IDL-to-Java compiler (portable), version "3.0"
    1.36 +* from CORBA.idl
    1.37 +* Thursday, August 24, 2000 5:32:50 PM PDT
    1.38 +*/
    1.39 +
    1.40 +abstract public class WrongTransactionHelper
    1.41 +{
    1.42 +  private static String  _id = "IDL:omg.org/CORBA/WrongTransaction:1.0";
    1.43 +
    1.44 +  public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.WrongTransaction that)
    1.45 +  {
    1.46 +    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
    1.47 +    a.type (type ());
    1.48 +    write (out, that);
    1.49 +    a.read_value (out.create_input_stream (), type ());
    1.50 +  }
    1.51 +
    1.52 +  public static org.omg.CORBA.WrongTransaction extract (org.omg.CORBA.Any a)
    1.53 +  {
    1.54 +    return read (a.create_input_stream ());
    1.55 +  }
    1.56 +
    1.57 +  private static org.omg.CORBA.TypeCode __typeCode = null;
    1.58 +  private static boolean __active = false;
    1.59 +  synchronized public static org.omg.CORBA.TypeCode type ()
    1.60 +  {
    1.61 +    if (__typeCode == null)
    1.62 +    {
    1.63 +      synchronized (org.omg.CORBA.TypeCode.class)
    1.64 +      {
    1.65 +        if (__typeCode == null)
    1.66 +        {
    1.67 +          if (__active)
    1.68 +          {
    1.69 +            return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
    1.70 +          }
    1.71 +          __active = true;
    1.72 +          org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
    1.73 +          org.omg.CORBA.TypeCode _tcOf_members0 = null;
    1.74 +          __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CORBA.WrongTransactionHelper.id (), "WrongTransaction", _members0);
    1.75 +          __active = false;
    1.76 +        }
    1.77 +      }
    1.78 +    }
    1.79 +    return __typeCode;
    1.80 +  }
    1.81 +
    1.82 +  public static String id ()
    1.83 +  {
    1.84 +    return _id;
    1.85 +  }
    1.86 +
    1.87 +  public static org.omg.CORBA.WrongTransaction read (org.omg.CORBA.portable.InputStream istream)
    1.88 +  {
    1.89 +    org.omg.CORBA.WrongTransaction value = new org.omg.CORBA.WrongTransaction ();
    1.90 +    // read and discard the repository ID
    1.91 +    istream.read_string ();
    1.92 +    return value;
    1.93 +  }
    1.94 +
    1.95 +  public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.WrongTransaction value)
    1.96 +  {
    1.97 +    // write the repository ID
    1.98 +    ostream.write_string (id ());
    1.99 +  }
   1.100 +
   1.101 +}

mercurial