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_City extends PO 11 { 12 13 public X_C_City (Properties ctx, int C_City_ID) 14 { 15 super (ctx, C_City_ID); 16 22 } 23 24 public X_C_City (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 186; 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_City[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public void setAreaCode (String AreaCode) 41 { 42 setValue ("AreaCode", AreaCode); 43 } 44 public String getAreaCode() 45 { 46 return (String )getValue("AreaCode"); 47 } 48 void setC_City_ID (int C_City_ID) 49 { 50 setValueNoCheck ("C_City_ID", new Integer (C_City_ID)); 51 } 52 public int getC_City_ID() 53 { 54 Integer ii = (Integer )getValue("C_City_ID"); 55 if (ii == null) return 0; 56 return ii.intValue(); 57 } 58 void setC_Country_ID (int C_Country_ID) 59 { 60 if (C_Country_ID == 0) setValueNoCheck ("C_Country_ID", null); 61 else 62 setValueNoCheck ("C_Country_ID", new Integer (C_Country_ID)); 63 } 64 public int getC_Country_ID() 65 { 66 Integer ii = (Integer )getValue("C_Country_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 public void setC_Region_ID (int C_Region_ID) 71 { 72 if (C_Region_ID == 0) setValue ("C_Region_ID", null); 73 else 74 setValue ("C_Region_ID", new Integer (C_Region_ID)); 75 } 76 public int getC_Region_ID() 77 { 78 Integer ii = (Integer )getValue("C_Region_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 public void setCoordinates (String Coordinates) 83 { 84 setValue ("Coordinates", Coordinates); 85 } 86 public String getCoordinates() 87 { 88 return (String )getValue("Coordinates"); 89 } 90 public void setLocode (String Locode) 91 { 92 setValue ("Locode", Locode); 93 } 94 public String getLocode() 95 { 96 return (String )getValue("Locode"); 97 } 98 public void setName (String Name) 99 { 100 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 101 setValue ("Name", Name); 102 } 103 public String getName() 104 { 105 return (String )getValue("Name"); 106 } 107 public void setPostal (String Postal) 108 { 109 setValue ("Postal", Postal); 110 } 111 public String getPostal() 112 { 113 return (String )getValue("Postal"); 114 } 115 } 116 | Popular Tags |