KickJava   Java API By Example, From Geeks To Geeks.

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


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 C_CommissionLine
9  ** @version $Id: X_C_CommissionLine.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_C_CommissionLine extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_CommissionLine (Properties ctx, int C_CommissionLine_ID)
14 {
15 super (ctx, C_CommissionLine_ID);
16 /** if (C_CommissionLine_ID == 0)
17 {
18 setAmtMultiplier (Env.ZERO);
19 setAmtSubtract (Env.ZERO);
20 setC_CommissionLine_ID (0);
21 setC_Commission_ID (0);
22 setCommissionOrders (false);
23 setIsPositiveOnly (false);
24 setLine (0);
25 setQtyMultiplier (Env.ZERO);
26 setQtySubtract (Env.ZERO);
27 }
28  **/

29 }
30 /** Load Constructor **/
31 public X_C_CommissionLine (Properties ctx, ResultSet rs)
32 {
33 super (ctx, rs);
34 }
35 /** Load Meta Data **/
36 protected POInfo initPO (Properties ctx)
37 {
38 int AD_Table_ID = 431;
39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
40 return poi;
41 }
42 public String JavaDoc toString()
43 {
44 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_CommissionLine[").append(getID()).append("]");
45 return sb.toString();
46 }
47 public void setAmtMultiplier (BigDecimal AmtMultiplier)
48 {
49 if (AmtMultiplier == null) throw new IllegalArgumentException JavaDoc ("AmtMultiplier is mandatory");
50 setValue ("AmtMultiplier", AmtMultiplier);
51 }
52 public BigDecimal getAmtMultiplier()
53 {
54 BigDecimal bd = (BigDecimal)getValue("AmtMultiplier");
55 if (bd == null) return Env.ZERO;
56 return bd;
57 }
58 public void setAmtSubtract (BigDecimal AmtSubtract)
59 {
60 if (AmtSubtract == null) throw new IllegalArgumentException JavaDoc ("AmtSubtract is mandatory");
61 setValue ("AmtSubtract", AmtSubtract);
62 }
63 public BigDecimal getAmtSubtract()
64 {
65 BigDecimal bd = (BigDecimal)getValue("AmtSubtract");
66 if (bd == null) return Env.ZERO;
67 return bd;
68 }
69 public void setC_BP_Group_ID (int C_BP_Group_ID)
70 {
71 if (C_BP_Group_ID == 0) setValue ("C_BP_Group_ID", null);
72  else
73 setValue ("C_BP_Group_ID", new Integer JavaDoc(C_BP_Group_ID));
74 }
75 public int getC_BP_Group_ID()
76 {
77 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BP_Group_ID");
78 if (ii == null) return 0;
79 return ii.intValue();
80 }
81 public void setC_BPartner_ID (int C_BPartner_ID)
82 {
83 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null);
84  else
85 setValue ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
86 }
87 public int getC_BPartner_ID()
88 {
89 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
90 if (ii == null) return 0;
91 return ii.intValue();
92 }
93 void setC_CommissionLine_ID (int C_CommissionLine_ID)
94 {
95 setValueNoCheck ("C_CommissionLine_ID", new Integer JavaDoc(C_CommissionLine_ID));
96 }
97 public int getC_CommissionLine_ID()
98 {
99 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_CommissionLine_ID");
100 if (ii == null) return 0;
101 return ii.intValue();
102 }
103 void setC_Commission_ID (int C_Commission_ID)
104 {
105 setValueNoCheck ("C_Commission_ID", new Integer JavaDoc(C_Commission_ID));
106 }
107 public int getC_Commission_ID()
108 {
109 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Commission_ID");
110 if (ii == null) return 0;
111 return ii.intValue();
112 }
113 public void setC_SalesRegion_ID (int C_SalesRegion_ID)
114 {
115 if (C_SalesRegion_ID == 0) setValue ("C_SalesRegion_ID", null);
116  else
117 setValue ("C_SalesRegion_ID", new Integer JavaDoc(C_SalesRegion_ID));
118 }
119 public int getC_SalesRegion_ID()
120 {
121 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_SalesRegion_ID");
122 if (ii == null) return 0;
123 return ii.intValue();
124 }
125 public void setCommissionOrders (boolean CommissionOrders)
126 {
127 setValue ("CommissionOrders", new Boolean JavaDoc(CommissionOrders));
128 }
129 public boolean isCommissionOrders()
130 {
131 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("CommissionOrders");
132 if (bb != null) return bb.booleanValue();
133 return false;
134 }
135 public void setDescription (String JavaDoc Description)
136 {
137 setValue ("Description", Description);
138 }
139 public String JavaDoc getDescription()
140 {
141 return (String JavaDoc)getValue("Description");
142 }
143 public void setIsPositiveOnly (boolean IsPositiveOnly)
144 {
145 setValue ("IsPositiveOnly", new Boolean JavaDoc(IsPositiveOnly));
146 }
147 public boolean isPositiveOnly()
148 {
149 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPositiveOnly");
150 if (bb != null) return bb.booleanValue();
151 return false;
152 }
153 public void setLine (int Line)
154 {
155 setValue ("Line", new Integer JavaDoc(Line));
156 }
157 public int getLine()
158 {
159 Integer JavaDoc ii = (Integer JavaDoc)getValue("Line");
160 if (ii == null) return 0;
161 return ii.intValue();
162 }
163 public void setM_Product_Category_ID (int M_Product_Category_ID)
164 {
165 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null);
166  else
167 setValue ("M_Product_Category_ID", new Integer JavaDoc(M_Product_Category_ID));
168 }
169 public int getM_Product_Category_ID()
170 {
171 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_Category_ID");
172 if (ii == null) return 0;
173 return ii.intValue();
174 }
175 public void setM_Product_ID (int M_Product_ID)
176 {
177 if (M_Product_ID == 0) setValue ("M_Product_ID", null);
178  else
179 setValue ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
180 }
181 public int getM_Product_ID()
182 {
183 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
184 if (ii == null) return 0;
185 return ii.intValue();
186 }
187 public void setOrg_ID (int Org_ID)
188 {
189 if (Org_ID == 0) setValue ("Org_ID", null);
190  else
191 setValue ("Org_ID", new Integer JavaDoc(Org_ID));
192 }
193 public int getOrg_ID()
194 {
195 Integer JavaDoc ii = (Integer JavaDoc)getValue("Org_ID");
196 if (ii == null) return 0;
197 return ii.intValue();
198 }
199 public void setQtyMultiplier (BigDecimal QtyMultiplier)
200 {
201 if (QtyMultiplier == null) throw new IllegalArgumentException JavaDoc ("QtyMultiplier is mandatory");
202 setValue ("QtyMultiplier", QtyMultiplier);
203 }
204 public BigDecimal getQtyMultiplier()
205 {
206 BigDecimal bd = (BigDecimal)getValue("QtyMultiplier");
207 if (bd == null) return Env.ZERO;
208 return bd;
209 }
210 public void setQtySubtract (BigDecimal QtySubtract)
211 {
212 if (QtySubtract == null) throw new IllegalArgumentException JavaDoc ("QtySubtract is mandatory");
213 setValue ("QtySubtract", QtySubtract);
214 }
215 public BigDecimal getQtySubtract()
216 {
217 BigDecimal bd = (BigDecimal)getValue("QtySubtract");
218 if (bd == null) return Env.ZERO;
219 return bd;
220 }
221 }
222
Popular Tags