001 package org.omg.CosTransactions; 002 003 004 /** 005 * org/omg/CosTransactions/HeuristicRollbackHelper.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/CosTransactions.idl 008 * Saturday, November 26, 2011 9:53:36 PM UTC 009 */ 010 011 abstract public class HeuristicRollbackHelper 012 { 013 private static String _id = "IDL:CosTransactions/HeuristicRollback:1.0"; 014 015 public static void insert (org.omg.CORBA.Any a, org.omg.CosTransactions.HeuristicRollback that) 016 { 017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 018 a.type (type ()); 019 write (out, that); 020 a.read_value (out.create_input_stream (), type ()); 021 } 022 023 public static org.omg.CosTransactions.HeuristicRollback extract (org.omg.CORBA.Any a) 024 { 025 return read (a.create_input_stream ()); 026 } 027 028 private static org.omg.CORBA.TypeCode __typeCode = null; 029 private static boolean __active = false; 030 synchronized public static org.omg.CORBA.TypeCode type () 031 { 032 if (__typeCode == null) 033 { 034 synchronized (org.omg.CORBA.TypeCode.class) 035 { 036 if (__typeCode == null) 037 { 038 if (__active) 039 { 040 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 041 } 042 __active = true; 043 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0]; 044 org.omg.CORBA.TypeCode _tcOf_members0 = null; 045 __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosTransactions.HeuristicRollbackHelper.id (), "HeuristicRollback", _members0); 046 __active = false; 047 } 048 } 049 } 050 return __typeCode; 051 } 052 053 public static String id () 054 { 055 return _id; 056 } 057 058 public static org.omg.CosTransactions.HeuristicRollback read (org.omg.CORBA.portable.InputStream istream) 059 { 060 org.omg.CosTransactions.HeuristicRollback value = new org.omg.CosTransactions.HeuristicRollback (); 061 // read and discard the repository ID 062 istream.read_string (); 063 return value; 064 } 065 066 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosTransactions.HeuristicRollback value) 067 { 068 // write the repository ID 069 ostream.write_string (id ()); 070 } 071 072 }