KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_C_ValidCombination extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_ValidCombination (Properties ctx, int C_ValidCombination_ID)
14 {
15 super (ctx, C_ValidCombination_ID);
16 /** if (C_ValidCombination_ID == 0)
17 {
18 setAccount_ID (0);
19 setC_AcctSchema_ID (0);
20 setC_ValidCombination_ID (0);
21 setIsFullyQualified (false);
22 }
23  **/

24 }
25 /** Load Constructor **/
26 public X_C_ValidCombination (Properties ctx, ResultSet rs)
27 {
28 super (ctx, rs);
29 }
30 /** Load Meta Data **/
31 protected POInfo initPO (Properties ctx)
32 {
33 int AD_Table_ID = 176;
34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
35 return poi;
36 }
37 public String JavaDoc toString()
38 {
39 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_C_ValidCombination[").append(getID()).append("]");
40 return sb.toString();
41 }
42 void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
43 {
44 if (AD_OrgTrx_ID == 0) setValueNoCheck ("AD_OrgTrx_ID", null);
45  else
46 setValueNoCheck ("AD_OrgTrx_ID", new Integer JavaDoc(AD_OrgTrx_ID));
47 }
48 public int getAD_OrgTrx_ID()
49 {
50 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_OrgTrx_ID");
51 if (ii == null) return 0;
52 return ii.intValue();
53 }
54 void setAccount_ID (int Account_ID)
55 {
56 setValueNoCheck ("Account_ID", new Integer JavaDoc(Account_ID));
57 }
58 public int getAccount_ID()
59 {
60 Integer JavaDoc ii = (Integer JavaDoc)getValue("Account_ID");
61 if (ii == null) return 0;
62 return ii.intValue();
63 }
64 public void setAlias (String JavaDoc Alias)
65 {
66 setValue ("Alias", Alias);
67 }
68 public String JavaDoc getAlias()
69 {
70 return (String JavaDoc)getValue("Alias");
71 }
72 void setC_AcctSchema_ID (int C_AcctSchema_ID)
73 {
74 setValueNoCheck ("C_AcctSchema_ID", new Integer JavaDoc(C_AcctSchema_ID));
75 }
76 public int getC_AcctSchema_ID()
77 {
78 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_AcctSchema_ID");
79 if (ii == null) return 0;
80 return ii.intValue();
81 }
82 void setC_Activity_ID (int C_Activity_ID)
83 {
84 if (C_Activity_ID == 0) setValueNoCheck ("C_Activity_ID", null);
85  else
86 setValueNoCheck ("C_Activity_ID", new Integer JavaDoc(C_Activity_ID));
87 }
88 public int getC_Activity_ID()
89 {
90 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Activity_ID");
91 if (ii == null) return 0;
92 return ii.intValue();
93 }
94 void setC_BPartner_ID (int C_BPartner_ID)
95 {
96 if (C_BPartner_ID == 0) setValueNoCheck ("C_BPartner_ID", null);
97  else
98 setValueNoCheck ("C_BPartner_ID", new Integer JavaDoc(C_BPartner_ID));
99 }
100 public int getC_BPartner_ID()
101 {
102 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_BPartner_ID");
103 if (ii == null) return 0;
104 return ii.intValue();
105 }
106 void setC_Campaign_ID (int C_Campaign_ID)
107 {
108 if (C_Campaign_ID == 0) setValueNoCheck ("C_Campaign_ID", null);
109  else
110 setValueNoCheck ("C_Campaign_ID", new Integer JavaDoc(C_Campaign_ID));
111 }
112 public int getC_Campaign_ID()
113 {
114 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Campaign_ID");
115 if (ii == null) return 0;
116 return ii.intValue();
117 }
118 void setC_LocFrom_ID (int C_LocFrom_ID)
119 {
120 if (C_LocFrom_ID == 0) setValueNoCheck ("C_LocFrom_ID", null);
121  else
122 setValueNoCheck ("C_LocFrom_ID", new Integer JavaDoc(C_LocFrom_ID));
123 }
124 public int getC_LocFrom_ID()
125 {
126 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_LocFrom_ID");
127 if (ii == null) return 0;
128 return ii.intValue();
129 }
130 void setC_LocTo_ID (int C_LocTo_ID)
131 {
132 if (C_LocTo_ID == 0) setValueNoCheck ("C_LocTo_ID", null);
133  else
134 setValueNoCheck ("C_LocTo_ID", new Integer JavaDoc(C_LocTo_ID));
135 }
136 public int getC_LocTo_ID()
137 {
138 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_LocTo_ID");
139 if (ii == null) return 0;
140 return ii.intValue();
141 }
142 void setC_Project_ID (int C_Project_ID)
143 {
144 if (C_Project_ID == 0) setValueNoCheck ("C_Project_ID", null);
145  else
146 setValueNoCheck ("C_Project_ID", new Integer JavaDoc(C_Project_ID));
147 }
148 public int getC_Project_ID()
149 {
150 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_Project_ID");
151 if (ii == null) return 0;
152 return ii.intValue();
153 }
154 void setC_SalesRegion_ID (int C_SalesRegion_ID)
155 {
156 if (C_SalesRegion_ID == 0) setValueNoCheck ("C_SalesRegion_ID", null);
157  else
158 setValueNoCheck ("C_SalesRegion_ID", new Integer JavaDoc(C_SalesRegion_ID));
159 }
160 public int getC_SalesRegion_ID()
161 {
162 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_SalesRegion_ID");
163 if (ii == null) return 0;
164 return ii.intValue();
165 }
166 void setC_ValidCombination_ID (int C_ValidCombination_ID)
167 {
168 setValueNoCheck ("C_ValidCombination_ID", new Integer JavaDoc(C_ValidCombination_ID));
169 }
170 public int getC_ValidCombination_ID()
171 {
172 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_ValidCombination_ID");
173 if (ii == null) return 0;
174 return ii.intValue();
175 }
176 void setCombination (String JavaDoc Combination)
177 {
178 setValueNoCheck ("Combination", Combination);
179 }
180 public String JavaDoc getCombination()
181 {
182 return (String JavaDoc)getValue("Combination");
183 }
184 void setDescription (String JavaDoc Description)
185 {
186 setValueNoCheck ("Description", Description);
187 }
188 public String JavaDoc getDescription()
189 {
190 return (String JavaDoc)getValue("Description");
191 }
192 void setIsFullyQualified (boolean IsFullyQualified)
193 {
194 setValueNoCheck ("IsFullyQualified", new Boolean JavaDoc(IsFullyQualified));
195 }
196 public boolean isFullyQualified()
197 {
198 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsFullyQualified");
199 if (bb != null) return bb.booleanValue();
200 return false;
201 }
202 void setM_Product_ID (int M_Product_ID)
203 {
204 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null);
205  else
206 setValueNoCheck ("M_Product_ID", new Integer JavaDoc(M_Product_ID));
207 }
208 public int getM_Product_ID()
209 {
210 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_ID");
211 if (ii == null) return 0;
212 return ii.intValue();
213 }
214 void setUser1_ID (int User1_ID)
215 {
216 if (User1_ID == 0) setValueNoCheck ("User1_ID", null);
217  else
218 setValueNoCheck ("User1_ID", new Integer JavaDoc(User1_ID));
219 }
220 public int getUser1_ID()
221 {
222 Integer JavaDoc ii = (Integer JavaDoc)getValue("User1_ID");
223 if (ii == null) return 0;
224 return ii.intValue();
225 }
226 void setUser2_ID (int User2_ID)
227 {
228 if (User2_ID == 0) setValueNoCheck ("User2_ID", null);
229  else
230 setValueNoCheck ("User2_ID", new Integer JavaDoc(User2_ID));
231 }
232 public int getUser2_ID()
233 {
234 Integer JavaDoc ii = (Integer JavaDoc)getValue("User2_ID");
235 if (ii == null) return 0;
236 return ii.intValue();
237 }
238 }
239
Popular Tags