KickJava   Java API By Example, From Geeks To Geeks.

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


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:02 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.activity1.cci;
14
15 public class WorkReportEntryClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements WorkReportEntryClass {
18
19   public WorkReportEntryClassImpl(
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:WorkReportEntry";
28   }
29
30   public WorkReportEntry getWorkReportEntry(
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         WorkReportEntry target = (WorkReportEntry)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (WorkReportEntry)((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 WorkReportEntry createWorkReportEntry(
55   ) {
56     WorkReportEntry target = (WorkReportEntry)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public WorkReportEntry createWorkReportEntry(
65       String JavaDoc activityNumber
66     , short billingCurrency
67     , short durationHours
68     , short durationMinutes
69     , java.util.Date JavaDoc endedAt
70     , String JavaDoc name
71     , java.util.Date JavaDoc startedAt
72     , short accessLevelBrowse
73     , short accessLevelDelete
74     , short accessLevelUpdate
75   ) {
76     WorkReportEntryImpl _object = (WorkReportEntryImpl)createWorkReportEntry();
77     _object.setActivityNumber(activityNumber);
78     _object.setBillingCurrency(billingCurrency);
79     _object.setDurationHours(durationHours);
80     _object.setDurationMinutes(durationMinutes);
81     _object.setEndedAt(endedAt);
82     _object.setName(name);
83     _object.setStartedAt(startedAt);
84     _object.setAccessLevelBrowse(accessLevelBrowse);
85     _object.setAccessLevelDelete(accessLevelDelete);
86     _object.setAccessLevelUpdate(accessLevelUpdate);
87     return _object;
88   }
89
90 // ----------------------------------------------------------------------------
91
// ClassProxy/ImplInstanceExtenderRequiredAttributes
92
// ----------------------------------------------------------------------------
93
public WorkReportEntry extendSecureObject(
94       org.opencrx.kernel.base.cci.SecureObject _base
95     , String JavaDoc activityNumber
96     , short billingCurrency
97     , short durationHours
98     , short durationMinutes
99     , java.util.Date JavaDoc endedAt
100     , String JavaDoc name
101     , java.util.Date JavaDoc startedAt
102   ) {
103     WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base);
104     _object.setActivityNumber(activityNumber);
105     _object.setBillingCurrency(billingCurrency);
106     _object.setDurationHours(durationHours);
107     _object.setDurationMinutes(durationMinutes);
108     _object.setEndedAt(endedAt);
109     _object.setName(name);
110     _object.setStartedAt(startedAt);
111     return _object;
112   }
113
114 // ----------------------------------------------------------------------------
115
// ClassProxy/ImplInstanceExtenderRequiredAttributes
116
// ----------------------------------------------------------------------------
117
public WorkReportEntry extendBasicObject(
118       org.openmdx.base.cci.BasicObject _base
119     , String JavaDoc activityNumber
120     , short billingCurrency
121     , short durationHours
122     , short durationMinutes
123     , java.util.Date JavaDoc endedAt
124     , String JavaDoc name
125     , java.util.Date JavaDoc startedAt
126     , short accessLevelBrowse
127     , short accessLevelDelete
128     , short accessLevelUpdate
129   ) {
130     WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base);
131     _object.setActivityNumber(activityNumber);
132     _object.setBillingCurrency(billingCurrency);
133     _object.setDurationHours(durationHours);
134     _object.setDurationMinutes(durationMinutes);
135     _object.setEndedAt(endedAt);
136     _object.setName(name);
137     _object.setStartedAt(startedAt);
138     _object.setAccessLevelBrowse(accessLevelBrowse);
139     _object.setAccessLevelDelete(accessLevelDelete);
140     _object.setAccessLevelUpdate(accessLevelUpdate);
141     return _object;
142   }
143
144 // ----------------------------------------------------------------------------
145
// ClassProxy/ImplInstanceExtenderRequiredAttributes
146
// ----------------------------------------------------------------------------
147
public WorkReportEntry extendContextCapable(
148       org.openmdx.base.cci.ContextCapable _base
149     , String JavaDoc activityNumber
150     , short billingCurrency
151     , short durationHours
152     , short durationMinutes
153     , java.util.Date JavaDoc endedAt
154     , String JavaDoc name
155     , java.util.Date JavaDoc startedAt
156     , short accessLevelBrowse
157     , short accessLevelDelete
158     , short accessLevelUpdate
159   ) {
160     WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base);
161     _object.setActivityNumber(activityNumber);
162     _object.setBillingCurrency(billingCurrency);
163     _object.setDurationHours(durationHours);
164     _object.setDurationMinutes(durationMinutes);
165     _object.setEndedAt(endedAt);
166     _object.setName(name);
167     _object.setStartedAt(startedAt);
168     _object.setAccessLevelBrowse(accessLevelBrowse);
169     _object.setAccessLevelDelete(accessLevelDelete);
170     _object.setAccessLevelUpdate(accessLevelUpdate);
171     return _object;
172   }
173
174 // ----------------------------------------------------------------------------
175
// ClassProxy/ImplInstanceExtenderRequiredAttributes
176
// ----------------------------------------------------------------------------
177
public WorkReportEntry extendExtentCapable(
178       org.openmdx.base.cci.ExtentCapable _base
179     , String JavaDoc activityNumber
180     , short billingCurrency
181     , short durationHours
182     , short durationMinutes
183     , java.util.Date JavaDoc endedAt
184     , String JavaDoc name
185     , java.util.Date JavaDoc startedAt
186     , short accessLevelBrowse
187     , short accessLevelDelete
188     , short accessLevelUpdate
189   ) {
190     WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base);
191     _object.setActivityNumber(activityNumber);
192     _object.setBillingCurrency(billingCurrency);
193     _object.setDurationHours(durationHours);
194     _object.setDurationMinutes(durationMinutes);
195     _object.setEndedAt(endedAt);
196     _object.setName(name);
197     _object.setStartedAt(startedAt);
198     _object.setAccessLevelBrowse(accessLevelBrowse);
199     _object.setAccessLevelDelete(accessLevelDelete);
200     _object.setAccessLevelUpdate(accessLevelUpdate);
201     return _object;
202   }
203
204 // ----------------------------------------------------------------------------
205
// ClassProxy/ImplInstanceExtenderRequiredAttributes
206
// ----------------------------------------------------------------------------
207
public WorkReportEntry extendViewCapable(
208       org.openmdx.compatibility.view1.cci.ViewCapable _base
209     , String JavaDoc activityNumber
210     , short billingCurrency
211     , short durationHours
212     , short durationMinutes
213     , java.util.Date JavaDoc endedAt
214     , String JavaDoc name
215     , java.util.Date JavaDoc startedAt
216     , short accessLevelBrowse
217     , short accessLevelDelete
218     , short accessLevelUpdate
219   ) {
220     WorkReportEntryImpl _object = (WorkReportEntryImpl)getWorkReportEntry(_base);
221     _object.setActivityNumber(activityNumber);
222     _object.setBillingCurrency(billingCurrency);
223     _object.setDurationHours(durationHours);
224     _object.setDurationMinutes(durationMinutes);
225     _object.setEndedAt(endedAt);
226     _object.setName(name);
227     _object.setStartedAt(startedAt);
228     _object.setAccessLevelBrowse(accessLevelBrowse);
229     _object.setAccessLevelDelete(accessLevelDelete);
230     _object.setAccessLevelUpdate(accessLevelUpdate);
231     return _object;
232   }
233
234 // ----------------------------------------------------------------------------
235
// ClassProxy/ImplEnd.vm
236
// ----------------------------------------------------------------------------
237
}
238
Popular Tags