KickJava   Java API By Example, From Geeks To Geeks.

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


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:38:52 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.product1.cci;
14
15 public class AbstractProductPriceImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements AbstractProductPrice {
18
19   public AbstractProductPriceImpl(
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 String JavaDoc getDescription (
30   ) {
31     return (String JavaDoc)this.refGetValue("description", 0);
32   }
33 // ----------------------------------------------------------------------------
34
// Instance/ImplAttributeSet0_1
35
// ----------------------------------------------------------------------------
36
public void setDescription(
37     String JavaDoc newValue
38   ) {
39     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:description", 0, newValue);
40   }
41
42 // ----------------------------------------------------------------------------
43
// Instance/ImplAttributeGet0_1
44
// ----------------------------------------------------------------------------
45
public java.math.BigDecimal JavaDoc getDiscount (
46   ) {
47     return (java.math.BigDecimal JavaDoc)this.refGetValue("discount", 0);
48   }
49 // ----------------------------------------------------------------------------
50
// Instance/ImplAttributeSet0_1
51
// ----------------------------------------------------------------------------
52
public void setDiscount(
53     java.math.BigDecimal JavaDoc newValue
54   ) {
55     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:discount", 0, newValue);
56   }
57
58 // ----------------------------------------------------------------------------
59
// Instance/ImplAttributeGet0_1
60
// ----------------------------------------------------------------------------
61
public Boolean JavaDoc isDiscountIsPercentage (
62   ) {
63     return (Boolean JavaDoc)this.refGetValue("discountIsPercentage", 0);
64   }
65 // ----------------------------------------------------------------------------
66
// Instance/ImplAttributeSet0_1
67
// ----------------------------------------------------------------------------
68
public void setDiscountIsPercentage(
69     Boolean JavaDoc newValue
70   ) {
71     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:discountIsPercentage", 0, newValue);
72   }
73
74 // ----------------------------------------------------------------------------
75
// Instance/ImplAttributeGet0_1
76
// ----------------------------------------------------------------------------
77
public java.math.BigDecimal JavaDoc getPrice (
78   ) {
79     return (java.math.BigDecimal JavaDoc)this.refGetValue("price", 0);
80   }
81 // ----------------------------------------------------------------------------
82
// Instance/ImplAttributeSet0_1
83
// ----------------------------------------------------------------------------
84
public void setPrice(
85     java.math.BigDecimal JavaDoc newValue
86   ) {
87     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:price", 0, newValue);
88   }
89
90 // ----------------------------------------------------------------------------
91
// Instance/ImplAttributeGet1_1
92
// ----------------------------------------------------------------------------
93
public short getPriceCurrency(
94   ) {
95     return getPriceCurrency(0);
96   }
97
98   protected short getPriceCurrency(
99     int index
100   ) {
101     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceCurrency", index)).shortValue();
102   }
103
104 // ----------------------------------------------------------------------------
105
// Instance/ImplAttributeSet1_1
106
// ----------------------------------------------------------------------------
107
public void setPriceCurrency(
108     short newValue
109   ) {
110     setPriceCurrency(0, newValue);
111   }
112
113   protected void setPriceCurrency(
114     int index,
115     short newValue
116   ) {
117     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceCurrency", index, new Short JavaDoc(newValue));
118   }
119 // ----------------------------------------------------------------------------
120
// Instance/ImplReferenceSetWithQualifier
121
// ----------------------------------------------------------------------------
122
public void setPriceLevel(
123     java.util.List JavaDoc newValue
124   ) {
125     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", newValue);
126   }
127
128   public void setPriceLevel(
129     org.opencrx.kernel.product1.cci.PriceLevel[] newValue
130   ) {
131     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", newValue);
132   }
133
134 // ----------------------------------------------------------------------------
135
// Instance/ImplReferenceGet0_1WithQualifier
136
// ----------------------------------------------------------------------------
137
public org.opencrx.kernel.product1.cci.PriceLevel getPriceLevel(
138     int index
139   ) {
140     return (org.opencrx.kernel.product1.cci.PriceLevel)refGetValue(
141       "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel",
142       new Integer JavaDoc(index)
143     );
144   }
145
146 // ----------------------------------------------------------------------------
147
// Instance/ImplReferenceGet0_nNoFilter
148
// ----------------------------------------------------------------------------
149
public java.util.Collection JavaDoc getPriceLevel(
150   ) {
151     return (java.util.Collection JavaDoc)refGetValue(
152       "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel"
153     );
154   }
155
156 // ----------------------------------------------------------------------------
157
// Instance/ImplReferenceAddWithQualifier
158
// ----------------------------------------------------------------------------
159
public void addPriceLevel (
160     int index,
161     org.opencrx.kernel.product1.cci.PriceLevel newValue
162   ) {
163     refAddValue(
164       "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel",
165       new Integer JavaDoc(index),
166       newValue
167     );
168   }
169
170 // ----------------------------------------------------------------------------
171
// Instance/ImplReferenceAddWithoutQualifier
172
// ----------------------------------------------------------------------------
173
public void addPriceLevel (
174     org.opencrx.kernel.product1.cci.PriceLevel newValue
175   ) {
176     refAddValue(
177       "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel",
178       newValue
179     );
180   }
181
182 // ----------------------------------------------------------------------------
183
// Instance/ImplReferenceRemoveWithQualifier
184
// ----------------------------------------------------------------------------
185
public void removePriceLevel (
186     int index
187   ) {
188     refRemoveValue(
189       "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel",
190       new Integer JavaDoc(index)
191     );
192   }
193
194 // ----------------------------------------------------------------------------
195
// Instance/ImplAttributeGet0_1
196
// ----------------------------------------------------------------------------
197
public java.math.BigDecimal JavaDoc getQuantityFrom (
198   ) {
199     return (java.math.BigDecimal JavaDoc)this.refGetValue("quantityFrom", 0);
200   }
201 // ----------------------------------------------------------------------------
202
// Instance/ImplAttributeSet0_1
203
// ----------------------------------------------------------------------------
204
public void setQuantityFrom(
205     java.math.BigDecimal JavaDoc newValue
206   ) {
207     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:quantityFrom", 0, newValue);
208   }
209
210 // ----------------------------------------------------------------------------
211
// Instance/ImplAttributeGet0_1
212
// ----------------------------------------------------------------------------
213
public java.math.BigDecimal JavaDoc getQuantityTo (
214   ) {
215     return (java.math.BigDecimal JavaDoc)this.refGetValue("quantityTo", 0);
216   }
217 // ----------------------------------------------------------------------------
218
// Instance/ImplAttributeSet0_1
219
// ----------------------------------------------------------------------------
220
public void setQuantityTo(
221     java.math.BigDecimal JavaDoc newValue
222   ) {
223     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:quantityTo", 0, newValue);
224   }
225
226 // ----------------------------------------------------------------------------
227
// Instance/ImplReferenceGet1_1NoQualifier
228
// ----------------------------------------------------------------------------
229
public org.opencrx.kernel.uom1.cci.Uom getUom(
230   ) {
231     return (org.opencrx.kernel.uom1.cci.Uom)refGetValue(
232       "org:opencrx:kernel:product1:AbstractProductPrice:uom"
233     );
234   }
235
236 // ----------------------------------------------------------------------------
237
// Instance/ImplReferenceSetNoQualifier
238
// ----------------------------------------------------------------------------
239
public void setUom(
240     org.opencrx.kernel.uom1.cci.Uom newValue
241   ) {
242     refSetValue(
243       "org:opencrx:kernel:product1:AbstractProductPrice:uom",
244       newValue
245     );
246   }
247
248 // ----------------------------------------------------------------------------
249
// Instance/ImplAttributeGetList
250
// ----------------------------------------------------------------------------
251
public java.util.List JavaDoc getUsage (
252   ) {
253     return (java.util.List JavaDoc)this.refGetValue("usage");
254   }
255   public short getUsage(
256     int index
257   ) {
258     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", index)).shortValue();
259   }
260
261 // ----------------------------------------------------------------------------
262
// Instance/ImplAttributeSetList
263
// ----------------------------------------------------------------------------
264
public void setUsage(
265     java.util.List JavaDoc newValue
266   ) {
267     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", newValue);
268   }
269
270   public void setUsage(
271     short[] newValue
272   ) {
273     refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", newValue);
274   }
275
276 // ----------------------------------------------------------------------------
277
// Instance/ImplEnd
278
// ----------------------------------------------------------------------------
279
}
280
Popular Tags