1 23 24 28 package com.sun.jts.otsidl; 29 30 31 37 38 39 public class _JControlStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.jts.otsidl.JControl 41 { 42 43 public org.omg.CosTransactions.otid_t getGlobalTID (org.omg.CosTransactions.StatusHolder status) 44 { 45 org.omg.CORBA.portable.InputStream $in = null; 46 try { 47 org.omg.CORBA.portable.OutputStream $out = _request ("getGlobalTID", true); 48 $in = _invoke ($out); 49 org.omg.CosTransactions.otid_t $result = org.omg.CosTransactions.otid_tHelper.read ($in); 50 status.value = org.omg.CosTransactions.StatusHelper.read ($in); 51 return $result; 52 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 53 $in = $ex.getInputStream (); 54 String _id = $ex.getId (); 55 throw new org.omg.CORBA.MARSHAL (_id); 56 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 57 return getGlobalTID (status); 58 } finally { 59 _releaseReply ($in); 60 } 61 } 63 64 public long getLocalTID (org.omg.CosTransactions.StatusHolder status) 66 { 67 org.omg.CORBA.portable.InputStream $in = null; 68 try { 69 org.omg.CORBA.portable.OutputStream $out = _request ("getLocalTID", true); 70 $in = _invoke ($out); 71 long $result = $in.read_longlong (); 72 status.value = org.omg.CosTransactions.StatusHelper.read ($in); 73 return $result; 74 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 75 $in = $ex.getInputStream (); 76 String _id = $ex.getId (); 77 throw new org.omg.CORBA.MARSHAL (_id); 78 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 79 return getLocalTID (status); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 86 public org.omg.CosTransactions.Status getTranState () 88 { 89 org.omg.CORBA.portable.InputStream $in = null; 90 try { 91 org.omg.CORBA.portable.OutputStream $out = _request ("getTranState", true); 92 $in = _invoke ($out); 93 org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in); 94 return $result; 95 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 96 $in = $ex.getInputStream (); 97 String _id = $ex.getId (); 98 throw new org.omg.CORBA.MARSHAL (_id); 99 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 100 return getTranState (); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 107 public void setTranState (org.omg.CosTransactions.Status state) 109 { 110 org.omg.CORBA.portable.InputStream $in = null; 111 try { 112 org.omg.CORBA.portable.OutputStream $out = _request ("setTranState", true); 113 org.omg.CosTransactions.StatusHelper.write ($out, state); 114 $in = _invoke ($out); 115 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 116 $in = $ex.getInputStream (); 117 String _id = $ex.getId (); 118 throw new org.omg.CORBA.MARSHAL (_id); 119 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 120 setTranState (state); 121 } finally { 122 _releaseReply ($in); 123 } 124 } 126 public org.omg.CosTransactions.Terminator get_terminator () throws org.omg.CosTransactions.Unavailable 127 { 128 org.omg.CORBA.portable.InputStream $in = null; 129 try { 130 org.omg.CORBA.portable.OutputStream $out = _request ("get_terminator", true); 131 $in = _invoke ($out); 132 org.omg.CosTransactions.Terminator $result = org.omg.CosTransactions.TerminatorHelper.read ($in); 133 return $result; 134 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 135 $in = $ex.getInputStream (); 136 String _id = $ex.getId (); 137 if (_id.equals ("IDL:omg.org/CosTransactions/Unavailable:1.0")) 138 throw org.omg.CosTransactions.UnavailableHelper.read ($in); 139 else 140 throw new org.omg.CORBA.MARSHAL (_id); 141 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 142 return get_terminator (); 143 } finally { 144 _releaseReply ($in); 145 } 146 } 148 public org.omg.CosTransactions.Coordinator get_coordinator () throws org.omg.CosTransactions.Unavailable 149 { 150 org.omg.CORBA.portable.InputStream $in = null; 151 try { 152 org.omg.CORBA.portable.OutputStream $out = _request ("get_coordinator", true); 153 $in = _invoke ($out); 154 org.omg.CosTransactions.Coordinator $result = org.omg.CosTransactions.CoordinatorHelper.read ($in); 155 return $result; 156 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 157 $in = $ex.getInputStream (); 158 String _id = $ex.getId (); 159 if (_id.equals ("IDL:omg.org/CosTransactions/Unavailable:1.0")) 160 throw org.omg.CosTransactions.UnavailableHelper.read ($in); 161 else 162 throw new org.omg.CORBA.MARSHAL (_id); 163 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 164 return get_coordinator (); 165 } finally { 166 _releaseReply ($in); 167 } 168 } 170 private static String [] __ids = { 172 "IDL:otsidl/JControl:1.0", 173 "IDL:omg.org/CosTransactions/Control:1.0"}; 174 175 public String [] _ids () 176 { 177 return (String [])__ids.clone (); 178 } 179 180 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 181 { 182 String str = s.readUTF (); 183 String [] args = null; 184 java.util.Properties props = null; 185 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 186 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 187 _set_delegate (delegate); 188 } 189 190 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 191 { 192 String [] args = null; 193 java.util.Properties props = null; 194 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 195 s.writeUTF (str); 196 } 197 } | Popular Tags |