001 package org.omg.CosTransactions; 002 003 004 /** 005 * org/omg/CosTransactions/_OTSPolicyStub.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 public class _OTSPolicyStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosTransactions.OTSPolicy 012 { 013 014 public short tpv () 015 { 016 org.omg.CORBA.portable.InputStream $in = null; 017 try { 018 org.omg.CORBA.portable.OutputStream $out = _request ("_get_tpv", true); 019 $in = _invoke ($out); 020 short $result = org.omg.CosTransactions.OTSPolicyValueHelper.read ($in); 021 return $result; 022 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 023 $in = $ex.getInputStream (); 024 String _id = $ex.getId (); 025 throw new org.omg.CORBA.MARSHAL (_id); 026 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 027 return tpv ( ); 028 } finally { 029 _releaseReply ($in); 030 } 031 } // tpv 032 033 public int policy_type () 034 { 035 org.omg.CORBA.portable.InputStream $in = null; 036 try { 037 org.omg.CORBA.portable.OutputStream $out = _request ("_get_policy_type", true); 038 $in = _invoke ($out); 039 int $result = org.omg.CORBA.PolicyTypeHelper.read ($in); 040 return $result; 041 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 042 $in = $ex.getInputStream (); 043 String _id = $ex.getId (); 044 throw new org.omg.CORBA.MARSHAL (_id); 045 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 046 return policy_type ( ); 047 } finally { 048 _releaseReply ($in); 049 } 050 } // policy_type 051 052 public org.omg.CORBA.Policy copy () 053 { 054 org.omg.CORBA.portable.InputStream $in = null; 055 try { 056 org.omg.CORBA.portable.OutputStream $out = _request ("copy", true); 057 $in = _invoke ($out); 058 org.omg.CORBA.Policy $result = org.omg.CORBA.PolicyHelper.read ($in); 059 return $result; 060 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 061 $in = $ex.getInputStream (); 062 String _id = $ex.getId (); 063 throw new org.omg.CORBA.MARSHAL (_id); 064 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 065 return copy ( ); 066 } finally { 067 _releaseReply ($in); 068 } 069 } // copy 070 071 public void destroy () 072 { 073 org.omg.CORBA.portable.InputStream $in = null; 074 try { 075 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true); 076 $in = _invoke ($out); 077 return; 078 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 079 $in = $ex.getInputStream (); 080 String _id = $ex.getId (); 081 throw new org.omg.CORBA.MARSHAL (_id); 082 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 083 destroy ( ); 084 } finally { 085 _releaseReply ($in); 086 } 087 } // destroy 088 089 // Type-specific CORBA::Object operations 090 private static String[] __ids = { 091 "IDL:CosTransactions/OTSPolicy:1.0", 092 "IDL:CORBA/Policy:1.0"}; 093 094 public String[] _ids () 095 { 096 return (String[])__ids.clone (); 097 } 098 099 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 100 { 101 String str = s.readUTF (); 102 String[] args = null; 103 java.util.Properties props = null; 104 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 105 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); 106 _set_delegate (delegate); 107 } 108 109 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 110 { 111 String[] args = null; 112 java.util.Properties props = null; 113 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 114 s.writeUTF (str); 115 } 116 } // class _OTSPolicyStub