KickJava   Java API By Example, From Geeks To Geeks.

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


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_PriceList
9  ** @version $Id: X_M_PriceList.java,v 1.26 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_M_PriceList extends PO
11 {
12 /** Standard Constructor **/
13 public X_M_PriceList (Properties ctx, int M_PriceList_ID)
14 {
15 super (ctx, M_PriceList_ID);
16 /** if (M_PriceList_ID == 0)
17 {
18 setC_Currency_ID (0);
19 setEnforcePriceLimit (false);
20 setIsDefault (false);
21 setIsSOPriceList (false);
22 setIsTaxIncluded (false);
23 setM_PriceList_ID (0);
24 setName (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_M_PriceList (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
34 protected POInfo initPO (Properties ctx)
35 {
36 int AD_Table_ID = 255;
37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
38 return poi;
39 }
40 public String JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_M_PriceList[").append(getID()).append("]");
43 return sb.toString();
44 }
45 public void setBasePriceList_ID (int BasePriceList_ID)
46 {
47 if (BasePriceList_ID == 0) setValue ("BasePriceList_ID", null);
48  else
49 setValue ("BasePriceList_ID", new Integer JavaDoc(BasePriceList_ID));
50 }
51 public int getBasePriceList_ID()
52 {
53 Integer JavaDoc ii = (Integer JavaDoc)getValue("BasePriceList_ID");
54 if (ii == null) return 0;
55 return ii.intValue();
56 }
57 public void setC_Currency_ID (int C_Currency_ID)
58 {
59 setValue ("C_Currency_ID", new Integer JavaDoc(C_Currency_ID));
60 }
61 public int getC_Currency_ID()
62 {
63 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Currency_ID");
64 if (ii == null) return 0;
65 return ii.intValue();
66 }
67 public void setDescription (String JavaDoc Description)
68 {
69 setValue ("Description", Description);
70 }
71 public String JavaDoc getDescription()
72 {
73 return (String JavaDoc)getValue("Description");
74 }
75 public void setEnforcePriceLimit (boolean EnforcePriceLimit)
76 {
77 setValue ("EnforcePriceLimit", new Boolean JavaDoc(EnforcePriceLimit));
78 }
79 public boolean isEnforcePriceLimit()
80 {
81 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("EnforcePriceLimit");
82 if (bb != null) return bb.booleanValue();
83 return false;
84 }
85 public void setIsDefault (boolean IsDefault)
86 {
87 setValue ("IsDefault", new Boolean JavaDoc(IsDefault));
88 }
89 public boolean isDefault()
90 {
91 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDefault");
92 if (bb != null) return bb.booleanValue();
93 return false;
94 }
95 public void setIsSOPriceList (boolean IsSOPriceList)
96 {
97 setValue ("IsSOPriceList", new Boolean JavaDoc(IsSOPriceList));
98 }
99 public boolean isSOPriceList()
100 {
101 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSOPriceList");
102 if (bb != null) return bb.booleanValue();
103 return false;
104 }
105 public void setIsTaxIncluded (boolean IsTaxIncluded)
106 {
107 setValue ("IsTaxIncluded", new Boolean JavaDoc(IsTaxIncluded));
108 }
109 public boolean isTaxIncluded()
110 {
111 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsTaxIncluded");
112 if (bb != null) return bb.booleanValue();
113 return false;
114 }
115 void setM_PriceList_ID (int M_PriceList_ID)
116 {
117 setValueNoCheck ("M_PriceList_ID", new Integer JavaDoc(M_PriceList_ID));
118 }
119 public int getM_PriceList_ID()
120 {
121 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_PriceList_ID");
122 if (ii == null) return 0;
123 return ii.intValue();
124 }
125 public void setName (String JavaDoc Name)
126 {
127 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
128 setValue ("Name", Name);
129 }
130 public String JavaDoc getName()
131 {
132 return (String JavaDoc)getValue("Name");
133 }
134 }
135
Popular Tags