KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jotm > SubCoordinator_Stub


1 // Stub class generated by rmic, do not edit.
2
// Contents subject to change without notice.
3

4 package org.objectweb.jotm;
5
6 public final class SubCoordinator_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements org.objectweb.jotm.Resource
9 {
10     private static final long serialVersionUID = 2;
11     
12     private static java.lang.reflect.Method JavaDoc $method_commit_0;
13     private static java.lang.reflect.Method JavaDoc $method_commit_one_phase_1;
14     private static java.lang.reflect.Method JavaDoc $method_forget_2;
15     private static java.lang.reflect.Method JavaDoc $method_prepare_3;
16     private static java.lang.reflect.Method JavaDoc $method_rollback_4;
17     
18     static {
19     try {
20         $method_commit_0 = org.objectweb.jotm.Resource.class.getMethod("commit", new java.lang.Class JavaDoc[] {});
21         $method_commit_one_phase_1 = org.objectweb.jotm.Resource.class.getMethod("commit_one_phase", new java.lang.Class JavaDoc[] {});
22         $method_forget_2 = org.objectweb.jotm.Resource.class.getMethod("forget", new java.lang.Class JavaDoc[] {});
23         $method_prepare_3 = org.objectweb.jotm.Resource.class.getMethod("prepare", new java.lang.Class JavaDoc[] {});
24         $method_rollback_4 = org.objectweb.jotm.Resource.class.getMethod("rollback", new java.lang.Class JavaDoc[] {});
25     } catch (java.lang.NoSuchMethodException JavaDoc e) {
26         throw new java.lang.NoSuchMethodError JavaDoc(
27         "stub class initialization failed");
28     }
29     }
30     
31     // constructors
32
public SubCoordinator_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
33     super(ref);
34     }
35     
36     // methods from remote interfaces
37

38     // implementation of commit()
39
public void commit()
40     throws java.rmi.RemoteException JavaDoc
41     {
42     try {
43         ref.invoke(this, $method_commit_0, null, 8461082169793485964L);
44     } catch (java.lang.RuntimeException JavaDoc e) {
45         throw e;
46     } catch (java.rmi.RemoteException JavaDoc e) {
47         throw e;
48     } catch (java.lang.Exception JavaDoc e) {
49         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
50     }
51     }
52     
53     // implementation of commit_one_phase()
54
public void commit_one_phase()
55     throws java.rmi.RemoteException JavaDoc
56     {
57     try {
58         ref.invoke(this, $method_commit_one_phase_1, null, -371926797834829192L);
59     } catch (java.lang.RuntimeException JavaDoc e) {
60         throw e;
61     } catch (java.rmi.RemoteException JavaDoc e) {
62         throw e;
63     } catch (java.lang.Exception JavaDoc e) {
64         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
65     }
66     }
67     
68     // implementation of forget()
69
public void forget()
70     throws java.rmi.RemoteException JavaDoc
71     {
72     try {
73         ref.invoke(this, $method_forget_2, null, -4650867798493072124L);
74     } catch (java.lang.RuntimeException JavaDoc e) {
75         throw e;
76     } catch (java.rmi.RemoteException JavaDoc e) {
77         throw e;
78     } catch (java.lang.Exception JavaDoc e) {
79         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
80     }
81     }
82     
83     // implementation of prepare()
84
public int prepare()
85     throws java.rmi.RemoteException JavaDoc
86     {
87     try {
88         Object JavaDoc $result = ref.invoke(this, $method_prepare_3, null, 8637559118677609209L);
89         return ((java.lang.Integer JavaDoc) $result).intValue();
90     } catch (java.lang.RuntimeException JavaDoc e) {
91         throw e;
92     } catch (java.rmi.RemoteException JavaDoc e) {
93         throw e;
94     } catch (java.lang.Exception JavaDoc e) {
95         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
96     }
97     }
98     
99     // implementation of rollback()
100
public void rollback()
101     throws java.rmi.RemoteException JavaDoc
102     {
103     try {
104         ref.invoke(this, $method_rollback_4, null, -2202008398766919932L);
105     } catch (java.lang.RuntimeException JavaDoc e) {
106         throw e;
107     } catch (java.rmi.RemoteException JavaDoc e) {
108         throw e;
109     } catch (java.lang.Exception JavaDoc e) {
110         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
111     }
112     }
113 }
114
Popular Tags