KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_C_Country


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for C_Country
9  ** @version $Id: X_C_Country.java,v 1.27 2003/10/31 05:30:52 jjanke Exp $ **/

10 public class X_C_Country extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Country (Properties ctx, int C_Country_ID)
14 {
15 super (ctx, C_Country_ID);
16 /** if (C_Country_ID == 0)
17 {
18 setC_Country_ID (0);
19 setCountryCode (null);
20 setDisplaySequence (null);
21 setHasPostal_Add (false);
22 setHasRegion (false);
23 setName (null);
24 }
25  **/

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