KickJava   Java API By Example, From Geeks To Geeks.

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


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

10 public class X_S_ResourceType extends PO
11 {
12 /** Standard Constructor **/
13 public X_S_ResourceType (Properties ctx, int S_ResourceType_ID)
14 {
15 super (ctx, S_ResourceType_ID);
16 /** if (S_ResourceType_ID == 0)
17 {
18 setAllowUoMFractions (false);
19 setC_TaxCategory_ID (0);
20 setC_UOM_ID (0);
21 setIsDateSlot (false);
22 setIsSingleAssignment (false);
23 setIsTimeSlot (false);
24 setM_Product_Category_ID (0);
25 setName (null);
26 setOnFriday (false);
27 setOnMonday (false);
28 setOnSaturday (false);
29 setOnSunday (false);
30 setOnThursday (false);
31 setOnTuesday (false);
32 setOnWednesday (false);
33 setS_ResourceType_ID (0);
34 setValue (null);
35 }
36  **/

37 }
38 /** Load Constructor **/
39 public X_S_ResourceType (Properties ctx, ResultSet rs)
40 {
41 super (ctx, rs);
42 }
43 /** Load Meta Data **/
44 protected POInfo initPO (Properties ctx)
45 {
46 int AD_Table_ID = 480;
47 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
48 return poi;
49 }
50 public String JavaDoc toString()
51 {
52 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_S_ResourceType[").append(getID()).append("]");
53 return sb.toString();
54 }
55 public void setAllowUoMFractions (boolean AllowUoMFractions)
56 {
57 setValue ("AllowUoMFractions", new Boolean JavaDoc(AllowUoMFractions));
58 }
59 public boolean isAllowUoMFractions()
60 {
61 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("AllowUoMFractions");
62 if (bb != null) return bb.booleanValue();
63 return false;
64 }
65 public void setC_TaxCategory_ID (int C_TaxCategory_ID)
66 {
67 setValue ("C_TaxCategory_ID", new Integer JavaDoc(C_TaxCategory_ID));
68 }
69 public int getC_TaxCategory_ID()
70 {
71 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_TaxCategory_ID");
72 if (ii == null) return 0;
73 return ii.intValue();
74 }
75 public void setC_UOM_ID (int C_UOM_ID)
76 {
77 setValue ("C_UOM_ID", new Integer JavaDoc(C_UOM_ID));
78 }
79 public int getC_UOM_ID()
80 {
81 Integer JavaDoc ii = (Integer JavaDoc)getValue("C_UOM_ID");
82 if (ii == null) return 0;
83 return ii.intValue();
84 }
85 public void setChargeableQty (int ChargeableQty)
86 {
87 setValue ("ChargeableQty", new Integer JavaDoc(ChargeableQty));
88 }
89 public int getChargeableQty()
90 {
91 Integer JavaDoc ii = (Integer JavaDoc)getValue("ChargeableQty");
92 if (ii == null) return 0;
93 return ii.intValue();
94 }
95 public void setDescription (String JavaDoc Description)
96 {
97 setValue ("Description", Description);
98 }
99 public String JavaDoc getDescription()
100 {
101 return (String JavaDoc)getValue("Description");
102 }
103 public void setIsDateSlot (boolean IsDateSlot)
104 {
105 setValue ("IsDateSlot", new Boolean JavaDoc(IsDateSlot));
106 }
107 public boolean isDateSlot()
108 {
109 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsDateSlot");
110 if (bb != null) return bb.booleanValue();
111 return false;
112 }
113 public void setIsSingleAssignment (boolean IsSingleAssignment)
114 {
115 setValue ("IsSingleAssignment", new Boolean JavaDoc(IsSingleAssignment));
116 }
117 public boolean isSingleAssignment()
118 {
119 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsSingleAssignment");
120 if (bb != null) return bb.booleanValue();
121 return false;
122 }
123 public void setIsTimeSlot (boolean IsTimeSlot)
124 {
125 setValue ("IsTimeSlot", new Boolean JavaDoc(IsTimeSlot));
126 }
127 public boolean isTimeSlot()
128 {
129 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsTimeSlot");
130 if (bb != null) return bb.booleanValue();
131 return false;
132 }
133 public void setM_Product_Category_ID (int M_Product_Category_ID)
134 {
135 setValue ("M_Product_Category_ID", new Integer JavaDoc(M_Product_Category_ID));
136 }
137 public int getM_Product_Category_ID()
138 {
139 Integer JavaDoc ii = (Integer JavaDoc)getValue("M_Product_Category_ID");
140 if (ii == null) return 0;
141 return ii.intValue();
142 }
143 public void setName (String JavaDoc Name)
144 {
145 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
146 setValue ("Name", Name);
147 }
148 public String JavaDoc getName()
149 {
150 return (String JavaDoc)getValue("Name");
151 }
152 public void setOnFriday (boolean OnFriday)
153 {
154 setValue ("OnFriday", new Boolean JavaDoc(OnFriday));
155 }
156 public boolean isOnFriday()
157 {
158 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnFriday");
159 if (bb != null) return bb.booleanValue();
160 return false;
161 }
162 public void setOnMonday (boolean OnMonday)
163 {
164 setValue ("OnMonday", new Boolean JavaDoc(OnMonday));
165 }
166 public boolean isOnMonday()
167 {
168 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnMonday");
169 if (bb != null) return bb.booleanValue();
170 return false;
171 }
172 public void setOnSaturday (boolean OnSaturday)
173 {
174 setValue ("OnSaturday", new Boolean JavaDoc(OnSaturday));
175 }
176 public boolean isOnSaturday()
177 {
178 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnSaturday");
179 if (bb != null) return bb.booleanValue();
180 return false;
181 }
182 public void setOnSunday (boolean OnSunday)
183 {
184 setValue ("OnSunday", new Boolean JavaDoc(OnSunday));
185 }
186 public boolean isOnSunday()
187 {
188 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnSunday");
189 if (bb != null) return bb.booleanValue();
190 return false;
191 }
192 public void setOnThursday (boolean OnThursday)
193 {
194 setValue ("OnThursday", new Boolean JavaDoc(OnThursday));
195 }
196 public boolean isOnThursday()
197 {
198 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnThursday");
199 if (bb != null) return bb.booleanValue();
200 return false;
201 }
202 public void setOnTuesday (boolean OnTuesday)
203 {
204 setValue ("OnTuesday", new Boolean JavaDoc(OnTuesday));
205 }
206 public boolean isOnTuesday()
207 {
208 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnTuesday");
209 if (bb != null) return bb.booleanValue();
210 return false;
211 }
212 public void setOnWednesday (boolean OnWednesday)
213 {
214 setValue ("OnWednesday", new Boolean JavaDoc(OnWednesday));
215 }
216 public boolean isOnWednesday()
217 {
218 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("OnWednesday");
219 if (bb != null) return bb.booleanValue();
220 return false;
221 }
222 void setS_ResourceType_ID (int S_ResourceType_ID)
223 {
224 setValueNoCheck ("S_ResourceType_ID", new Integer JavaDoc(S_ResourceType_ID));
225 }
226 public int getS_ResourceType_ID()
227 {
228 Integer JavaDoc ii = (Integer JavaDoc)getValue("S_ResourceType_ID");
229 if (ii == null) return 0;
230 return ii.intValue();
231 }
232 public void setTimeSlotEnd (Timestamp TimeSlotEnd)
233 {
234 setValue ("TimeSlotEnd", TimeSlotEnd);
235 }
236 public Timestamp getTimeSlotEnd()
237 {
238 return (Timestamp)getValue("TimeSlotEnd");
239 }
240 public void setTimeSlotStart (Timestamp TimeSlotStart)
241 {
242 setValue ("TimeSlotStart", TimeSlotStart);
243 }
244 public Timestamp getTimeSlotStart()
245 {
246 return (Timestamp)getValue("TimeSlotStart");
247 }
248 public void setValue (String JavaDoc Value)
249 {
250 if (Value == null) throw new IllegalArgumentException JavaDoc ("Value is mandatory");
251 setValue ("Value", Value);
252 }
253 public String JavaDoc getValue()
254 {
255 return (String JavaDoc)getValue("Value");
256 }
257 }
258
Popular Tags