KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_Withholding extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Withholding (Properties ctx, int C_Withholding_ID)
14 {
15 super (ctx, C_Withholding_ID);
16 /** if (C_Withholding_ID == 0)
17 {
18 setBeneficiary (null);
19 setC_PaymentTerm_ID (0);
20 setC_Withholding_ID (0);
21 setIsPaidTo3Party (false);
22 setIsPercentWithholding (false);
23 setIsTaxProrated (false);
24 setIsTaxWithholding (false);
25 setName (null);
26 }
27  **/

28 }
29 /** Load Constructor **/
30 public X_C_Withholding (Properties ctx, ResultSet rs)
31 {
32 super (ctx, rs);
33 }
34 /** Load Meta Data **/
35 protected POInfo initPO (Properties ctx)
36 {
37 int AD_Table_ID = 304;
38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
39 return poi;
40 }
41 public String JavaDoc toString()
42 {
43 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_Withholding[").append(getID()).append("]");
44 return sb.toString();
45 }
46 public void setBeneficiary (String JavaDoc Beneficiary)
47 {
48 if (Beneficiary == null) throw new IllegalArgumentException JavaDoc ("Beneficiary is mandatory");
49 setValue ("Beneficiary", Beneficiary);
50 }
51 public String JavaDoc getBeneficiary()
52 {
53 return (String JavaDoc)getValue("Beneficiary");
54 }
55 public void setC_PaymentTerm_ID (int C_PaymentTerm_ID)
56 {
57 setValue ("C_PaymentTerm_ID", new Integer JavaDoc(C_PaymentTerm_ID));
58 }
59 public int getC_PaymentTerm_ID()
60 {
61 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaymentTerm_ID");
62 if (ii == null) return 0;
63 return ii.intValue();
64 }
65 void setC_Withholding_ID (int C_Withholding_ID)
66 {
67 setValueNoCheck ("C_Withholding_ID", new Integer JavaDoc(C_Withholding_ID));
68 }
69 public int getC_Withholding_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Withholding_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 public void setDescription (String JavaDoc Description)
76 {
77 setValue ("Description", Description);
78 }
79 public String JavaDoc getDescription()
80 {
81 return (String JavaDoc)getValue("Description");
82 }
83 public void setFixAmt (BigDecimal FixAmt)
84 {
85 setValue ("FixAmt", FixAmt);
86 }
87 public BigDecimal getFixAmt()
88 {
89 BigDecimal bd = (BigDecimal)getValue("FixAmt");
90 if (bd == null) return Env.ZERO;
91 return bd;
92 }
93 public void setIsPaidTo3Party (boolean IsPaidTo3Party)
94 {
95 setValue ("IsPaidTo3Party", new Boolean JavaDoc(IsPaidTo3Party));
96 }
97 public boolean isPaidTo3Party()
98 {
99 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPaidTo3Party");
100 if (bb != null) return bb.booleanValue();
101 return false;
102 }
103 public void setIsPercentWithholding (boolean IsPercentWithholding)
104 {
105 setValue ("IsPercentWithholding", new Boolean JavaDoc(IsPercentWithholding));
106 }
107 public boolean isPercentWithholding()
108 {
109 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsPercentWithholding");
110 if (bb != null) return bb.booleanValue();
111 return false;
112 }
113 public void setIsTaxProrated (boolean IsTaxProrated)
114 {
115 setValue ("IsTaxProrated", new Boolean JavaDoc(IsTaxProrated));
116 }
117 public boolean isTaxProrated()
118 {
119 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsTaxProrated");
120 if (bb != null) return bb.booleanValue();
121 return false;
122 }
123 public void setIsTaxWithholding (boolean IsTaxWithholding)
124 {
125 setValue ("IsTaxWithholding", new Boolean JavaDoc(IsTaxWithholding));
126 }
127 public boolean isTaxWithholding()
128 {
129 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsTaxWithholding");
130 if (bb != null) return bb.booleanValue();
131 return false;
132 }
133 public void setMaxAmt (BigDecimal MaxAmt)
134 {
135 setValue ("MaxAmt", MaxAmt);
136 }
137 public BigDecimal getMaxAmt()
138 {
139 BigDecimal bd = (BigDecimal)getValue("MaxAmt");
140 if (bd == null) return Env.ZERO;
141 return bd;
142 }
143 public void setMinAmt (BigDecimal MinAmt)
144 {
145 setValue ("MinAmt", MinAmt);
146 }
147 public BigDecimal getMinAmt()
148 {
149 BigDecimal bd = (BigDecimal)getValue("MinAmt");
150 if (bd == null) return Env.ZERO;
151 return bd;
152 }
153 public void setName (String JavaDoc Name)
154 {
155 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
156 setValue ("Name", Name);
157 }
158 public String JavaDoc getName()
159 {
160 return (String JavaDoc)getValue("Name");
161 }
162 public void setPercent (BigDecimal Percent)
163 {
164 setValue ("Percent", Percent);
165 }
166 public BigDecimal getPercent()
167 {
168 BigDecimal bd = (BigDecimal)getValue("Percent");
169 if (bd == null) return Env.ZERO;
170 return bd;
171 }
172 public void setThresholdMax (BigDecimal ThresholdMax)
173 {
174 setValue ("ThresholdMax", ThresholdMax);
175 }
176 public BigDecimal getThresholdMax()
177 {
178 BigDecimal bd = (BigDecimal)getValue("ThresholdMax");
179 if (bd == null) return Env.ZERO;
180 return bd;
181 }
182 public void setThresholdmin (BigDecimal Thresholdmin)
183 {
184 setValue ("Thresholdmin", Thresholdmin);
185 }
186 public BigDecimal getThresholdmin()
187 {
188 BigDecimal bd = (BigDecimal)getValue("Thresholdmin");
189 if (bd == null) return Env.ZERO;
190 return bd;
191 }
192 }
193
Popular Tags