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_C_BPartner_Location extends PO 11 { 12 13 public X_C_BPartner_Location (Properties ctx, int C_BPartner_Location_ID) 14 { 15 super (ctx, C_BPartner_Location_ID); 16 28 } 29 30 public X_C_BPartner_Location (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 293; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_C_BPartner_Location[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 void setC_BPartner_ID (int C_BPartner_ID) 47 { 48 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 49 } 50 public int getC_BPartner_ID() 51 { 52 Integer ii = (Integer )getValue("C_BPartner_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 57 { 58 setValueNoCheck ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 59 } 60 public int getC_BPartner_Location_ID() 61 { 62 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 public void setC_Location_ID (int C_Location_ID) 67 { 68 setValue ("C_Location_ID", new Integer (C_Location_ID)); 69 } 70 public int getC_Location_ID() 71 { 72 Integer ii = (Integer )getValue("C_Location_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setC_SalesRegion_ID (int C_SalesRegion_ID) 77 { 78 if (C_SalesRegion_ID == 0) setValue ("C_SalesRegion_ID", null); 79 else 80 setValue ("C_SalesRegion_ID", new Integer (C_SalesRegion_ID)); 81 } 82 public int getC_SalesRegion_ID() 83 { 84 Integer ii = (Integer )getValue("C_SalesRegion_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public void setFax (String Fax) 89 { 90 setValue ("Fax", Fax); 91 } 92 public String getFax() 93 { 94 return (String )getValue("Fax"); 95 } 96 public void setISDN (String ISDN) 97 { 98 setValue ("ISDN", ISDN); 99 } 100 public String getISDN() 101 { 102 return (String )getValue("ISDN"); 103 } 104 public void setIsBillTo (boolean IsBillTo) 105 { 106 setValue ("IsBillTo", new Boolean (IsBillTo)); 107 } 108 public boolean isBillTo() 109 { 110 Boolean bb = (Boolean )getValue("IsBillTo"); 111 if (bb != null) return bb.booleanValue(); 112 return false; 113 } 114 public void setIsPayFrom (boolean IsPayFrom) 115 { 116 setValue ("IsPayFrom", new Boolean (IsPayFrom)); 117 } 118 public boolean isPayFrom() 119 { 120 Boolean bb = (Boolean )getValue("IsPayFrom"); 121 if (bb != null) return bb.booleanValue(); 122 return false; 123 } 124 public void setIsRemitTo (boolean IsRemitTo) 125 { 126 setValue ("IsRemitTo", new Boolean (IsRemitTo)); 127 } 128 public boolean isRemitTo() 129 { 130 Boolean bb = (Boolean )getValue("IsRemitTo"); 131 if (bb != null) return bb.booleanValue(); 132 return false; 133 } 134 public void setIsShipTo (boolean IsShipTo) 135 { 136 setValue ("IsShipTo", new Boolean (IsShipTo)); 137 } 138 public boolean isShipTo() 139 { 140 Boolean bb = (Boolean )getValue("IsShipTo"); 141 if (bb != null) return bb.booleanValue(); 142 return false; 143 } 144 public void setName (String Name) 145 { 146 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 147 setValue ("Name", Name); 148 } 149 public String getName() 150 { 151 return (String )getValue("Name"); 152 } 153 public void setPhone (String Phone) 154 { 155 setValue ("Phone", Phone); 156 } 157 public String getPhone() 158 { 159 return (String )getValue("Phone"); 160 } 161 public void setPhone2 (String Phone2) 162 { 163 setValue ("Phone2", Phone2); 164 } 165 public String getPhone2() 166 { 167 return (String )getValue("Phone2"); 168 } 169 } 170 | Popular Tags |