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_Country extends PO 11 { 12 13 public X_C_Country (Properties ctx, int C_Country_ID) 14 { 15 super (ctx, C_Country_ID); 16 26 } 27 28 public X_C_Country (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 170; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_C_Country[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Language (String AD_Language) 45 { 46 setValue ("AD_Language", AD_Language); 47 } 48 public String getAD_Language() 49 { 50 return (String )getValue("AD_Language"); 51 } 52 void setC_Country_ID (int C_Country_ID) 53 { 54 setValueNoCheck ("C_Country_ID", new Integer (C_Country_ID)); 55 } 56 public int getC_Country_ID() 57 { 58 Integer ii = (Integer )getValue("C_Country_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setC_Currency_ID (int C_Currency_ID) 63 { 64 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 65 else 66 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 67 } 68 public int getC_Currency_ID() 69 { 70 Integer ii = (Integer )getValue("C_Currency_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setCountryCode (String CountryCode) 75 { 76 if (CountryCode == null) throw new IllegalArgumentException ("CountryCode is mandatory"); 77 setValue ("CountryCode", CountryCode); 78 } 79 public String getCountryCode() 80 { 81 return (String )getValue("CountryCode"); 82 } 83 public void setDescription (String Description) 84 { 85 setValue ("Description", Description); 86 } 87 public String getDescription() 88 { 89 return (String )getValue("Description"); 90 } 91 public void setDisplaySequence (String DisplaySequence) 92 { 93 if (DisplaySequence == null) throw new IllegalArgumentException ("DisplaySequence is mandatory"); 94 setValue ("DisplaySequence", DisplaySequence); 95 } 96 public String getDisplaySequence() 97 { 98 return (String )getValue("DisplaySequence"); 99 } 100 public void setExpressionPhone (String ExpressionPhone) 101 { 102 setValue ("ExpressionPhone", ExpressionPhone); 103 } 104 public String getExpressionPhone() 105 { 106 return (String )getValue("ExpressionPhone"); 107 } 108 public void setExpressionPostal (String ExpressionPostal) 109 { 110 setValue ("ExpressionPostal", ExpressionPostal); 111 } 112 public String getExpressionPostal() 113 { 114 return (String )getValue("ExpressionPostal"); 115 } 116 public void setExpressionPostal_Add (String ExpressionPostal_Add) 117 { 118 setValue ("ExpressionPostal_Add", ExpressionPostal_Add); 119 } 120 public String getExpressionPostal_Add() 121 { 122 return (String )getValue("ExpressionPostal_Add"); 123 } 124 public void setHasPostal_Add (boolean HasPostal_Add) 125 { 126 setValue ("HasPostal_Add", new Boolean (HasPostal_Add)); 127 } 128 public boolean isHasPostal_Add() 129 { 130 Boolean bb = (Boolean )getValue("HasPostal_Add"); 131 if (bb != null) return bb.booleanValue(); 132 return false; 133 } 134 public void setHasRegion (boolean HasRegion) 135 { 136 setValue ("HasRegion", new Boolean (HasRegion)); 137 } 138 public boolean isHasRegion() 139 { 140 Boolean bb = (Boolean )getValue("HasRegion"); 141 if (bb != null) return bb.booleanValue(); 142 return false; 143 } 144 public void setIsDefault (boolean IsDefault) 145 { 146 setValue ("IsDefault", new Boolean (IsDefault)); 147 } 148 public boolean isDefault() 149 { 150 Boolean bb = (Boolean )getValue("IsDefault"); 151 if (bb != null) return bb.booleanValue(); 152 return false; 153 } 154 public void setName (String Name) 155 { 156 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 157 setValue ("Name", Name); 158 } 159 public String getName() 160 { 161 return (String )getValue("Name"); 162 } 163 public void setRegionName (String RegionName) 164 { 165 setValue ("RegionName", RegionName); 166 } 167 public String getRegionName() 168 { 169 return (String )getValue("RegionName"); 170 } 171 } 172 | Popular Tags |