1
22
23 package com.liferay.portal.model.impl;
24
25 import com.liferay.portal.kernel.util.GetterUtil;
26 import com.liferay.portal.model.impl.BaseModelImpl;
27 import com.liferay.portal.util.PropsUtil;
28
29 import java.io.Serializable;
30
31 import java.sql.Types;
32
33
53 public class OrgLaborModelImpl extends BaseModelImpl {
54 public static String TABLE_NAME = "OrgLabor";
55 public static Object[][] TABLE_COLUMNS = {
56 { "orgLaborId", new Integer(Types.BIGINT) },
57 { "organizationId", new Integer(Types.BIGINT) },
58 { "typeId", new Integer(Types.INTEGER) },
59 { "sunOpen", new Integer(Types.INTEGER) },
60 { "sunClose", new Integer(Types.INTEGER) },
61 { "monOpen", new Integer(Types.INTEGER) },
62 { "monClose", new Integer(Types.INTEGER) },
63 { "tueOpen", new Integer(Types.INTEGER) },
64 { "tueClose", new Integer(Types.INTEGER) },
65 { "wedOpen", new Integer(Types.INTEGER) },
66 { "wedClose", new Integer(Types.INTEGER) },
67 { "thuOpen", new Integer(Types.INTEGER) },
68 { "thuClose", new Integer(Types.INTEGER) },
69 { "friOpen", new Integer(Types.INTEGER) },
70 { "friClose", new Integer(Types.INTEGER) },
71 { "satOpen", new Integer(Types.INTEGER) },
72 { "satClose", new Integer(Types.INTEGER) }
73 };
74 public static String TABLE_SQL_CREATE = "create table OrgLabor (orgLaborId LONG not null primary key,organizationId LONG,typeId INTEGER,sunOpen INTEGER,sunClose INTEGER,monOpen INTEGER,monClose INTEGER,tueOpen INTEGER,tueClose INTEGER,wedOpen INTEGER,wedClose INTEGER,thuOpen INTEGER,thuClose INTEGER,friOpen INTEGER,friClose INTEGER,satOpen INTEGER,satClose INTEGER)";
75 public static String TABLE_SQL_DROP = "drop table OrgLabor";
76 public static boolean XSS_ALLOW_BY_MODEL = GetterUtil.getBoolean(PropsUtil.get(
77 "xss.allow.com.liferay.portal.model.OrgLabor"), XSS_ALLOW);
78 public static long LOCK_EXPIRATION_TIME = GetterUtil.getLong(PropsUtil.get(
79 "lock.expiration.time.com.liferay.portal.model.OrgLaborModel"));
80
81 public OrgLaborModelImpl() {
82 }
83
84 public long getPrimaryKey() {
85 return _orgLaborId;
86 }
87
88 public void setPrimaryKey(long pk) {
89 setOrgLaborId(pk);
90 }
91
92 public Serializable getPrimaryKeyObj() {
93 return new Long(_orgLaborId);
94 }
95
96 public long getOrgLaborId() {
97 return _orgLaborId;
98 }
99
100 public void setOrgLaborId(long orgLaborId) {
101 if (orgLaborId != _orgLaborId) {
102 _orgLaborId = orgLaborId;
103 }
104 }
105
106 public long getOrganizationId() {
107 return _organizationId;
108 }
109
110 public void setOrganizationId(long organizationId) {
111 if (organizationId != _organizationId) {
112 _organizationId = organizationId;
113 }
114 }
115
116 public int getTypeId() {
117 return _typeId;
118 }
119
120 public void setTypeId(int typeId) {
121 if (typeId != _typeId) {
122 _typeId = typeId;
123 }
124 }
125
126 public int getSunOpen() {
127 return _sunOpen;
128 }
129
130 public void setSunOpen(int sunOpen) {
131 if (sunOpen != _sunOpen) {
132 _sunOpen = sunOpen;
133 }
134 }
135
136 public int getSunClose() {
137 return _sunClose;
138 }
139
140 public void setSunClose(int sunClose) {
141 if (sunClose != _sunClose) {
142 _sunClose = sunClose;
143 }
144 }
145
146 public int getMonOpen() {
147 return _monOpen;
148 }
149
150 public void setMonOpen(int monOpen) {
151 if (monOpen != _monOpen) {
152 _monOpen = monOpen;
153 }
154 }
155
156 public int getMonClose() {
157 return _monClose;
158 }
159
160 public void setMonClose(int monClose) {
161 if (monClose != _monClose) {
162 _monClose = monClose;
163 }
164 }
165
166 public int getTueOpen() {
167 return _tueOpen;
168 }
169
170 public void setTueOpen(int tueOpen) {
171 if (tueOpen != _tueOpen) {
172 _tueOpen = tueOpen;
173 }
174 }
175
176 public int getTueClose() {
177 return _tueClose;
178 }
179
180 public void setTueClose(int tueClose) {
181 if (tueClose != _tueClose) {
182 _tueClose = tueClose;
183 }
184 }
185
186 public int getWedOpen() {
187 return _wedOpen;
188 }
189
190 public void setWedOpen(int wedOpen) {
191 if (wedOpen != _wedOpen) {
192 _wedOpen = wedOpen;
193 }
194 }
195
196 public int getWedClose() {
197 return _wedClose;
198 }
199
200 public void setWedClose(int wedClose) {
201 if (wedClose != _wedClose) {
202 _wedClose = wedClose;
203 }
204 }
205
206 public int getThuOpen() {
207 return _thuOpen;
208 }
209
210 public void setThuOpen(int thuOpen) {
211 if (thuOpen != _thuOpen) {
212 _thuOpen = thuOpen;
213 }
214 }
215
216 public int getThuClose() {
217 return _thuClose;
218 }
219
220 public void setThuClose(int thuClose) {
221 if (thuClose != _thuClose) {
222 _thuClose = thuClose;
223 }
224 }
225
226 public int getFriOpen() {
227 return _friOpen;
228 }
229
230 public void setFriOpen(int friOpen) {
231 if (friOpen != _friOpen) {
232 _friOpen = friOpen;
233 }
234 }
235
236 public int getFriClose() {
237 return _friClose;
238 }
239
240 public void setFriClose(int friClose) {
241 if (friClose != _friClose) {
242 _friClose = friClose;
243 }
244 }
245
246 public int getSatOpen() {
247 return _satOpen;
248 }
249
250 public void setSatOpen(int satOpen) {
251 if (satOpen != _satOpen) {
252 _satOpen = satOpen;
253 }
254 }
255
256 public int getSatClose() {
257 return _satClose;
258 }
259
260 public void setSatClose(int satClose) {
261 if (satClose != _satClose) {
262 _satClose = satClose;
263 }
264 }
265
266 public Object clone() {
267 OrgLaborImpl clone = new OrgLaborImpl();
268 clone.setOrgLaborId(getOrgLaborId());
269 clone.setOrganizationId(getOrganizationId());
270 clone.setTypeId(getTypeId());
271 clone.setSunOpen(getSunOpen());
272 clone.setSunClose(getSunClose());
273 clone.setMonOpen(getMonOpen());
274 clone.setMonClose(getMonClose());
275 clone.setTueOpen(getTueOpen());
276 clone.setTueClose(getTueClose());
277 clone.setWedOpen(getWedOpen());
278 clone.setWedClose(getWedClose());
279 clone.setThuOpen(getThuOpen());
280 clone.setThuClose(getThuClose());
281 clone.setFriOpen(getFriOpen());
282 clone.setFriClose(getFriClose());
283 clone.setSatOpen(getSatOpen());
284 clone.setSatClose(getSatClose());
285
286 return clone;
287 }
288
289 public int compareTo(Object obj) {
290 if (obj == null) {
291 return -1;
292 }
293
294 OrgLaborImpl orgLabor = (OrgLaborImpl)obj;
295 int value = 0;
296
297 if (getOrganizationId() < orgLabor.getOrganizationId()) {
298 value = -1;
299 }
300 else if (getOrganizationId() > orgLabor.getOrganizationId()) {
301 value = 1;
302 }
303 else {
304 value = 0;
305 }
306
307 if (value != 0) {
308 return value;
309 }
310
311 if (getTypeId() < orgLabor.getTypeId()) {
312 value = -1;
313 }
314 else if (getTypeId() > orgLabor.getTypeId()) {
315 value = 1;
316 }
317 else {
318 value = 0;
319 }
320
321 if (value != 0) {
322 return value;
323 }
324
325 return 0;
326 }
327
328 public boolean equals(Object obj) {
329 if (obj == null) {
330 return false;
331 }
332
333 OrgLaborImpl orgLabor = null;
334
335 try {
336 orgLabor = (OrgLaborImpl)obj;
337 }
338 catch (ClassCastException cce) {
339 return false;
340 }
341
342 long pk = orgLabor.getPrimaryKey();
343
344 if (getPrimaryKey() == pk) {
345 return true;
346 }
347 else {
348 return false;
349 }
350 }
351
352 public int hashCode() {
353 return (int)getPrimaryKey();
354 }
355
356 private long _orgLaborId;
357 private long _organizationId;
358 private int _typeId;
359 private int _sunOpen;
360 private int _sunClose;
361 private int _monOpen;
362 private int _monClose;
363 private int _tueOpen;
364 private int _tueClose;
365 private int _wedOpen;
366 private int _wedClose;
367 private int _thuOpen;
368 private int _thuClose;
369 private int _friOpen;
370 private int _friClose;
371 private int _satOpen;
372 private int _satClose;
373 }