KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > retest > bean > ejb > ejb > TransactionBean


1 package xdoclet.retest.bean.ejb.ejb;
2
3 import javax.ejb.EntityBean JavaDoc;
4
5 /**
6  * @ejb:bean
7  * name="ejbtrans/Transaction"
8  * type="CMP"
9  * view-type="both"
10  * cmp-version="2.x"
11  *
12  * @ejb:transaction type="NotSupported"
13  *
14  * @ejb:finder
15  * signature="java.util.Collection findByNotSpecified()"
16  * @ejb:finder
17  * signature="java.util.Collection findByNotSupported()"
18  * transaction-type="NotSupported"
19  * @ejb:finder
20  * signature="java.util.Collection findBySupports()"
21  * transaction-type="Supports"
22  * @ejb:finder
23  * signature="java.util.Collection findByRequired()"
24  * transaction-type="Required"
25  * @ejb:finder
26  * signature="java.util.Collection findByRequiresNew()"
27  * transaction-type="RequiresNew"
28  * @ejb:finder
29  * signature="java.util.Collection findByMandatory()"
30  * transaction-type="Mandatory"
31  * @ejb:finder
32  * signature="java.util.Collection findByNever()"
33  * transaction-type="Never"
34  * @ejb:finder
35  * signature="java.util.Collection findByLocalNotSupported()"
36  * transaction-type="NotSupported"
37  * method-intf="LocalHome"
38  * @ejb:finder
39  * signature="java.util.Collection findByHomeSupports()"
40  * transaction-type="Supports"
41  * method-intf="Home"
42  *
43  * @ejb:finder
44  * signature="java.util.Collection findByLocalNotSpecified()"
45  * view-type="local"
46  * @ejb:finder
47  * signature="java.util.Collection findByLocalNotSupported()"
48  * transaction-type="NotSupported"
49  * view-type="local"
50  * @ejb:finder
51  * signature="java.util.Collection findByLocalLocalNotSupported()"
52  * transaction-type="NotSupported"
53  * method-intf="LocalHome"
54  * view-type="local"
55  *
56  * @ejb:finder
57  * signature="java.util.Collection findByRemoteNotSpecified()"
58  * view-type="remote"
59  * @ejb:finder
60  * signature="java.util.Collection findByRemoteNotSupported()"
61  * transaction-type="NotSupported"
62  * view-type="remote"
63  * @ejb:finder
64  * signature="java.util.Collection findByHomeRemoteBySupports()"
65  * transaction-type="Supports"
66  * method-intf="Home"
67  * view-type="remote"
68  *
69  *
70  * @ejb:finder
71  * signature="java.util.Collection findByBothNotSpecified()"
72  * view-type="both"
73  * @ejb:finder
74  * signature="java.util.Collection findByBothNotSupported()"
75  * transaction-type="NotSupported"
76  * view-type="both"
77  * @ejb:finder
78  * signature="java.util.Collection findByBothSupports()"
79  * transaction-type="Supports"
80  * view-type="both"
81  * @ejb:finder
82  * signature="java.util.Collection findByBoth()"
83  * transaction-type="NotSupported"
84  * method-intf="LocalHome"
85  * view-type="both"
86  * @ejb:finder
87  * signature="java.util.Collection findByBoth()"
88  * transaction-type="Supports"
89  * method-intf="Home"
90  * view-type="both"
91  *
92  */

