KickJava   Java API By Example, From Geeks To Geeks.

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


1 // ----------------------------------------------------------------------------
2
// Instance/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 AbstractWorkRecordImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements AbstractWorkRecord {
18
19   public AbstractWorkRecordImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplAttributeGet0_1
28
// ----------------------------------------------------------------------------
29
public java.math.BigDecimal JavaDoc getBillableAmount (
30   ) {
31     return (java.math.BigDecimal JavaDoc)this.refGetValue("billableAmount", 0);
32   }
33 // ----------------------------------------------------------------------------
34
// Instance/ImplAttributeSet0_1
35
// ----------------------------------------------------------------------------
36
protected void setBillableAmount(
37     java.math.BigDecimal JavaDoc newValue
38   ) {
39     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billableAmount", 0, newValue);
40   }
41
42 // ----------------------------------------------------------------------------
43
// Instance/ImplAttributeGet1_1
44
// ----------------------------------------------------------------------------
45
public short getBillingCurrency(
46   ) {
47     return getBillingCurrency(0);
48   }
49
50   protected short getBillingCurrency(
51     int index
52   ) {
53     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billingCurrency", index)).shortValue();
54   }
55
56 // ----------------------------------------------------------------------------
57
// Instance/ImplAttributeSet1_1
58
// ----------------------------------------------------------------------------
59
public void setBillingCurrency(
60     short newValue
61   ) {
62     setBillingCurrency(0, newValue);
63   }
64
65   protected void setBillingCurrency(
66     int index,
67     short newValue
68   ) {
69     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billingCurrency", index, new Short JavaDoc(newValue));
70   }
71 // ----------------------------------------------------------------------------
72
// Instance/ImplAttributeGet0_1
73
// ----------------------------------------------------------------------------
74
public String JavaDoc getDescription (
75   ) {
76     return (String JavaDoc)this.refGetValue("description", 0);
77   }
78 // ----------------------------------------------------------------------------
79
// Instance/ImplAttributeSet0_1
80
// ----------------------------------------------------------------------------
81
public void setDescription(
82     String JavaDoc newValue
83   ) {
84     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:description", 0, newValue);
85   }
86
87 // ----------------------------------------------------------------------------
88
// Instance/ImplAttributeGet1_1
89
// ----------------------------------------------------------------------------
90
public short getDurationCalculationMode(
91   ) {
92     return getDurationCalculationMode(0);
93   }
94
95   protected short getDurationCalculationMode(
96     int index
97   ) {
98     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationCalculationMode", index)).shortValue();
99   }
100
101 // ----------------------------------------------------------------------------
102
// Instance/ImplAttributeSet1_1
103
// ----------------------------------------------------------------------------
104
public void setDurationCalculationMode(
105     short newValue
106   ) {
107     setDurationCalculationMode(0, newValue);
108   }
109
110   protected void setDurationCalculationMode(
111     int index,
112     short newValue
113   ) {
114     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationCalculationMode", index, new Short JavaDoc(newValue));
115   }
116 // ----------------------------------------------------------------------------
117
// Instance/ImplAttributeGet1_1
118
// ----------------------------------------------------------------------------
119
public int getDurationHours(
120   ) {
121     return getDurationHours(0);
122   }
123
124   protected int getDurationHours(
125     int index
126   ) {
127     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationHours", index)).intValue();
128   }
129
130 // ----------------------------------------------------------------------------
131
// Instance/ImplAttributeSet1_1
132
// ----------------------------------------------------------------------------
133
public void setDurationHours(
134     int newValue
135   ) {
136     setDurationHours(0, newValue);
137   }
138
139   protected void setDurationHours(
140     int index,
141     int newValue
142   ) {
143     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationHours", index, new Integer JavaDoc(newValue));
144   }
145 // ----------------------------------------------------------------------------
146
// Instance/ImplAttributeGet1_1
147
// ----------------------------------------------------------------------------
148
public int getDurationMinutes(
149   ) {
150     return getDurationMinutes(0);
151   }
152
153   protected int getDurationMinutes(
154     int index
155   ) {
156     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationMinutes", index)).intValue();
157   }
158
159 // ----------------------------------------------------------------------------
160
// Instance/ImplAttributeSet1_1
161
// ----------------------------------------------------------------------------
162
public void setDurationMinutes(
163     int newValue
164   ) {
165     setDurationMinutes(0, newValue);
166   }
167
168   protected void setDurationMinutes(
169     int index,
170     int newValue
171   ) {
172     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationMinutes", index, new Integer JavaDoc(newValue));
173   }
174 // ----------------------------------------------------------------------------
175
// Instance/ImplAttributeGet0_1
176
// ----------------------------------------------------------------------------
177
public java.util.Date JavaDoc getEndedAt (
178   ) {
179     return (java.util.Date JavaDoc)this.refGetValue("endedAt", 0);
180   }
181 // ----------------------------------------------------------------------------
182
// Instance/ImplAttributeSet0_1
183
// ----------------------------------------------------------------------------
184
public void setEndedAt(
185     java.util.Date JavaDoc newValue
186   ) {
187     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:endedAt", 0, newValue);
188   }
189
190 // ----------------------------------------------------------------------------
191
// Instance/ImplAttributeGet1_1
192
// ----------------------------------------------------------------------------
193
public boolean isBillable(
194   ) {
195     return isBillable(0);
196   }
197
198   protected boolean isBillable(
199     int index
200   ) {
201     return ((Boolean JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:isBillable", index)).booleanValue();
202   }
203
204 // ----------------------------------------------------------------------------
205
// Instance/ImplAttributeSet1_1
206
// ----------------------------------------------------------------------------
207
public void setBillable(
208     boolean newValue
209   ) {
210     setBillable(0, newValue);
211   }
212
213   protected void setBillable(
214     int index,
215     boolean newValue
216   ) {
217     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:isBillable", index, new Boolean JavaDoc(newValue));
218   }
219 // ----------------------------------------------------------------------------
220
// Instance/ImplAttributeGet1_1
221
// ----------------------------------------------------------------------------
222
public String JavaDoc getName(
223   ) {
224     return getName(0);
225   }
226
227   protected String JavaDoc getName(
228     int index
229   ) {
230     return (String JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:name", index);
231   }
232
233 // ----------------------------------------------------------------------------
234
// Instance/ImplAttributeSet1_1
235
// ----------------------------------------------------------------------------
236
public void setName(
237     String JavaDoc newValue
238   ) {
239     setName(0, newValue);
240   }
241
242   protected void setName(
243     int index,
244     String JavaDoc newValue
245   ) {
246     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:name", index, newValue);
247   }
248 // ----------------------------------------------------------------------------
249
// Instance/ImplAttributeGet0_1
250
// ----------------------------------------------------------------------------
251
public Integer JavaDoc getPauseDurationHours (
252   ) {
253     return (Integer JavaDoc)this.refGetValue("pauseDurationHours", 0);
254   }
255 // ----------------------------------------------------------------------------
256
// Instance/ImplAttributeSet0_1
257
// ----------------------------------------------------------------------------
258
public void setPauseDurationHours(
259     Integer JavaDoc newValue
260   ) {
261     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:pauseDurationHours", 0, newValue);
262   }
263
264 // ----------------------------------------------------------------------------
265
// Instance/ImplAttributeGet0_1
266
// ----------------------------------------------------------------------------
267
public Integer JavaDoc getPauseDurationMinutes (
268   ) {
269     return (Integer JavaDoc)this.refGetValue("pauseDurationMinutes", 0);
270   }
271 // ----------------------------------------------------------------------------
272
// Instance/ImplAttributeSet0_1
273
// ----------------------------------------------------------------------------
274
public void setPauseDurationMinutes(
275     Integer JavaDoc newValue
276   ) {
277     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:pauseDurationMinutes", 0, newValue);
278   }
279
280 // ----------------------------------------------------------------------------
281
// Instance/ImplAttributeGet0_1
282
// ----------------------------------------------------------------------------
283
public java.math.BigDecimal JavaDoc getRate (
284   ) {
285     return (java.math.BigDecimal JavaDoc)this.refGetValue("rate", 0);
286   }
287 // ----------------------------------------------------------------------------
288
// Instance/ImplAttributeSet0_1
289
// ----------------------------------------------------------------------------
290
public void setRate(
291     java.math.BigDecimal JavaDoc newValue
292   ) {
293     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rate", 0, newValue);
294   }
295
296 // ----------------------------------------------------------------------------
297
// Instance/ImplAttributeGet1_1
298
// ----------------------------------------------------------------------------
299
public short getRateType(
300   ) {
301     return getRateType(0);
302   }
303
304   protected short getRateType(
305     int index
306   ) {
307     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rateType", index)).shortValue();
308   }
309
310 // ----------------------------------------------------------------------------
311
// Instance/ImplAttributeSet1_1
312
// ----------------------------------------------------------------------------
313
public void setRateType(
314     short newValue
315   ) {
316     setRateType(0, newValue);
317   }
318
319   protected void setRateType(
320     int index,
321     short newValue
322   ) {
323     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rateType", index, new Short JavaDoc(newValue));
324   }
325 // ----------------------------------------------------------------------------
326
// Instance/ImplAttributeGet0_1
327
// ----------------------------------------------------------------------------
328
public java.util.Date JavaDoc getStartedAt (
329   ) {
330     return (java.util.Date JavaDoc)this.refGetValue("startedAt", 0);
331   }
332 // ----------------------------------------------------------------------------
333
// Instance/ImplAttributeSet0_1
334
// ----------------------------------------------------------------------------
335
public void setStartedAt(
336     java.util.Date JavaDoc newValue
337   ) {
338     refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:startedAt", 0, newValue);
339   }
340
341 // ----------------------------------------------------------------------------
342
// Instance/ImplReferenceGet0_1NoQualifier
343
// ----------------------------------------------------------------------------
344
public org.opencrx.kernel.depot1.cci.CompoundBooking getWorkCb(
345   ) {
346     return (org.opencrx.kernel.depot1.cci.CompoundBooking)refGetValue(
347       "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb"
348     );
349   }
350
351 // ----------------------------------------------------------------------------
352
// Instance/ImplReferenceSetNoQualifier
353
// ----------------------------------------------------------------------------
354
protected void setWorkCb(
355     org.opencrx.kernel.depot1.cci.CompoundBooking newValue
356   ) {
357     refSetValue(
358       "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb",
359       newValue
360     );
361   }
362
363 // ----------------------------------------------------------------------------
364
// Instance/ImplReferenceRemoveOptional
365
// ----------------------------------------------------------------------------
366
protected void removeWorkCb (
367   ) {
368     refRemoveValue(
369       "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb"
370     );
371   }
372 // ----------------------------------------------------------------------------
373
// Instance/ImplOperation
374
// ----------------------------------------------------------------------------
375
public org.openmdx.base.cci.Void assignToMe(
376       org.openmdx.base.cci.Void params
377   ) throws javax.jmi.reflect.RefException {
378     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
379     args.add(params);
380     return (org.openmdx.base.cci.Void)refInvokeOperation(
381       "org:opencrx:kernel:base:Assignable:assignToMe",
382       args
383     );
384   }
385
386   public org.openmdx.base.cci.Void assignToMe(
387   ) throws javax.jmi.reflect.RefException {
388     return assignToMe(
389       ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid(
390               )
391     );
392   }
393
394 // ----------------------------------------------------------------------------
395
// Instance/ImplEnd
396
// ----------------------------------------------------------------------------
397
}
398
Popular Tags