KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > activity1 > cci > ResourceClassImpl


1 // ----------------------------------------------------------------------------
2
// ClassProxy/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:39:04 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.activity1.cci;
14
15 public class ResourceClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements ResourceClass {
18
19   public ResourceClassImpl(
20     org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage
21   ) {
22     super(refPackage);
23   }
24
25   public String JavaDoc refMofId(
26   ) {
27     return "org:opencrx:kernel:activity1:Resource";
28   }
29
30   public Resource getResource(
31     Object JavaDoc object
32   ) {
33     try {
34       if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) {
35         java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
36         args.add(object);
37         Resource target = (Resource)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Resource)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject(
43           object instanceof org.openmdx.compatibility.base.naming.Path
44             ? ((org.openmdx.compatibility.base.naming.Path)object).toXri()
45             : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri()
46         );
47       }
48     }
49     catch(org.openmdx.base.exception.ServiceException e) {
50         throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e);
51     }
52   }
53
54   public Resource createResource(
55   ) {
56     Resource target = (Resource)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Resource createResource(
65       String JavaDoc name
66     , java.math.BigDecimal JavaDoc overtimeRate
67     , short rateCurrency
68     , java.math.BigDecimal JavaDoc standardRate
69     , short accessLevelBrowse
70     , short accessLevelDelete
71     , short accessLevelUpdate
72     , boolean disabled
73   ) {
74     ResourceImpl _object = (ResourceImpl)createResource();
75     _object.setName(name);
76     _object.setOvertimeRate(overtimeRate);
77     _object.setRateCurrency(rateCurrency);
78     _object.setStandardRate(standardRate);
79     _object.setAccessLevelBrowse(accessLevelBrowse);
80     _object.setAccessLevelDelete(accessLevelDelete);
81     _object.setAccessLevelUpdate(accessLevelUpdate);
82     _object.setDisabled(disabled);
83     return _object;
84   }
85
86 // ----------------------------------------------------------------------------
87
// ClassProxy/ImplInstanceExtenderRequiredAttributes
88
// ----------------------------------------------------------------------------
89
public Resource extendAuditee(
90       org.opencrx.kernel.base.cci.Auditee _base
91     , String JavaDoc name
92     , java.math.BigDecimal JavaDoc overtimeRate
93     , short rateCurrency
94     , java.math.BigDecimal JavaDoc standardRate
95     , short accessLevelBrowse
96     , short accessLevelDelete
97     , short accessLevelUpdate
98     , boolean disabled
99   ) {
100     ResourceImpl _object = (ResourceImpl)getResource(_base);
101     _object.setName(name);
102     _object.setOvertimeRate(overtimeRate);
103     _object.setRateCurrency(rateCurrency);
104     _object.setStandardRate(standardRate);
105     _object.setAccessLevelBrowse(accessLevelBrowse);
106     _object.setAccessLevelDelete(accessLevelDelete);
107     _object.setAccessLevelUpdate(accessLevelUpdate);
108     _object.setDisabled(disabled);
109     return _object;
110   }
111
112 // ----------------------------------------------------------------------------
113
// ClassProxy/ImplInstanceExtenderRequiredAttributes
114
// ----------------------------------------------------------------------------
115
public Resource extendBookmarkable(
116       org.opencrx.kernel.base.cci.Bookmarkable _base
117     , String JavaDoc name
118     , java.math.BigDecimal JavaDoc overtimeRate
119     , short rateCurrency
120     , java.math.BigDecimal JavaDoc standardRate
121     , short accessLevelBrowse
122     , short accessLevelDelete
123     , short accessLevelUpdate
124     , boolean disabled
125   ) {
126     ResourceImpl _object = (ResourceImpl)getResource(_base);
127     _object.setName(name);
128     _object.setOvertimeRate(overtimeRate);
129     _object.setRateCurrency(rateCurrency);
130     _object.setStandardRate(standardRate);
131     _object.setAccessLevelBrowse(accessLevelBrowse);
132     _object.setAccessLevelDelete(accessLevelDelete);
133     _object.setAccessLevelUpdate(accessLevelUpdate);
134     _object.setDisabled(disabled);
135     return _object;
136   }
137
138 // ----------------------------------------------------------------------------
139
// ClassProxy/ImplInstanceExtenderRequiredAttributes
140
// ----------------------------------------------------------------------------
141
public Resource extendCloneable(
142       org.opencrx.kernel.base.cci.Cloneable _base
143     , String JavaDoc name
144     , java.math.BigDecimal JavaDoc overtimeRate
145     , short rateCurrency
146     , java.math.BigDecimal JavaDoc standardRate
147     , short accessLevelBrowse
148     , short accessLevelDelete
149     , short accessLevelUpdate
150     , boolean disabled
151   ) {
152     ResourceImpl _object = (ResourceImpl)getResource(_base);
153     _object.setName(name);
154     _object.setOvertimeRate(overtimeRate);
155     _object.setRateCurrency(rateCurrency);
156     _object.setStandardRate(standardRate);
157     _object.setAccessLevelBrowse(accessLevelBrowse);
158     _object.setAccessLevelDelete(accessLevelDelete);
159     _object.setAccessLevelUpdate(accessLevelUpdate);
160     _object.setDisabled(disabled);
161     return _object;
162   }
163
164 // ----------------------------------------------------------------------------
165
// ClassProxy/ImplInstanceExtenderRequiredAttributes
166
// ----------------------------------------------------------------------------
167
public Resource extendImporter(
168       org.opencrx.kernel.base.cci.Importer _base
169     , String JavaDoc name
170     , java.math.BigDecimal JavaDoc overtimeRate
171     , short rateCurrency
172     , java.math.BigDecimal JavaDoc standardRate
173     , short accessLevelBrowse
174     , short accessLevelDelete
175     , short accessLevelUpdate
176     , boolean disabled
177   ) {
178     ResourceImpl _object = (ResourceImpl)getResource(_base);
179     _object.setName(name);
180     _object.setOvertimeRate(overtimeRate);
181     _object.setRateCurrency(rateCurrency);
182     _object.setStandardRate(standardRate);
183     _object.setAccessLevelBrowse(accessLevelBrowse);
184     _object.setAccessLevelDelete(accessLevelDelete);
185     _object.setAccessLevelUpdate(accessLevelUpdate);
186     _object.setDisabled(disabled);
187     return _object;
188   }
189
190 // ----------------------------------------------------------------------------
191
// ClassProxy/ImplInstanceExtenderRequiredAttributes
192
// ----------------------------------------------------------------------------
193
public Resource extendSecureObject(
194       org.opencrx.kernel.base.cci.SecureObject _base
195     , String JavaDoc name
196     , java.math.BigDecimal JavaDoc overtimeRate
197     , short rateCurrency
198     , java.math.BigDecimal JavaDoc standardRate
199     , boolean disabled
200   ) {
201     ResourceImpl _object = (ResourceImpl)getResource(_base);
202     _object.setName(name);
203     _object.setOvertimeRate(overtimeRate);
204     _object.setRateCurrency(rateCurrency);
205     _object.setStandardRate(standardRate);
206     _object.setDisabled(disabled);
207     return _object;
208   }
209
210 // ----------------------------------------------------------------------------
211
// ClassProxy/ImplInstanceExtenderRequiredAttributes
212
// ----------------------------------------------------------------------------
213
public Resource extendSubscriptionTarget(
214       org.opencrx.kernel.base.cci.SubscriptionTarget _base
215     , String JavaDoc name
216     , java.math.BigDecimal JavaDoc overtimeRate
217     , short rateCurrency
218     , java.math.BigDecimal JavaDoc standardRate
219     , short accessLevelBrowse
220     , short accessLevelDelete
221     , short accessLevelUpdate
222     , boolean disabled
223   ) {
224     ResourceImpl _object = (ResourceImpl)getResource(_base);
225     _object.setName(name);
226     _object.setOvertimeRate(overtimeRate);
227     _object.setRateCurrency(rateCurrency);
228     _object.setStandardRate(standardRate);
229     _object.setAccessLevelBrowse(accessLevelBrowse);
230     _object.setAccessLevelDelete(accessLevelDelete);
231     _object.setAccessLevelUpdate(accessLevelUpdate);
232     _object.setDisabled(disabled);
233     return _object;
234   }
235
236 // ----------------------------------------------------------------------------
237
// ClassProxy/ImplInstanceExtenderRequiredAttributes
238
// ----------------------------------------------------------------------------
239
public Resource extendXmlExporter(
240       org.opencrx.kernel.base.cci.XmlExporter _base
241     , String JavaDoc name
242     , java.math.BigDecimal JavaDoc overtimeRate
243     , short rateCurrency
244     , java.math.BigDecimal JavaDoc standardRate
245     , short accessLevelBrowse
246     , short accessLevelDelete
247     , short accessLevelUpdate
248     , boolean disabled
249   ) {
250     ResourceImpl _object = (ResourceImpl)getResource(_base);
251     _object.setName(name);
252     _object.setOvertimeRate(overtimeRate);
253     _object.setRateCurrency(rateCurrency);
254     _object.setStandardRate(standardRate);
255     _object.setAccessLevelBrowse(accessLevelBrowse);
256     _object.setAccessLevelDelete(accessLevelDelete);
257     _object.setAccessLevelUpdate(accessLevelUpdate);
258     _object.setDisabled(disabled);
259     return _object;
260   }
261
262 // ----------------------------------------------------------------------------
263
// ClassProxy/ImplInstanceExtenderRequiredAttributes
264
// ----------------------------------------------------------------------------
265
public Resource extendDepotReferenceHolder(
266       org.opencrx.kernel.depot1.cci.DepotReferenceHolder _base
267     , String JavaDoc name
268     , java.math.BigDecimal JavaDoc overtimeRate
269     , short rateCurrency
270     , java.math.BigDecimal JavaDoc standardRate
271     , short accessLevelBrowse
272     , short accessLevelDelete
273     , short accessLevelUpdate
274     , boolean disabled
275   ) {
276     ResourceImpl _object = (ResourceImpl)getResource(_base);
277     _object.setName(name);
278     _object.setOvertimeRate(overtimeRate);
279     _object.setRateCurrency(rateCurrency);
280     _object.setStandardRate(standardRate);
281     _object.setAccessLevelBrowse(accessLevelBrowse);
282     _object.setAccessLevelDelete(accessLevelDelete);
283     _object.setAccessLevelUpdate(accessLevelUpdate);
284     _object.setDisabled(disabled);
285     return _object;
286   }
287
288 // ----------------------------------------------------------------------------
289
// ClassProxy/ImplInstanceExtenderRequiredAttributes
290
// ----------------------------------------------------------------------------
291
public Resource extendCrxObject(
292       org.opencrx.kernel.generic.cci.CrxObject _base
293     , String JavaDoc name
294     , java.math.BigDecimal JavaDoc overtimeRate
295     , short rateCurrency
296     , java.math.BigDecimal JavaDoc standardRate
297   ) {
298     ResourceImpl _object = (ResourceImpl)getResource(_base);
299     _object.setName(name);
300     _object.setOvertimeRate(overtimeRate);
301     _object.setRateCurrency(rateCurrency);
302     _object.setStandardRate(standardRate);
303     return _object;
304   }
305
306 // ----------------------------------------------------------------------------
307
// ClassProxy/ImplInstanceExtenderRequiredAttributes
308
// ----------------------------------------------------------------------------
309
public Resource extendBasicObject(
310       org.openmdx.base.cci.BasicObject _base
311     , String JavaDoc name
312     , java.math.BigDecimal JavaDoc overtimeRate
313     , short rateCurrency
314     , java.math.BigDecimal JavaDoc standardRate
315     , short accessLevelBrowse
316     , short accessLevelDelete
317     , short accessLevelUpdate
318     , boolean disabled
319   ) {
320     ResourceImpl _object = (ResourceImpl)getResource(_base);
321     _object.setName(name);
322     _object.setOvertimeRate(overtimeRate);
323     _object.setRateCurrency(rateCurrency);
324     _object.setStandardRate(standardRate);
325     _object.setAccessLevelBrowse(accessLevelBrowse);
326     _object.setAccessLevelDelete(accessLevelDelete);
327     _object.setAccessLevelUpdate(accessLevelUpdate);
328     _object.setDisabled(disabled);
329     return _object;
330   }
331
332 // ----------------------------------------------------------------------------
333
// ClassProxy/ImplInstanceExtenderRequiredAttributes
334
// ----------------------------------------------------------------------------
335
public Resource extendContextCapable(
336       org.openmdx.base.cci.ContextCapable _base
337     , String JavaDoc name
338     , java.math.BigDecimal JavaDoc overtimeRate
339     , short rateCurrency
340     , java.math.BigDecimal JavaDoc standardRate
341     , short accessLevelBrowse
342     , short accessLevelDelete
343     , short accessLevelUpdate
344     , boolean disabled
345   ) {
346     ResourceImpl _object = (ResourceImpl)getResource(_base);
347     _object.setName(name);
348     _object.setOvertimeRate(overtimeRate);
349     _object.setRateCurrency(rateCurrency);
350     _object.setStandardRate(standardRate);
351     _object.setAccessLevelBrowse(accessLevelBrowse);
352     _object.setAccessLevelDelete(accessLevelDelete);
353     _object.setAccessLevelUpdate(accessLevelUpdate);
354     _object.setDisabled(disabled);
355     return _object;
356   }
357
358 // ----------------------------------------------------------------------------
359
// ClassProxy/ImplInstanceExtenderRequiredAttributes
360
// ----------------------------------------------------------------------------
361
public Resource extendExtentCapable(
362       org.openmdx.base.cci.ExtentCapable _base
363     , String JavaDoc name
364     , java.math.BigDecimal JavaDoc overtimeRate
365     , short rateCurrency
366     , java.math.BigDecimal JavaDoc standardRate
367     , short accessLevelBrowse
368     , short accessLevelDelete
369     , short accessLevelUpdate
370     , boolean disabled
371   ) {
372     ResourceImpl _object = (ResourceImpl)getResource(_base);
373     _object.setName(name);
374     _object.setOvertimeRate(overtimeRate);
375     _object.setRateCurrency(rateCurrency);
376     _object.setStandardRate(standardRate);
377     _object.setAccessLevelBrowse(accessLevelBrowse);
378     _object.setAccessLevelDelete(accessLevelDelete);
379     _object.setAccessLevelUpdate(accessLevelUpdate);
380     _object.setDisabled(disabled);
381     return _object;
382   }
383
384 // ----------------------------------------------------------------------------
385
// ClassProxy/ImplInstanceExtenderRequiredAttributes
386
// ----------------------------------------------------------------------------
387
public Resource extendViewCapable(
388       org.openmdx.compatibility.view1.cci.ViewCapable _base
389     , String JavaDoc name
390     , java.math.BigDecimal JavaDoc overtimeRate
391     , short rateCurrency
392     , java.math.BigDecimal JavaDoc standardRate
393     , short accessLevelBrowse
394     , short accessLevelDelete
395     , short accessLevelUpdate
396     , boolean disabled
397   ) {
398     ResourceImpl _object = (ResourceImpl)getResource(_base);
399     _object.setName(name);
400     _object.setOvertimeRate(overtimeRate);
401     _object.setRateCurrency(rateCurrency);
402     _object.setStandardRate(standardRate);
403     _object.setAccessLevelBrowse(accessLevelBrowse);
404     _object.setAccessLevelDelete(accessLevelDelete);
405     _object.setAccessLevelUpdate(accessLevelUpdate);
406     _object.setDisabled(disabled);
407     return _object;
408   }
409
410 // ----------------------------------------------------------------------------
411
// ClassProxy/ImplEnd.vm
412
// ----------------------------------------------------------------------------
413
}
414
Popular Tags