KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_M_ProductPrice


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for M_ProductPrice
9  ** @version $Id: X_M_ProductPrice.java,v 1.26 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_M_ProductPrice extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_ProductPrice (Properties ctx, int M_ProductPrice_ID)
14 {
15 super (ctx, M_ProductPrice_ID);
16 /** if (M_ProductPrice_ID == 0)
17 {
18 setM_PriceList_Version_ID (0);
19 setM_Product_ID (0);
20 setPriceLimit (Env.ZERO);
21 setPriceList (Env.ZERO);
22 setPriceStd (Env.ZERO);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_M_ProductPrice (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 251;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_ProductPrice[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setM_PriceList_Version_ID (int M_PriceList_Version_ID)
44 {
45 setValueNoCheck ("M_PriceList_Version_ID", new Integer JavaDoc(M_PriceList_Version_ID));
46 }
47 public int getM_PriceList_Version_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_PriceList_Version_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 void setM_Product_ID (int M_Product_ID)
54 {
55 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
56 }
57 public int getM_Product_ID()
58 {
59 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
60 if (ii == null) return 0;
61 return ii.intValue();
62 }
63 public void setPriceLimit (BigDecimal PriceLimit)
64 {
65 if (PriceLimit == null) throw new IllegalArgumentException JavaDoc ("PriceLimit is mandatory");
66 setValue ("PriceLimit", PriceLimit);
67 }
68 public BigDecimal getPriceLimit()
69 {
70 BigDecimal bd = (BigDecimal)getValue("PriceLimit");
71 if (bd == null) return Env.ZERO;
72 return bd;
73 }
74 public void setPriceList (BigDecimal PriceList)
75 {
76 if (PriceList == null) throw new IllegalArgumentException JavaDoc ("PriceList is mandatory");
77 setValue ("PriceList", PriceList);
78 }
79 public BigDecimal getPriceList()
80 {
81 BigDecimal bd = (BigDecimal)getValue("PriceList");
82 if (bd == null) return Env.ZERO;
83 return bd;
84 }
85 public void setPriceStd (BigDecimal PriceStd)
86 {
87 if (PriceStd == null) throw new IllegalArgumentException JavaDoc ("PriceStd is mandatory");
88 setValue ("PriceStd", PriceStd);
89 }
90 public BigDecimal getPriceStd()
91 {
92 BigDecimal bd = (BigDecimal)getValue("PriceStd");
93 if (bd == null) return Env.ZERO;
94 return bd;
95 }
96 }
97
Popular Tags