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. * The Helper for <tt>WrongTransaction</tt>. For more information on
  10. * Helper files, see <a href="doc-files/generatedfiles.html#helper">
  11. * "Generated Files: Helper Files"</a>.<P>
  12. * org/omg/CORBA/WrongTransactionHelper.java
  13. * Generated by the IDL-to-Java compiler (portable), version "3.0"
  14. * from CORBA.idl
  15. * Thursday, August 24, 2000 5:32:50 PM PDT
  16. */
  17. abstract public class WrongTransactionHelper
  18. {
  19. private static String _id = "IDL:omg.org/CORBA/WrongTransaction:1.0";
  20. public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.WrongTransaction that)
  21. {
  22. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  23. a.type (type ());
  24. write (out, that);
  25. a.read_value (out.create_input_stream (), type ());
  26. }
  27. public static org.omg.CORBA.WrongTransaction extract (org.omg.CORBA.Any a)
  28. {
  29. return read (a.create_input_stream ());
  30. }
  31. private static org.omg.CORBA.TypeCode __typeCode = null;
  32. private static boolean __active = false;
  33. synchronized public static org.omg.CORBA.TypeCode type ()
  34. {
  35. if (__typeCode == null)
  36. {
  37. synchronized (org.omg.CORBA.TypeCode.class)
  38. {
  39. if (__typeCode == null)
  40. {
  41. if (__active)
  42. {
  43. return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
  44. }
  45. __active = true;
  46. org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
  47. org.omg.CORBA.TypeCode _tcOf_members0 = null;
  48. __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CORBA.WrongTransactionHelper.id (), "WrongTransaction", _members0);
  49. __active = false;
  50. }
  51. }
  52. }
  53. return __typeCode;
  54. }
  55. public static String id ()
  56. {
  57. return _id;
  58. }
  59. public static org.omg.CORBA.WrongTransaction read (org.omg.CORBA.portable.InputStream istream)
  60. {
  61. org.omg.CORBA.WrongTransaction value = new org.omg.CORBA.WrongTransaction ();
  62. // read and discard the repository ID
  63. istream.read_string ();
  64. return value;
  65. }
  66. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.WrongTransaction value)
  67. {
  68. // write the repository ID
  69. ostream.write_string (id ());
  70. }
  71. }