KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_Location extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_Location (Properties ctx, int C_Location_ID)
14 {
15 super (ctx, C_Location_ID);
16 /** if (C_Location_ID == 0)
17 {
18 setC_Country_ID (0);
19 setC_Location_ID (0);
20 }
21  **/

22 }
23 /** Load Constructor **/
24 public X_C_Location (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 = 162;
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_Location[").append(getID()).append("]");
38 return sb.toString();
39 }
40 public void setAddress1 (String JavaDoc Address1)
41 {
42 setValue ("Address1", Address1);
43 }
44 public String JavaDoc getAddress1()
45 {
46 return (String JavaDoc)getValue("Address1");
47 }
48 public void setAddress2 (String JavaDoc Address2)
49 {
50 setValue ("Address2", Address2);
51 }
52 public String JavaDoc getAddress2()
53 {
54 return (String JavaDoc)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 JavaDoc(C_City_ID));
61 }
62 public int getC_City_ID()
63 {
64 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Country_ID));
71 }
72 public int getC_Country_ID()
73 {
74 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Location_ID));
81 }
82 public int getC_Location_ID()
83 {
84 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Region_ID));
93 }
94 public int getC_Region_ID()
95 {
96 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Region_ID");
97 if (ii == null) return 0;
98 return ii.intValue();
99 }
100 public void setCity (String JavaDoc City)
101 {
102 setValue ("City", City);
103 }
104 public String JavaDoc getCity()
105 {
106 return (String JavaDoc)getValue("City");
107 }
108 public void setPostal (String JavaDoc Postal)
109 {
110 setValue ("Postal", Postal);
111 }
112 public String JavaDoc getPostal()
113 {
114 return (String JavaDoc)getValue("Postal");
115 }
116 public void setPostal_Add (String JavaDoc Postal_Add)
117 {
118 setValue ("Postal_Add", Postal_Add);
119 }
120 public String JavaDoc getPostal_Add()
121 {
122 return (String JavaDoc)getValue("Postal_Add");
123 }
124 public void setRegionName (String JavaDoc RegionName)
125 {
126 setValue ("RegionName", RegionName);
127 }
128 public String JavaDoc getRegionName()
129 {
130 return (String JavaDoc)getValue("RegionName");
131 }
132 }
133
Popular Tags