KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_BP_Vendor_Acct extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_BP_Vendor_Acct (Properties ctx, int C_BP_Vendor_Acct_ID)
14 {
15 super (ctx, C_BP_Vendor_Acct_ID);
16 /** if (C_BP_Vendor_Acct_ID == 0)
17 {
18 setC_AcctSchema_ID (0);
19 setC_BPartner_ID (0);
20 setV_Liability_Acct (null);
21 setV_Prepayment_Acct (null);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_BP_Vendor_Acct (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 185;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_BP_Vendor_Acct[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setC_AcctSchema_ID (int C_AcctSchema_ID)
43 {
44 setValueNoCheck ("C_AcctSchema_ID", new Integer JavaDoc(C_AcctSchema_ID));
45 }
46 public int getC_AcctSchema_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_AcctSchema_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 void setC_BPartner_ID (int C_BPartner_ID)
53 {
54 setValueNoCheck ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
55 }
56 public int getC_BPartner_ID()
57 {
58 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
59 if (ii == null) return 0;
60 return ii.intValue();
61 }
62 public void setV_Liability_Acct (String JavaDoc V_Liability_Acct)
63 {
64 if (V_Liability_Acct == null) throw new IllegalArgumentException JavaDoc ("V_Liability_Acct is mandatory");
65 setValue ("V_Liability_Acct", V_Liability_Acct);
66 }
67 public String JavaDoc getV_Liability_Acct()
68 {
69 return (String JavaDoc)getValue("V_Liability_Acct");
70 }
71 public void setV_Liability_Services_Acct (String JavaDoc V_Liability_Services_Acct)
72 {
73 setValue ("V_Liability_Services_Acct", V_Liability_Services_Acct);
74 }
75 public String JavaDoc getV_Liability_Services_Acct()
76 {
77 return (String JavaDoc)getValue("V_Liability_Services_Acct");
78 }
79 public void setV_Prepayment_Acct (String JavaDoc V_Prepayment_Acct)
80 {
81 if (V_Prepayment_Acct == null) throw new IllegalArgumentException JavaDoc ("V_Prepayment_Acct is mandatory");
82 setValue ("V_Prepayment_Acct", V_Prepayment_Acct);
83 }
84 public String JavaDoc getV_Prepayment_Acct()
85 {
86 return (String JavaDoc)getValue("V_Prepayment_Acct");
87 }
88 }
89
Popular Tags