KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_AD_Registration extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Registration (Properties ctx, int AD_Registration_ID)
14 {
15 super (ctx, AD_Registration_ID);
16 /** if (AD_Registration_ID == 0)
17 {
18 setAD_Registration_ID (0);
19 setIsAllowPublish (false);
20 setIsInProduction (false);
21 setIsRegistered (false);
22 setName (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_Registration (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 625;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Registration[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setAD_Registration_ID (int AD_Registration_ID)
44 {
45 setValueNoCheck ("AD_Registration_ID", new Integer JavaDoc(AD_Registration_ID));
46 }
47 public int getAD_Registration_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Registration_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public void setC_Currency_ID (int C_Currency_ID)
54 {
55 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null);
56  else
57 setValue ("C_Currency_ID", new Integer JavaDoc(C_Currency_ID));
58 }
59 public int getC_Currency_ID()
60 {
61 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Currency_ID");
62 if (ii == null) return 0;
63 return ii.intValue();
64 }
65 public void setC_Location_ID (int C_Location_ID)
66 {
67 if (C_Location_ID == 0) setValue ("C_Location_ID", null);
68  else
69 setValue ("C_Location_ID", new Integer JavaDoc(C_Location_ID));
70 }
71 public int getC_Location_ID()
72 {
73 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Location_ID");
74 if (ii == null) return 0;
75 return ii.intValue();
76 }
77 public void setDescription (String JavaDoc Description)
78 {
79 setValue ("Description", Description);
80 }
81 public String JavaDoc getDescription()
82 {
83 return (String JavaDoc)getValue("Description");
84 }
85 public void setIndustryInfo (String JavaDoc IndustryInfo)
86 {
87 setValue ("IndustryInfo", IndustryInfo);
88 }
89 public String JavaDoc getIndustryInfo()
90 {
91 return (String JavaDoc)getValue("IndustryInfo");
92 }
93 public void setIsAllowPublish (boolean IsAllowPublish)
94 {
95 setValue ("IsAllowPublish", new Boolean JavaDoc(IsAllowPublish));
96 }
97 public boolean isAllowPublish()
98 {
99 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsAllowPublish");
100 if (bb != null) return bb.booleanValue();
101 return false;
102 }
103 public void setIsInProduction (boolean IsInProduction)
104 {
105 setValue ("IsInProduction", new Boolean JavaDoc(IsInProduction));
106 }
107 public boolean isInProduction()
108 {
109 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsInProduction");
110 if (bb != null) return bb.booleanValue();
111 return false;
112 }
113 void setIsRegistered (boolean IsRegistered)
114 {
115 setValueNoCheck ("IsRegistered", new Boolean JavaDoc(IsRegistered));
116 }
117 public boolean isRegistered()
118 {
119 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsRegistered");
120 if (bb != null) return bb.booleanValue();
121 return false;
122 }
123 public void setName (String JavaDoc Name)
124 {
125 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
126 setValue ("Name", Name);
127 }
128 public String JavaDoc getName()
129 {
130 return (String JavaDoc)getValue("Name");
131 }
132 public void setNumberEmployees (int NumberEmployees)
133 {
134 setValue ("NumberEmployees", new Integer JavaDoc(NumberEmployees));
135 }
136 public int getNumberEmployees()
137 {
138 Integer JavaDoc ii = (Integer JavaDoc)getValue("NumberEmployees");
139 if (ii == null) return 0;
140 return ii.intValue();
141 }
142 public void setPlatformInfo (String JavaDoc PlatformInfo)
143 {
144 setValue ("PlatformInfo", PlatformInfo);
145 }
146 public String JavaDoc getPlatformInfo()
147 {
148 return (String JavaDoc)getValue("PlatformInfo");
149 }
150 public void setProcessing (String JavaDoc Processing)
151 {
152 setValue ("Processing", Processing);
153 }
154 public String JavaDoc getProcessing()
155 {
156 return (String JavaDoc)getValue("Processing");
157 }
158 void setRecord_ID (int Record_ID)
159 {
160 if (Record_ID == 0) setValueNoCheck ("Record_ID", null);
161  else
162 setValueNoCheck ("Record_ID", new Integer JavaDoc(Record_ID));
163 }
164 public int getRecord_ID()
165 {
166 Integer JavaDoc ii = (Integer JavaDoc)getValue("Record_ID");
167 if (ii == null) return 0;
168 return ii.intValue();
169 }
170 void setRemote_Addr (String JavaDoc Remote_Addr)
171 {
172 setValueNoCheck ("Remote_Addr", Remote_Addr);
173 }
174 public String JavaDoc getRemote_Addr()
175 {
176 return (String JavaDoc)getValue("Remote_Addr");
177 }
178 void setRemote_Host (String JavaDoc Remote_Host)
179 {
180 setValueNoCheck ("Remote_Host", Remote_Host);
181 }
182 public String JavaDoc getRemote_Host()
183 {
184 return (String JavaDoc)getValue("Remote_Host");
185 }
186 public void setSalesVolume (int SalesVolume)
187 {
188 setValue ("SalesVolume", new Integer JavaDoc(SalesVolume));
189 }
190 public int getSalesVolume()
191 {
192 Integer JavaDoc ii = (Integer JavaDoc)getValue("SalesVolume");
193 if (ii == null) return 0;
194 return ii.intValue();
195 }
196 }
197
Popular Tags