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_Location extends PO 11 { 12 13 public X_C_Location (Properties ctx, int C_Location_ID) 14 { 15 super (ctx, C_Location_ID); 16 22 } 23 24 public X_C_Location (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 162; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_C_Location[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public void setAddress1 (String Address1) 41 { 42 setValue ("Address1", Address1); 43 } 44 public String getAddress1() 45 { 46 return (String )getValue("Address1"); 47 } 48 public void setAddress2 (String Address2) 49 { 50 setValue ("Address2", Address2); 51 } 52 public String getAddress2() 53 { 54 return (String )getValue("Address2"); 55 } 56 public void setC_City_ID (int C_City_ID) 57 { 58 if (C_City_ID == 0) setValue ("C_City_ID", null); 59 else 60 setValue ("C_City_ID", new Integer (C_City_ID)); 61 } 62 public int getC_City_ID() 63 { 64 Integer ii = (Integer )getValue("C_City_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setC_Country_ID (int C_Country_ID) 69 { 70 setValue ("C_Country_ID", new Integer (C_Country_ID)); 71 } 72 public int getC_Country_ID() 73 { 74 Integer ii = (Integer )getValue("C_Country_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 void setC_Location_ID (int C_Location_ID) 79 { 80 setValueNoCheck ("C_Location_ID", new Integer (C_Location_ID)); 81 } 82 public int getC_Location_ID() 83 { 84 Integer ii = (Integer )getValue("C_Location_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public void setC_Region_ID (int C_Region_ID) 89 { 90 if (C_Region_ID == 0) setValue ("C_Region_ID", null); 91 else 92 setValue ("C_Region_ID", new Integer (C_Region_ID)); 93 } 94 public int getC_Region_ID() 95 { 96 Integer ii = (Integer )getValue("C_Region_ID"); 97 if (ii == null) return 0; 98 return ii.intValue(); 99 } 100 public void setCity (String City) 101 { 102 setValue ("City", City); 103 } 104 public String getCity() 105 { 106 return (String )getValue("City"); 107 } 108 public void setPostal (String Postal) 109 { 110 setValue ("Postal", Postal); 111 } 112 public String getPostal() 113 { 114 return (String )getValue("Postal"); 115 } 116 public void setPostal_Add (String Postal_Add) 117 { 118 setValue ("Postal_Add", Postal_Add); 119 } 120 public String getPostal_Add() 121 { 122 return (String )getValue("Postal_Add"); 123 } 124 public void setRegionName (String RegionName) 125 { 126 setValue ("RegionName", RegionName); 127 } 128 public String getRegionName() 129 { 130 return (String )getValue("RegionName"); 131 } 132 } 133 | Popular Tags |