KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_PaymentProcessor extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_PaymentProcessor (Properties ctx, int C_PaymentProcessor_ID)
14 {
15 super (ctx, C_PaymentProcessor_ID);
16 /** if (C_PaymentProcessor_ID == 0)
17 {
18 setAcceptACH (false);
19 setAcceptAMEX (false);
20 setAcceptATM (false);
21 setAcceptCheck (false);
22 setAcceptCorporate (false);
23 setAcceptDiners (false);
24 setAcceptDiscover (false);
25 setAcceptMC (false);
26 setAcceptVisa (false);
27 setC_BankAccount_ID (0);
28 setC_PaymentProcessor_ID (0);
29 setCommission (Env.ZERO);
30 setCostPerTrx (Env.ZERO);
31 setHostAddress (null);
32 setHostPort (0);
33 setName (null);
34 setPassword (null);
35 setRequireVV (false);
36 setUserID (null);
37 }
38  **/

39 }
40 /** Load Constructor **/
41 public X_C_PaymentProcessor (Properties ctx, ResultSet rs)
42 {
43 super (ctx, rs);
44 }
45 /** Load Meta Data **/
46 protected POInfo initPO (Properties ctx)
47 {
48 int AD_Table_ID = 398;
49 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
50 return poi;
51 }
52 public String JavaDoc toString()
53 {
54 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_PaymentProcessor[").append(getID()).append("]");
55 return sb.toString();
56 }
57 public void setAD_Sequence_ID (int AD_Sequence_ID)
58 {
59 if (AD_Sequence_ID == 0) setValue ("AD_Sequence_ID", null);
60  else
61 setValue ("AD_Sequence_ID", new Integer JavaDoc(AD_Sequence_ID));
62 }
63 public int getAD_Sequence_ID()
64 {
65 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Sequence_ID");
66 if (ii == null) return 0;
67 return ii.intValue();
68 }
69 public void setAcceptACH (boolean AcceptACH)
70 {
71 setValue ("AcceptACH", new Boolean JavaDoc(AcceptACH));
72 }
73 public boolean isAcceptACH()
74 {
75 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptACH");
76 if (bb != null) return bb.booleanValue();
77 return false;
78 }
79 public void setAcceptAMEX (boolean AcceptAMEX)
80 {
81 setValue ("AcceptAMEX", new Boolean JavaDoc(AcceptAMEX));
82 }
83 public boolean isAcceptAMEX()
84 {
85 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptAMEX");
86 if (bb != null) return bb.booleanValue();
87 return false;
88 }
89 public void setAcceptATM (boolean AcceptATM)
90 {
91 setValue ("AcceptATM", new Boolean JavaDoc(AcceptATM));
92 }
93 public boolean isAcceptATM()
94 {
95 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptATM");
96 if (bb != null) return bb.booleanValue();
97 return false;
98 }
99 public void setAcceptCheck (boolean AcceptCheck)
100 {
101 setValue ("AcceptCheck", new Boolean JavaDoc(AcceptCheck));
102 }
103 public boolean isAcceptCheck()
104 {
105 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptCheck");
106 if (bb != null) return bb.booleanValue();
107 return false;
108 }
109 public void setAcceptCorporate (boolean AcceptCorporate)
110 {
111 setValue ("AcceptCorporate", new Boolean JavaDoc(AcceptCorporate));
112 }
113 public boolean isAcceptCorporate()
114 {
115 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptCorporate");
116 if (bb != null) return bb.booleanValue();
117 return false;
118 }
119 public void setAcceptDiners (boolean AcceptDiners)
120 {
121 setValue ("AcceptDiners", new Boolean JavaDoc(AcceptDiners));
122 }
123 public boolean isAcceptDiners()
124 {
125 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptDiners");
126 if (bb != null) return bb.booleanValue();
127 return false;
128 }
129 public void setAcceptDiscover (boolean AcceptDiscover)
130 {
131 setValue ("AcceptDiscover", new Boolean JavaDoc(AcceptDiscover));
132 }
133 public boolean isAcceptDiscover()
134 {
135 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptDiscover");
136 if (bb != null) return bb.booleanValue();
137 return false;
138 }
139 public void setAcceptMC (boolean AcceptMC)
140 {
141 setValue ("AcceptMC", new Boolean JavaDoc(AcceptMC));
142 }
143 public boolean isAcceptMC()
144 {
145 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptMC");
146 if (bb != null) return bb.booleanValue();
147 return false;
148 }
149 public void setAcceptVisa (boolean AcceptVisa)
150 {
151 setValue ("AcceptVisa", new Boolean JavaDoc(AcceptVisa));
152 }
153 public boolean isAcceptVisa()
154 {
155 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AcceptVisa");
156 if (bb != null) return bb.booleanValue();
157 return false;
158 }
159 void setC_BankAccount_ID (int C_BankAccount_ID)
160 {
161 setValueNoCheck ("C_BankAccount_ID", new Integer JavaDoc(C_BankAccount_ID));
162 }
163 public int getC_BankAccount_ID()
164 {
165 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BankAccount_ID");
166 if (ii == null) return 0;
167 return ii.intValue();
168 }
169 public void setC_Currency_ID (int C_Currency_ID)
170 {
171 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null);
172  else
173 setValue ("C_Currency_ID", new Integer JavaDoc(C_Currency_ID));
174 }
175 public int getC_Currency_ID()
176 {
177 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Currency_ID");
178 if (ii == null) return 0;
179 return ii.intValue();
180 }
181 void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID)
182 {
183 setValueNoCheck ("C_PaymentProcessor_ID", new Integer JavaDoc(C_PaymentProcessor_ID));
184 }
185 public int getC_PaymentProcessor_ID()
186 {
187 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_PaymentProcessor_ID");
188 if (ii == null) return 0;
189 return ii.intValue();
190 }
191 public void setCommission (BigDecimal Commission)
192 {
193 if (Commission == null) throw new IllegalArgumentException JavaDoc ("Commission is mandatory");
194 setValue ("Commission", Commission);
195 }
196 public BigDecimal getCommission()
197 {
198 BigDecimal bd = (BigDecimal)getValue("Commission");
199 if (bd == null) return Env.ZERO;
200 return bd;
201 }
202 public void setCostPerTrx (BigDecimal CostPerTrx)
203 {
204 if (CostPerTrx == null) throw new IllegalArgumentException JavaDoc ("CostPerTrx is mandatory");
205 setValue ("CostPerTrx", CostPerTrx);
206 }
207 public BigDecimal getCostPerTrx()
208 {
209 BigDecimal bd = (BigDecimal)getValue("CostPerTrx");
210 if (bd == null) return Env.ZERO;
211 return bd;
212 }
213 public void setDescription (String JavaDoc Description)
214 {
215 setValue ("Description", Description);
216 }
217 public String JavaDoc getDescription()
218 {
219 return (String JavaDoc)getValue("Description");
220 }
221 public void setHostAddress (String JavaDoc HostAddress)
222 {
223 if (HostAddress == null) throw new IllegalArgumentException JavaDoc ("HostAddress is mandatory");
224 setValue ("HostAddress", HostAddress);
225 }
226 public String JavaDoc getHostAddress()
227 {
228 return (String JavaDoc)getValue("HostAddress");
229 }
230 public void setHostPort (int HostPort)
231 {
232 setValue ("HostPort", new Integer JavaDoc(HostPort));
233 }
234 public int getHostPort()
235 {
236 Integer JavaDoc ii = (Integer JavaDoc)getValue("HostPort");
237 if (ii == null) return 0;
238 return ii.intValue();
239 }
240 public void setMinimumAmt (BigDecimal MinimumAmt)
241 {
242 setValue ("MinimumAmt", MinimumAmt);
243 }
244 public BigDecimal getMinimumAmt()
245 {
246 BigDecimal bd = (BigDecimal)getValue("MinimumAmt");
247 if (bd == null) return Env.ZERO;
248 return bd;
249 }
250 public void setName (String JavaDoc Name)
251 {
252 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
253 setValue ("Name", Name);
254 }
255 public String JavaDoc getName()
256 {
257 return (String JavaDoc)getValue("Name");
258 }
259 public void setPartnerID (String JavaDoc PartnerID)
260 {
261 setValue ("PartnerID", PartnerID);
262 }
263 public String JavaDoc getPartnerID()
264 {
265 return (String JavaDoc)getValue("PartnerID");
266 }
267 public void setPassword (String JavaDoc Password)
268 {
269 if (Password == null) throw new IllegalArgumentException JavaDoc ("Password is mandatory");
270 setValue ("Password", Password);
271 }
272 public String JavaDoc getPassword()
273 {
274 return (String JavaDoc)getValue("Password");
275 }
276 public void setPayProcessorClass (String JavaDoc PayProcessorClass)
277 {
278 setValue ("PayProcessorClass", PayProcessorClass);
279 }
280 public String JavaDoc getPayProcessorClass()
281 {
282 return (String JavaDoc)getValue("PayProcessorClass");
283 }
284 public void setProxyAddress (String JavaDoc ProxyAddress)
285 {
286 setValue ("ProxyAddress", ProxyAddress);
287 }
288 public String JavaDoc getProxyAddress()
289 {
290 return (String JavaDoc)getValue("ProxyAddress");
291 }
292 public void setProxyLogon (String JavaDoc ProxyLogon)
293 {
294 setValue ("ProxyLogon", ProxyLogon);
295 }
296 public String JavaDoc getProxyLogon()
297 {
298 return (String JavaDoc)getValue("ProxyLogon");
299 }
300 public void setProxyPassword (String JavaDoc ProxyPassword)
301 {
302 setValue ("ProxyPassword", ProxyPassword);
303 }
304 public String JavaDoc getProxyPassword()
305 {
306 return (String JavaDoc)getValue("ProxyPassword");
307 }
308 public void setProxyPort (int ProxyPort)
309 {
310 setValue ("ProxyPort", new Integer JavaDoc(ProxyPort));
311 }
312 public int getProxyPort()
313 {
314 Integer JavaDoc ii = (Integer JavaDoc)getValue("ProxyPort");
315 if (ii == null) return 0;
316 return ii.intValue();
317 }
318 public void setRequireVV (boolean RequireVV)
319 {
320 setValue ("RequireVV", new Boolean JavaDoc(RequireVV));
321 }
322 public boolean isRequireVV()
323 {
324 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("RequireVV");
325 if (bb != null) return bb.booleanValue();
326 return false;
327 }
328 public void setUserID (String JavaDoc UserID)
329 {
330 if (UserID == null) throw new IllegalArgumentException JavaDoc ("UserID is mandatory");
331 setValue ("UserID", UserID);
332 }
333 public String JavaDoc getUserID()
334 {
335 return (String JavaDoc)getValue("UserID");
336 }
337 public void setVendorID (String JavaDoc VendorID)
338 {
339 setValue ("VendorID", VendorID);
340 }
341 public String JavaDoc getVendorID()
342 {
343 return (String JavaDoc)getValue("VendorID");
344 }
345 }
346
Popular Tags