KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > product1 > cci > ProductClassImpl


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:38:52 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.product1.cci;
14
15 public class ProductClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements ProductClass {
18
19   public ProductClassImpl(
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:product1:Product";
28   }
29
30   public Product getProduct(
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         Product target = (Product)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Product)((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 Product createProduct(
55   ) {
56     Product target = (Product)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Product createProduct(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , boolean disabled
69     , String JavaDoc name
70     , String JavaDoc productNumber
71     , short productState
72     , short productType
73     , int itemNumber
74     , short minMaxQuantityHandling
75   ) {
76     ProductImpl _object = (ProductImpl)createProduct();
77     _object.setAccessLevelBrowse(accessLevelBrowse);
78     _object.setAccessLevelDelete(accessLevelDelete);
79     _object.setAccessLevelUpdate(accessLevelUpdate);
80     _object.setDisabled(disabled);
81     _object.setName(name);
82     _object.setProductNumber(productNumber);
83     _object.setProductState(productState);
84     _object.setProductType(productType);
85     _object.setItemNumber(itemNumber);
86     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
87     return _object;
88   }
89
90 // ----------------------------------------------------------------------------
91
// ClassProxy/ImplInstanceExtenderRequiredAttributes
92
// ----------------------------------------------------------------------------
93
public Product extendAuditee(
94       org.opencrx.kernel.base.cci.Auditee _base
95     , short accessLevelBrowse
96     , short accessLevelDelete
97     , short accessLevelUpdate
98     , boolean disabled
99     , String JavaDoc name
100     , String JavaDoc productNumber
101     , short productState
102     , short productType
103     , int itemNumber
104     , short minMaxQuantityHandling
105   ) {
106     ProductImpl _object = (ProductImpl)getProduct(_base);
107     _object.setAccessLevelBrowse(accessLevelBrowse);
108     _object.setAccessLevelDelete(accessLevelDelete);
109     _object.setAccessLevelUpdate(accessLevelUpdate);
110     _object.setDisabled(disabled);
111     _object.setName(name);
112     _object.setProductNumber(productNumber);
113     _object.setProductState(productState);
114     _object.setProductType(productType);
115     _object.setItemNumber(itemNumber);
116     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
117     return _object;
118   }
119
120 // ----------------------------------------------------------------------------
121
// ClassProxy/ImplInstanceExtenderRequiredAttributes
122
// ----------------------------------------------------------------------------
123
public Product extendBookmarkable(
124       org.opencrx.kernel.base.cci.Bookmarkable _base
125     , short accessLevelBrowse
126     , short accessLevelDelete
127     , short accessLevelUpdate
128     , boolean disabled
129     , String JavaDoc name
130     , String JavaDoc productNumber
131     , short productState
132     , short productType
133     , int itemNumber
134     , short minMaxQuantityHandling
135   ) {
136     ProductImpl _object = (ProductImpl)getProduct(_base);
137     _object.setAccessLevelBrowse(accessLevelBrowse);
138     _object.setAccessLevelDelete(accessLevelDelete);
139     _object.setAccessLevelUpdate(accessLevelUpdate);
140     _object.setDisabled(disabled);
141     _object.setName(name);
142     _object.setProductNumber(productNumber);
143     _object.setProductState(productState);
144     _object.setProductType(productType);
145     _object.setItemNumber(itemNumber);
146     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
147     return _object;
148   }
149
150 // ----------------------------------------------------------------------------
151
// ClassProxy/ImplInstanceExtenderRequiredAttributes
152
// ----------------------------------------------------------------------------
153
public Product extendCloneable(
154       org.opencrx.kernel.base.cci.Cloneable _base
155     , short accessLevelBrowse
156     , short accessLevelDelete
157     , short accessLevelUpdate
158     , boolean disabled
159     , String JavaDoc name
160     , String JavaDoc productNumber
161     , short productState
162     , short productType
163     , int itemNumber
164     , short minMaxQuantityHandling
165   ) {
166     ProductImpl _object = (ProductImpl)getProduct(_base);
167     _object.setAccessLevelBrowse(accessLevelBrowse);
168     _object.setAccessLevelDelete(accessLevelDelete);
169     _object.setAccessLevelUpdate(accessLevelUpdate);
170     _object.setDisabled(disabled);
171     _object.setName(name);
172     _object.setProductNumber(productNumber);
173     _object.setProductState(productState);
174     _object.setProductType(productType);
175     _object.setItemNumber(itemNumber);
176     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
177     return _object;
178   }
179
180 // ----------------------------------------------------------------------------
181
// ClassProxy/ImplInstanceExtenderRequiredAttributes
182
// ----------------------------------------------------------------------------
183
public Product extendImporter(
184       org.opencrx.kernel.base.cci.Importer _base
185     , short accessLevelBrowse
186     , short accessLevelDelete
187     , short accessLevelUpdate
188     , boolean disabled
189     , String JavaDoc name
190     , String JavaDoc productNumber
191     , short productState
192     , short productType
193     , int itemNumber
194     , short minMaxQuantityHandling
195   ) {
196     ProductImpl _object = (ProductImpl)getProduct(_base);
197     _object.setAccessLevelBrowse(accessLevelBrowse);
198     _object.setAccessLevelDelete(accessLevelDelete);
199     _object.setAccessLevelUpdate(accessLevelUpdate);
200     _object.setDisabled(disabled);
201     _object.setName(name);
202     _object.setProductNumber(productNumber);
203     _object.setProductState(productState);
204     _object.setProductType(productType);
205     _object.setItemNumber(itemNumber);
206     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
207     return _object;
208   }
209
210 // ----------------------------------------------------------------------------
211
// ClassProxy/ImplInstanceExtenderRequiredAttributes
212
// ----------------------------------------------------------------------------
213
public Product extendSecureObject(
214       org.opencrx.kernel.base.cci.SecureObject _base
215     , boolean disabled
216     , String JavaDoc name
217     , String JavaDoc productNumber
218     , short productState
219     , short productType
220     , int itemNumber
221     , short minMaxQuantityHandling
222   ) {
223     ProductImpl _object = (ProductImpl)getProduct(_base);
224     _object.setDisabled(disabled);
225     _object.setName(name);
226     _object.setProductNumber(productNumber);
227     _object.setProductState(productState);
228     _object.setProductType(productType);
229     _object.setItemNumber(itemNumber);
230     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
231     return _object;
232   }
233
234 // ----------------------------------------------------------------------------
235
// ClassProxy/ImplInstanceExtenderRequiredAttributes
236
// ----------------------------------------------------------------------------
237
public Product extendSubscriptionTarget(
238       org.opencrx.kernel.base.cci.SubscriptionTarget _base
239     , short accessLevelBrowse
240     , short accessLevelDelete
241     , short accessLevelUpdate
242     , boolean disabled
243     , String JavaDoc name
244     , String JavaDoc productNumber
245     , short productState
246     , short productType
247     , int itemNumber
248     , short minMaxQuantityHandling
249   ) {
250     ProductImpl _object = (ProductImpl)getProduct(_base);
251     _object.setAccessLevelBrowse(accessLevelBrowse);
252     _object.setAccessLevelDelete(accessLevelDelete);
253     _object.setAccessLevelUpdate(accessLevelUpdate);
254     _object.setDisabled(disabled);
255     _object.setName(name);
256     _object.setProductNumber(productNumber);
257     _object.setProductState(productState);
258     _object.setProductType(productType);
259     _object.setItemNumber(itemNumber);
260     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
261     return _object;
262   }
263
264 // ----------------------------------------------------------------------------
265
// ClassProxy/ImplInstanceExtenderRequiredAttributes
266
// ----------------------------------------------------------------------------
267
public Product extendXmlExporter(
268       org.opencrx.kernel.base.cci.XmlExporter _base
269     , short accessLevelBrowse
270     , short accessLevelDelete
271     , short accessLevelUpdate
272     , boolean disabled
273     , String JavaDoc name
274     , String JavaDoc productNumber
275     , short productState
276     , short productType
277     , int itemNumber
278     , short minMaxQuantityHandling
279   ) {
280     ProductImpl _object = (ProductImpl)getProduct(_base);
281     _object.setAccessLevelBrowse(accessLevelBrowse);
282     _object.setAccessLevelDelete(accessLevelDelete);
283     _object.setAccessLevelUpdate(accessLevelUpdate);
284     _object.setDisabled(disabled);
285     _object.setName(name);
286     _object.setProductNumber(productNumber);
287     _object.setProductState(productState);
288     _object.setProductType(productType);
289     _object.setItemNumber(itemNumber);
290     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
291     return _object;
292   }
293
294 // ----------------------------------------------------------------------------
295
// ClassProxy/ImplInstanceExtenderRequiredAttributes
296
// ----------------------------------------------------------------------------
297
public Product extendDepotReferenceHolder(
298       org.opencrx.kernel.depot1.cci.DepotReferenceHolder _base
299     , short accessLevelBrowse
300     , short accessLevelDelete
301     , short accessLevelUpdate
302     , boolean disabled
303     , String JavaDoc name
304     , String JavaDoc productNumber
305     , short productState
306     , short productType
307     , int itemNumber
308     , short minMaxQuantityHandling
309   ) {
310     ProductImpl _object = (ProductImpl)getProduct(_base);
311     _object.setAccessLevelBrowse(accessLevelBrowse);
312     _object.setAccessLevelDelete(accessLevelDelete);
313     _object.setAccessLevelUpdate(accessLevelUpdate);
314     _object.setDisabled(disabled);
315     _object.setName(name);
316     _object.setProductNumber(productNumber);
317     _object.setProductState(productState);
318     _object.setProductType(productType);
319     _object.setItemNumber(itemNumber);
320     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
321     return _object;
322   }
323
324 // ----------------------------------------------------------------------------
325
// ClassProxy/ImplInstanceExtenderRequiredAttributes
326
// ----------------------------------------------------------------------------
327
public Product extendCrxObject(
328       org.opencrx.kernel.generic.cci.CrxObject _base
329     , String JavaDoc name
330     , String JavaDoc productNumber
331     , short productState
332     , short productType
333     , int itemNumber
334     , short minMaxQuantityHandling
335   ) {
336     ProductImpl _object = (ProductImpl)getProduct(_base);
337     _object.setName(name);
338     _object.setProductNumber(productNumber);
339     _object.setProductState(productState);
340     _object.setProductType(productType);
341     _object.setItemNumber(itemNumber);
342     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
343     return _object;
344   }
345
346 // ----------------------------------------------------------------------------
347
// ClassProxy/ImplInstanceExtenderRequiredAttributes
348
// ----------------------------------------------------------------------------
349
public Product extendDescriptionContainer(
350       org.opencrx.kernel.generic.cci.DescriptionContainer _base
351     , short accessLevelBrowse
352     , short accessLevelDelete
353     , short accessLevelUpdate
354     , boolean disabled
355     , String JavaDoc name
356     , String JavaDoc productNumber
357     , short productState
358     , short productType
359     , int itemNumber
360     , short minMaxQuantityHandling
361   ) {
362     ProductImpl _object = (ProductImpl)getProduct(_base);
363     _object.setAccessLevelBrowse(accessLevelBrowse);
364     _object.setAccessLevelDelete(accessLevelDelete);
365     _object.setAccessLevelUpdate(accessLevelUpdate);
366     _object.setDisabled(disabled);
367     _object.setName(name);
368     _object.setProductNumber(productNumber);
369     _object.setProductState(productState);
370     _object.setProductType(productType);
371     _object.setItemNumber(itemNumber);
372     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
373     return _object;
374   }
375
376 // ----------------------------------------------------------------------------
377
// ClassProxy/ImplInstanceExtenderRequiredAttributes
378
// ----------------------------------------------------------------------------
379
public Product extendPictured(
380       org.opencrx.kernel.generic.cci.Pictured _base
381     , short accessLevelBrowse
382     , short accessLevelDelete
383     , short accessLevelUpdate
384     , boolean disabled
385     , String JavaDoc name
386     , String JavaDoc productNumber
387     , short productState
388     , short productType
389     , int itemNumber
390     , short minMaxQuantityHandling
391   ) {
392     ProductImpl _object = (ProductImpl)getProduct(_base);
393     _object.setAccessLevelBrowse(accessLevelBrowse);
394     _object.setAccessLevelDelete(accessLevelDelete);
395     _object.setAccessLevelUpdate(accessLevelUpdate);
396     _object.setDisabled(disabled);
397     _object.setName(name);
398     _object.setProductNumber(productNumber);
399     _object.setProductState(productState);
400     _object.setProductType(productType);
401     _object.setItemNumber(itemNumber);
402     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
403     return _object;
404   }
405
406 // ----------------------------------------------------------------------------
407
// ClassProxy/ImplInstanceExtenderRequiredAttributes
408
// ----------------------------------------------------------------------------
409
public Product extendAbstractProduct(
410       org.opencrx.kernel.product1.cci.AbstractProduct _base
411     , int itemNumber
412     , short minMaxQuantityHandling
413   ) {
414     ProductImpl _object = (ProductImpl)getProduct(_base);
415     _object.setItemNumber(itemNumber);
416     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
417     return _object;
418   }
419
420 // ----------------------------------------------------------------------------
421
// ClassProxy/ImplInstanceExtenderRequiredAttributes
422
// ----------------------------------------------------------------------------
423
public Product extendContractPositionConstrained(
424       org.opencrx.kernel.product1.cci.ContractPositionConstrained _base
425     , short accessLevelBrowse
426     , short accessLevelDelete
427     , short accessLevelUpdate
428     , boolean disabled
429     , String JavaDoc name
430     , String JavaDoc productNumber
431     , short productState
432     , short productType
433   ) {
434     ProductImpl _object = (ProductImpl)getProduct(_base);
435     _object.setAccessLevelBrowse(accessLevelBrowse);
436     _object.setAccessLevelDelete(accessLevelDelete);
437     _object.setAccessLevelUpdate(accessLevelUpdate);
438     _object.setDisabled(disabled);
439     _object.setName(name);
440     _object.setProductNumber(productNumber);
441     _object.setProductState(productState);
442     _object.setProductType(productType);
443     return _object;
444   }
445
446 // ----------------------------------------------------------------------------
447
// ClassProxy/ImplInstanceExtenderRequiredAttributes
448
// ----------------------------------------------------------------------------
449
public Product extendProductConfigurationSet(
450       org.opencrx.kernel.product1.cci.ProductConfigurationSet _base
451     , short accessLevelBrowse
452     , short accessLevelDelete
453     , short accessLevelUpdate
454     , boolean disabled
455     , String JavaDoc name
456     , String JavaDoc productNumber
457     , short productState
458     , short productType
459     , int itemNumber
460     , short minMaxQuantityHandling
461   ) {
462     ProductImpl _object = (ProductImpl)getProduct(_base);
463     _object.setAccessLevelBrowse(accessLevelBrowse);
464     _object.setAccessLevelDelete(accessLevelDelete);
465     _object.setAccessLevelUpdate(accessLevelUpdate);
466     _object.setDisabled(disabled);
467     _object.setName(name);
468     _object.setProductNumber(productNumber);
469     _object.setProductState(productState);
470     _object.setProductType(productType);
471     _object.setItemNumber(itemNumber);
472     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
473     return _object;
474   }
475
476 // ----------------------------------------------------------------------------
477
// ClassProxy/ImplInstanceExtenderRequiredAttributes
478
// ----------------------------------------------------------------------------
479
public Product extendBasicObject(
480       org.openmdx.base.cci.BasicObject _base
481     , short accessLevelBrowse
482     , short accessLevelDelete
483     , short accessLevelUpdate
484     , boolean disabled
485     , String JavaDoc name
486     , String JavaDoc productNumber
487     , short productState
488     , short productType
489     , int itemNumber
490     , short minMaxQuantityHandling
491   ) {
492     ProductImpl _object = (ProductImpl)getProduct(_base);
493     _object.setAccessLevelBrowse(accessLevelBrowse);
494     _object.setAccessLevelDelete(accessLevelDelete);
495     _object.setAccessLevelUpdate(accessLevelUpdate);
496     _object.setDisabled(disabled);
497     _object.setName(name);
498     _object.setProductNumber(productNumber);
499     _object.setProductState(productState);
500     _object.setProductType(productType);
501     _object.setItemNumber(itemNumber);
502     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
503     return _object;
504   }
505
506 // ----------------------------------------------------------------------------
507
// ClassProxy/ImplInstanceExtenderRequiredAttributes
508
// ----------------------------------------------------------------------------
509
public Product extendContextCapable(
510       org.openmdx.base.cci.ContextCapable _base
511     , short accessLevelBrowse
512     , short accessLevelDelete
513     , short accessLevelUpdate
514     , boolean disabled
515     , String JavaDoc name
516     , String JavaDoc productNumber
517     , short productState
518     , short productType
519     , int itemNumber
520     , short minMaxQuantityHandling
521   ) {
522     ProductImpl _object = (ProductImpl)getProduct(_base);
523     _object.setAccessLevelBrowse(accessLevelBrowse);
524     _object.setAccessLevelDelete(accessLevelDelete);
525     _object.setAccessLevelUpdate(accessLevelUpdate);
526     _object.setDisabled(disabled);
527     _object.setName(name);
528     _object.setProductNumber(productNumber);
529     _object.setProductState(productState);
530     _object.setProductType(productType);
531     _object.setItemNumber(itemNumber);
532     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
533     return _object;
534   }
535
536 // ----------------------------------------------------------------------------
537
// ClassProxy/ImplInstanceExtenderRequiredAttributes
538
// ----------------------------------------------------------------------------
539
public Product extendExtentCapable(
540       org.openmdx.base.cci.ExtentCapable _base
541     , short accessLevelBrowse
542     , short accessLevelDelete
543     , short accessLevelUpdate
544     , boolean disabled
545     , String JavaDoc name
546     , String JavaDoc productNumber
547     , short productState
548     , short productType
549     , int itemNumber
550     , short minMaxQuantityHandling
551   ) {
552     ProductImpl _object = (ProductImpl)getProduct(_base);
553     _object.setAccessLevelBrowse(accessLevelBrowse);
554     _object.setAccessLevelDelete(accessLevelDelete);
555     _object.setAccessLevelUpdate(accessLevelUpdate);
556     _object.setDisabled(disabled);
557     _object.setName(name);
558     _object.setProductNumber(productNumber);
559     _object.setProductState(productState);
560     _object.setProductType(productType);
561     _object.setItemNumber(itemNumber);
562     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
563     return _object;
564   }
565
566 // ----------------------------------------------------------------------------
567
// ClassProxy/ImplInstanceExtenderRequiredAttributes
568
// ----------------------------------------------------------------------------
569
public Product extendViewCapable(
570       org.openmdx.compatibility.view1.cci.ViewCapable _base
571     , short accessLevelBrowse
572     , short accessLevelDelete
573     , short accessLevelUpdate
574     , boolean disabled
575     , String JavaDoc name
576     , String JavaDoc productNumber
577     , short productState
578     , short productType
579     , int itemNumber
580     , short minMaxQuantityHandling
581   ) {
582     ProductImpl _object = (ProductImpl)getProduct(_base);
583     _object.setAccessLevelBrowse(accessLevelBrowse);
584     _object.setAccessLevelDelete(accessLevelDelete);
585     _object.setAccessLevelUpdate(accessLevelUpdate);
586     _object.setDisabled(disabled);
587     _object.setName(name);
588     _object.setProductNumber(productNumber);
589     _object.setProductState(productState);
590     _object.setProductType(productType);
591     _object.setItemNumber(itemNumber);
592     _object.setMinMaxQuantityHandling(minMaxQuantityHandling);
593     return _object;
594   }
595
596 // ----------------------------------------------------------------------------
597
// ClassProxy/ImplEnd.vm
598
// ----------------------------------------------------------------------------
599
}
600
Popular Tags