1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_AD_OrgInfo extends PO 11 { 12 13 public X_AD_OrgInfo (Properties ctx, int AD_OrgInfo_ID) 14 { 15 super (ctx, AD_OrgInfo_ID); 16 22 } 23 24 public X_AD_OrgInfo (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 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 toString() 36 { 37 StringBuffer sb = new StringBuffer ("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 (C_Location_ID)); 45 } 46 public int getC_Location_ID() 47 { 48 Integer ii = (Integer )getValue("C_Location_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setDUNS (String DUNS) 53 { 54 if (DUNS == null) throw new IllegalArgumentException ("DUNS is mandatory"); 55 setValue ("DUNS", DUNS); 56 } 57 public String getDUNS() 58 { 59 return (String )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 (PA_Goal_ID)); 66 } 67 public int getPA_Goal_ID() 68 { 69 Integer ii = (Integer )getValue("PA_Goal_ID"); 70 if (ii == null) return 0; 71 return ii.intValue(); 72 } 73 public void setTaxID (String TaxID) 74 { 75 if (TaxID == null) throw new IllegalArgumentException ("TaxID is mandatory"); 76 setValue ("TaxID", TaxID); 77 } 78 public String getTaxID() 79 { 80 return (String )getValue("TaxID"); 81 } 82 } 83 | Popular Tags |