KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > wstore > PriceListProduct


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.wstore;
15
16 import java.util.*;
17 import java.math.*;
18
19 import org.apache.log4j.Logger;
20
21 import org.compiere.model.*;
22 import org.compiere.util.DB;
23 import org.compiere.util.Env;
24 import org.compiere.www.*;
25
26 /**
27  * Price List Product
28  *
29  * @author Jorg Janke
30  * @version $Id: PriceListProduct.java,v 1.4 2003/06/20 14:45:18 jjanke Exp $
31  */

32 public class PriceListProduct
33 {
34     /**
35      * Price List Product.
36      * @param M_Product_ID product
37      * @param value value
38      * @param name name
39      * @param description descriprion
40      * @param help help
41      * @param documentNote document note
42      * @param imageURL image
43      * @param descriptionURL description
44      * @param price price
45      * @param uomName uom
46      * @param uomSymbol uom
47      */

48     public PriceListProduct (int M_Product_ID, String JavaDoc value, String JavaDoc name, String JavaDoc description,
49         String JavaDoc help, String JavaDoc documentNote, String JavaDoc imageURL, String JavaDoc descriptionURL,
50         BigDecimal price, String JavaDoc uomName, String JavaDoc uomSymbol)
51     {
52         //
53
m_Product_ID = M_Product_ID;
54         m_value = value;
55         m_name = name;
56         m_description = description;
57         // Help, DocumentNote, ImageURL, DescriptionURL,
58
m_help = help;
59         m_documentNote = documentNote;
60         m_imageURL = imageURL;
61         m_descriptionURL = descriptionURL;
62         // PriceStd, UOMName, UOMSymbol
63
m_price = price;
64         m_uomName = uomName;
65         m_uomSymbol = uomSymbol;
66     } // PriceListProduct
67

68     /** Attribute Name */
69     public static final String JavaDoc NAME = "PriceListProduct";
70     /** Logging */
71     private Logger log = Logger.getLogger(getClass());
72
73     private int m_Product_ID;
74     private String JavaDoc m_value;
75     private String JavaDoc m_name;
76     private String JavaDoc m_description;
77
78     private String JavaDoc m_help;
79     private String JavaDoc m_documentNote;
80     private String JavaDoc m_imageURL;
81     private String JavaDoc m_descriptionURL;
82
83     private BigDecimal m_price;
84     private String JavaDoc m_uomName;
85     private String JavaDoc m_uomSymbol;
86
87
88     /**
89      * String Representation
90      * @return info
91      */

92     public String JavaDoc toString()
93     {
94         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("PriceListProduct[");
95         sb.append(m_Product_ID).append("-").append(m_name)
96             .append("-").append(m_price)
97             .append("]");
98         return sb.toString();
99     } // toString
100

101     /*************************************************************************/
102
103     /**
104      * Get Product IO
105      * @return M_Product_ID
106      */

107     public int getId()
108     {
109         return m_Product_ID;
110     }
111     public String JavaDoc getValue()
112     {
113         return m_value;
114     }
115     /**
116      * Get Name
117      * @return name
118      */

119     public String JavaDoc getName()
120     {
121         return m_name;
122     }
123     public String JavaDoc getDescription()
124     {
125         return m_description;
126     }
127     public String JavaDoc getHelp()
128     {
129         return m_help;
130     }
131
132     public String JavaDoc getDocumentNote()
133     {
134         return m_documentNote;
135     }
136     public String JavaDoc getImageURL()
137     {
138         return m_imageURL;
139     }
140     public String JavaDoc getDescriptionURL()
141     {
142         return m_descriptionURL;
143     }
144
145     public BigDecimal getPrice()
146     {
147         return m_price;
148     }
149     public String JavaDoc getUomName()
150     {
151         return m_uomName;
152     }
153     public String JavaDoc getUomSymbol()
154     {
155         return m_uomSymbol;
156     }
157
158 } // PriceListProduct
159
Popular Tags