KickJava   Java API By Example, From Geeks To Geeks.

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


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_City
9  ** @version $Id: X_C_City.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_C_City extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_City (Properties ctx, int C_City_ID)
14 {
15 super (ctx, C_City_ID);
16 /** if (C_City_ID == 0)
17 {
18 setC_City_ID (0);
19 setName (null);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_C_City (Properties ctx, ResultSet rs)
25 {
26 super (ctx, rs);
27 }
28 /** Load Meta Data **/
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 JavaDoc toString()
36 {
37 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_City[").append(getID()).append("]");
38 return sb.toString();
39 }
40 public void setAreaCode (String JavaDoc AreaCode)
41 {
42 setValue ("AreaCode", AreaCode);
43 }
44 public String JavaDoc getAreaCode()
45 {
46 return (String JavaDoc)getValue("AreaCode");
47 }
48 void setC_City_ID (int C_City_ID)
49 {
50 setValueNoCheck ("C_City_ID", new Integer JavaDoc(C_City_ID));
51 }
52 public int getC_City_ID()
53 {
54 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Country_ID));
63 }
64 public int getC_Country_ID()
65 {
66 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Region_ID));
75 }
76 public int getC_Region_ID()
77 {
78 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Region_ID");
79 if (ii == null) return 0;
80 return ii.intValue();
81 }
82 public void setCoordinates (String JavaDoc Coordinates)
83 {
84 setValue ("Coordinates", Coordinates);
85 }
86 public String JavaDoc getCoordinates()
87 {
88 return (String JavaDoc)getValue("Coordinates");
89 }
90 public void setLocode (String JavaDoc Locode)
91 {
92 setValue ("Locode", Locode);
93 }
94 public String JavaDoc getLocode()
95 {
96 return (String JavaDoc)getValue("Locode");
97 }
98 public void setName (String JavaDoc Name)
99 {
100 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
101 setValue ("Name", Name);
102 }
103 public String JavaDoc getName()
104 {
105 return (String JavaDoc)getValue("Name");
106 }
107 public void setPostal (String JavaDoc Postal)
108 {
109 setValue ("Postal", Postal);
110 }
111 public String JavaDoc getPostal()
112 {
113 return (String JavaDoc)getValue("Postal");
114 }
115 }
116
Popular Tags