1 4 package org.objectweb.jotm; 5 6 public final class SubCoordinator_Stub 7 extends java.rmi.server.RemoteStub 8 implements org.objectweb.jotm.Resource 9 { 10 private static final long serialVersionUID = 2; 11 12 private static java.lang.reflect.Method $method_commit_0; 13 private static java.lang.reflect.Method $method_commit_one_phase_1; 14 private static java.lang.reflect.Method $method_forget_2; 15 private static java.lang.reflect.Method $method_prepare_3; 16 private static java.lang.reflect.Method $method_rollback_4; 17 18 static { 19 try { 20 $method_commit_0 = org.objectweb.jotm.Resource.class.getMethod("commit", new java.lang.Class [] {}); 21 $method_commit_one_phase_1 = org.objectweb.jotm.Resource.class.getMethod("commit_one_phase", new java.lang.Class [] {}); 22 $method_forget_2 = org.objectweb.jotm.Resource.class.getMethod("forget", new java.lang.Class [] {}); 23 $method_prepare_3 = org.objectweb.jotm.Resource.class.getMethod("prepare", new java.lang.Class [] {}); 24 $method_rollback_4 = org.objectweb.jotm.Resource.class.getMethod("rollback", new java.lang.Class [] {}); 25 } catch (java.lang.NoSuchMethodException e) { 26 throw new java.lang.NoSuchMethodError ( 27 "stub class initialization failed"); 28 } 29 } 30 31 public SubCoordinator_Stub(java.rmi.server.RemoteRef ref) { 33 super(ref); 34 } 35 36 38 public void commit() 40 throws java.rmi.RemoteException 41 { 42 try { 43 ref.invoke(this, $method_commit_0, null, 8461082169793485964L); 44 } catch (java.lang.RuntimeException e) { 45 throw e; 46 } catch (java.rmi.RemoteException e) { 47 throw e; 48 } catch (java.lang.Exception e) { 49 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 50 } 51 } 52 53 public void commit_one_phase() 55 throws java.rmi.RemoteException 56 { 57 try { 58 ref.invoke(this, $method_commit_one_phase_1, null, -371926797834829192L); 59 } catch (java.lang.RuntimeException e) { 60 throw e; 61 } catch (java.rmi.RemoteException e) { 62 throw e; 63 } catch (java.lang.Exception e) { 64 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 65 } 66 } 67 68 public void forget() 70 throws java.rmi.RemoteException 71 { 72 try { 73 ref.invoke(this, $method_forget_2, null, -4650867798493072124L); 74 } catch (java.lang.RuntimeException e) { 75 throw e; 76 } catch (java.rmi.RemoteException e) { 77 throw e; 78 } catch (java.lang.Exception e) { 79 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 80 } 81 } 82 83 public int prepare() 85 throws java.rmi.RemoteException 86 { 87 try { 88 Object $result = ref.invoke(this, $method_prepare_3, null, 8637559118677609209L); 89 return ((java.lang.Integer ) $result).intValue(); 90 } catch (java.lang.RuntimeException e) { 91 throw e; 92 } catch (java.rmi.RemoteException e) { 93 throw e; 94 } catch (java.lang.Exception e) { 95 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 96 } 97 } 98 99 public void rollback() 101 throws java.rmi.RemoteException 102 { 103 try { 104 ref.invoke(this, $method_rollback_4, null, -2202008398766919932L); 105 } catch (java.lang.RuntimeException e) { 106 throw e; 107 } catch (java.rmi.RemoteException e) { 108 throw e; 109 } catch (java.lang.Exception e) { 110 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 111 } 112 } 113 } 114 | Popular Tags |