KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > store > test > Container


1 /*
2  * Created on 17.10.2004
3  */

4 package com.nightlabs.ipanema.store.test;
5
6 import com.nightlabs.ipanema.store.Product;
7
8 /**
9  * @author Marco Schulze - marco at nightlabs dot de
10  *
11  * @jdo.persistence-capable
12  * identity-type = "application"
13  * persistence-capable-superclass = "com.nightlabs.ipanema.store.Product"
14  */

15 public class Container extends Product
16 {
17     private int height;
18     private int width;
19     private String JavaDoc color;
20
21     public Container() { }
22
23     /**
24      * @param organisationID
25      * @param productID
26      * @param extendedProduct
27      * @param nature
28      */

29     public Container(String JavaDoc organisationID, String JavaDoc productID, Product extendedProduct,
30             String JavaDoc nature)
31     {
32         super(organisationID, productID, extendedProduct, nature, null, false);
33     }
34
35     /**
36      * @return Returns the color.
37      */

38     public String JavaDoc getColor()
39     {
40         return color;
41     }
42     /**
43      * @param color The color to set.
44      */

45     public void setColor(String JavaDoc color)
46     {
47         this.color = color;
48         getFieldMetaData("color").setValueInherited(false);
49     }
50     /**
51      * @return Returns the height.
52      */

53     public int getHeight()
54     {
55         return height;
56     }
57     /**
58      * @param height The height to set.
59      */

60     public void setHeight(int height)
61     {
62         this.height = height;
63         getFieldMetaData("height").setValueInherited(false);
64     }
65     /**
66      * @return Returns the width.
67      */

68     public int getWidth()
69     {
70         return width;
71     }
72     /**
73      * @param width The width to set.
74      */

75     public void setWidth(int width)
76     {
77         this.width = width;
78         getFieldMetaData("width").setValueInherited(false);
79     }
80 }
81
Popular Tags