KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_OrgInfo extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_OrgInfo (Properties ctx, int AD_OrgInfo_ID)
14 {
15 super (ctx, AD_OrgInfo_ID);
16 /** if (AD_OrgInfo_ID == 0)
17 {
18 setDUNS (null);
19 setTaxID (null);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_AD_OrgInfo (Properties ctx, ResultSet rs)
25 {
26 super (ctx, rs);
27 }
28 /** Load Meta Data **/
29 protected POInfo initPO (Properties ctx)
30 {
31 int AD_Table_ID = 228;
32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
33 return poi;
34 }
35 public String JavaDoc toString()
36 {
37 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_OrgInfo[").append(getID()).append("]");
38 return sb.toString();
39 }
40 public void setC_Location_ID (int C_Location_ID)
41 {
42 if (C_Location_ID == 0) setValue ("C_Location_ID", null);
43  else
44 setValue ("C_Location_ID", new Integer JavaDoc(C_Location_ID));
45 }
46 public int getC_Location_ID()
47 {
48 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Location_ID");
49 if (ii == null) return 0;
50 return ii.intValue();
51 }
52 public void setDUNS (String JavaDoc DUNS)
53 {
54 if (DUNS == null) throw new IllegalArgumentException JavaDoc ("DUNS is mandatory");
55 setValue ("DUNS", DUNS);
56 }
57 public String JavaDoc getDUNS()
58 {
59 return (String JavaDoc)getValue("DUNS");
60 }
61 public void setPA_Goal_ID (int PA_Goal_ID)
62 {
63 if (PA_Goal_ID == 0) setValue ("PA_Goal_ID", null);
64  else
65 setValue ("PA_Goal_ID", new Integer JavaDoc(PA_Goal_ID));
66 }
67 public int getPA_Goal_ID()
68 {
69 Integer JavaDoc ii = (Integer JavaDoc)getValue("PA_Goal_ID");
70 if (ii == null) return 0;
71 return ii.intValue();
72 }
73 public void setTaxID (String JavaDoc TaxID)
74 {
75 if (TaxID == null) throw new IllegalArgumentException JavaDoc ("TaxID is mandatory");
76 setValue ("TaxID", TaxID);
77 }
78 public String JavaDoc getTaxID()
79 {
80 return (String JavaDoc)getValue("TaxID");
81 }
82 }
83
Popular Tags