93 public abstract class TransactionBean
94         implements EntityBean JavaDoc
95 {
96
97     /**
98      * @ejb:persistent-field
99      * @ejb:pk-field
100      */

101     public abstract String JavaDoc getId();
102
103     /**
104      * @ejb:persistent-field
105      */

106     public abstract String JavaDoc getName();
107
108     /**
109      * @ejb:interface-method
110      * @ejb:transaction type="NotSupported" description="BlaBla"
111      */

112     public void createNotSupported(String JavaDoc p1, int p2,byte[] p3){}
113
114     /**
115      * @ejb:interface-method
116      * @ejb:transaction type="NotSupported"
117      */

118     public void methodNotSupported(String JavaDoc p1, int p2,byte[] p3){}
119
120     /**
121      * @ejb:interface-method
122      * @ejb:transaction type="Supports"
123      */

124     public void methodSupports(){}
125
126     /**
127      * @ejb:interface-method
128      * @ejb:transaction type="Required"
129      */

130     public void methodRequired(String JavaDoc p1){}
131
132     /**
133      * @ejb:interface-method
134      * @ejb:transaction type="RequiresNew"
135      */

136     public void methodRequiresNew(){}
137
138     /**
139      * @ejb:interface-method
140      * @ejb:transaction type="Mandatory"
141      */

142     public void methodMandatory(){}
143
144     /**
145      * @ejb:interface-method
146      * @ejb:transaction type="Never"
147      */

148     public void methodNever(){}
149
150     /**
151      * @ejb:interface-method
152      */

153     public void methodNotSpecified(){}
154
155     /**
156      * @ejb:interface-method view-type="remote"
157      * @ejb:transaction type="NotSupported"
158      */

159     public void methodNotSupported(String JavaDoc p1, int p2){}
160
161     /**
162      * @ejb:interface-method view-type="local"
163      * @ejb:transaction type="NotSupported"
164      */

165     public void methodLocalNotSupported(String JavaDoc p1, int p2){}
166
167     /**
168      * @ejb:interface-method view-type="both"
169      * @ejb:transaction type="NotSupported"
170      */

171     public void methodBothNotSupported(String JavaDoc p1, int p2){}
172
173     /**
174      * @ejb:home-method
175      * @ejb:transaction type="NotSupported"
176      */

177     public void ejbHomeMethodNotSupported(String JavaDoc p1, int p2,byte[] p3){}
178
179     /**
180      * @ejb:home-method
181      * @ejb:transaction type="Supports"
182      */

183     public void ejbHomeMethodSupports(){}
184
185     /**
186      * @ejb:home-method
187      * @ejb:transaction type="Required"
188      */

189     public void ejbHomeMethodRequired(String JavaDoc p1){}
190
191     /**
192      * @ejb:home-method
193      * @ejb:transaction type="RequiresNew"
194      */

195     public void ejbHomeMethodRequiresNew(){}
196
197     /**
198      * @ejb:home-method
199      * @ejb:transaction type="Mandatory"
200      */

201     public void ejbHomeMethodMandatory(){}
202
203     /**
204      * @ejb:home-method
205      * @ejb:transaction type="Never"
206      */

207     public void ejbHomeMethodNever(){}
208
209     /**
210      * @ejb:home-method
211      */

212     public void ejbHomeMethodNotSpecified(){}
213
214     /**
215      * @ejb:home-method view-type="remote"
216      * @ejb:transaction type="NotSupported"
217      */

218     public void ejbHomeMethodNotSupported(String JavaDoc p1, int p2){}
219
220     /**
221      * @ejb:home-method view-type="local"
222      * @ejb:transaction type="NotSupported"
223      */

224     public void ejbHomeLocalMethodNotSupported(String JavaDoc p1, int p2){}
225
226     /**
227      * @ejb:home-method view-type="both"
228      * @ejb:transaction type="NotSupported"
229      */

230     public void ejbHomeBothMethodNotSupported(String JavaDoc p1, int p2){}
231
232     /**
233      * @ejb:create-method
234      * @ejb:transaction type="NotSupported"
235      */

236     public void ejbCreateMethodNotSupported(String JavaDoc p1, int p2,byte[] p3){}
237
238     /**
239      * @ejb:create-method
240      * @ejb:transaction type="Supports"
241      */

242     public void ejbCreateMethodSupports(){}
243
244     /**
245      * @ejb:create-method
246      * @ejb:transaction type="Required"
247      */

248     public void ejbCreateMethodRequired(String JavaDoc p1){}
249
250     /**
251      * @ejb:home-method
252      * @ejb:transaction type="RequiresNew"
253      */

254     public void ejbCreateMethodRequiresNew(){}
255
256     /**
257      * @ejb:create-method
258      * @ejb:transaction type="Mandatory"
259      */

260     public void ejbCreateMethodMandatory(){}
261
262     /**
263      * @ejb:create-method
264      * @ejb:transaction type="Never"
265      */

266     public void ejbCreateMethodNever(){}
267
268     /**
269      * @ejb:create-method
270      */

271     public void ejbCreateMethodNotSpecified(){}
272
273     /**
274      * @ejb:create-method view-type="remote"
275      * @ejb:transaction type="Supports"
276      */

277     public void ejbCreateMethodSupports(Object JavaDoc[] [] o){}
278
279     /**
280      * @ejb:create-method view-type="local"
281      * @ejb:transaction type="Supports"
282      */

283     public void ejbCreateLocalMethodSupports(Object JavaDoc[] [] o){}
284
285     /**
286      * @ejb:create-method view-type="both"
287      * @ejb:transaction type="Supports"
288      */

289     public void ejbCreateBothMethodSupports(Object JavaDoc[] [] o){}
290
291 }
292
Popular Tags