001
014
015 package com.liferay.portlet.calendar.model.impl;
016
017 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.json.JSON;
020 import com.liferay.portal.kernel.util.DateUtil;
021 import com.liferay.portal.kernel.util.GetterUtil;
022 import com.liferay.portal.kernel.util.ProxyUtil;
023 import com.liferay.portal.kernel.util.StringBundler;
024 import com.liferay.portal.kernel.util.StringPool;
025 import com.liferay.portal.model.CacheModel;
026 import com.liferay.portal.model.impl.BaseModelImpl;
027 import com.liferay.portal.service.ServiceContext;
028 import com.liferay.portal.util.PortalUtil;
029
030 import com.liferay.portlet.calendar.model.CalEvent;
031 import com.liferay.portlet.calendar.model.CalEventModel;
032 import com.liferay.portlet.calendar.model.CalEventSoap;
033 import com.liferay.portlet.expando.model.ExpandoBridge;
034 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
035
036 import java.io.Serializable;
037
038 import java.sql.Types;
039
040 import java.util.ArrayList;
041 import java.util.Date;
042 import java.util.List;
043
044
057 @JSON(strict = true)
058 public class CalEventModelImpl extends BaseModelImpl<CalEvent>
059 implements CalEventModel {
060
065 public static final String TABLE_NAME = "CalEvent";
066 public static final Object[][] TABLE_COLUMNS = {
067 { "uuid_", Types.VARCHAR },
068 { "eventId", Types.BIGINT },
069 { "groupId", Types.BIGINT },
070 { "companyId", Types.BIGINT },
071 { "userId", Types.BIGINT },
072 { "userName", Types.VARCHAR },
073 { "createDate", Types.TIMESTAMP },
074 { "modifiedDate", Types.TIMESTAMP },
075 { "title", Types.VARCHAR },
076 { "description", Types.VARCHAR },
077 { "location", Types.VARCHAR },
078 { "startDate", Types.TIMESTAMP },
079 { "endDate", Types.TIMESTAMP },
080 { "durationHour", Types.INTEGER },
081 { "durationMinute", Types.INTEGER },
082 { "allDay", Types.BOOLEAN },
083 { "timeZoneSensitive", Types.BOOLEAN },
084 { "type_", Types.VARCHAR },
085 { "repeating", Types.BOOLEAN },
086 { "recurrence", Types.CLOB },
087 { "remindBy", Types.INTEGER },
088 { "firstReminder", Types.INTEGER },
089 { "secondReminder", Types.INTEGER }
090 };
091 public static final String TABLE_SQL_CREATE = "create table CalEvent (uuid_ VARCHAR(75) null,eventId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,title VARCHAR(75) null,description STRING null,location STRING null,startDate DATE null,endDate DATE null,durationHour INTEGER,durationMinute INTEGER,allDay BOOLEAN,timeZoneSensitive BOOLEAN,type_ VARCHAR(75) null,repeating BOOLEAN,recurrence TEXT null,remindBy INTEGER,firstReminder INTEGER,secondReminder INTEGER)";
092 public static final String TABLE_SQL_DROP = "drop table CalEvent";
093 public static final String ORDER_BY_JPQL = " ORDER BY calEvent.startDate ASC, calEvent.title ASC";
094 public static final String ORDER_BY_SQL = " ORDER BY CalEvent.startDate ASC, CalEvent.title ASC";
095 public static final String DATA_SOURCE = "liferayDataSource";
096 public static final String SESSION_FACTORY = "liferaySessionFactory";
097 public static final String TX_MANAGER = "liferayTransactionManager";
098 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
099 "value.object.entity.cache.enabled.com.liferay.portlet.calendar.model.CalEvent"),
100 true);
101 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
102 "value.object.finder.cache.enabled.com.liferay.portlet.calendar.model.CalEvent"),
103 true);
104 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
105 "value.object.column.bitmask.enabled.com.liferay.portlet.calendar.model.CalEvent"),
106 true);
107 public static long COMPANYID_COLUMN_BITMASK = 1L;
108 public static long GROUPID_COLUMN_BITMASK = 2L;
109 public static long REMINDBY_COLUMN_BITMASK = 4L;
110 public static long REPEATING_COLUMN_BITMASK = 8L;
111 public static long TYPE_COLUMN_BITMASK = 16L;
112 public static long UUID_COLUMN_BITMASK = 32L;
113
114
120 public static CalEvent toModel(CalEventSoap soapModel) {
121 CalEvent model = new CalEventImpl();
122
123 model.setUuid(soapModel.getUuid());
124 model.setEventId(soapModel.getEventId());
125 model.setGroupId(soapModel.getGroupId());
126 model.setCompanyId(soapModel.getCompanyId());
127 model.setUserId(soapModel.getUserId());
128 model.setUserName(soapModel.getUserName());
129 model.setCreateDate(soapModel.getCreateDate());
130 model.setModifiedDate(soapModel.getModifiedDate());
131 model.setTitle(soapModel.getTitle());
132 model.setDescription(soapModel.getDescription());
133 model.setLocation(soapModel.getLocation());
134 model.setStartDate(soapModel.getStartDate());
135 model.setEndDate(soapModel.getEndDate());
136 model.setDurationHour(soapModel.getDurationHour());
137 model.setDurationMinute(soapModel.getDurationMinute());
138 model.setAllDay(soapModel.getAllDay());
139 model.setTimeZoneSensitive(soapModel.getTimeZoneSensitive());
140 model.setType(soapModel.getType());
141 model.setRepeating(soapModel.getRepeating());
142 model.setRecurrence(soapModel.getRecurrence());
143 model.setRemindBy(soapModel.getRemindBy());
144 model.setFirstReminder(soapModel.getFirstReminder());
145 model.setSecondReminder(soapModel.getSecondReminder());
146
147 return model;
148 }
149
150
156 public static List<CalEvent> toModels(CalEventSoap[] soapModels) {
157 List<CalEvent> models = new ArrayList<CalEvent>(soapModels.length);
158
159 for (CalEventSoap soapModel : soapModels) {
160 models.add(toModel(soapModel));
161 }
162
163 return models;
164 }
165
166 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
167 "lock.expiration.time.com.liferay.portlet.calendar.model.CalEvent"));
168
169 public CalEventModelImpl() {
170 }
171
172 public long getPrimaryKey() {
173 return _eventId;
174 }
175
176 public void setPrimaryKey(long primaryKey) {
177 setEventId(primaryKey);
178 }
179
180 public Serializable getPrimaryKeyObj() {
181 return new Long(_eventId);
182 }
183
184 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
185 setPrimaryKey(((Long)primaryKeyObj).longValue());
186 }
187
188 public Class<?> getModelClass() {
189 return CalEvent.class;
190 }
191
192 public String getModelClassName() {
193 return CalEvent.class.getName();
194 }
195
196 @JSON
197 public String getUuid() {
198 if (_uuid == null) {
199 return StringPool.BLANK;
200 }
201 else {
202 return _uuid;
203 }
204 }
205
206 public void setUuid(String uuid) {
207 if (_originalUuid == null) {
208 _originalUuid = _uuid;
209 }
210
211 _uuid = uuid;
212 }
213
214 public String getOriginalUuid() {
215 return GetterUtil.getString(_originalUuid);
216 }
217
218 @JSON
219 public long getEventId() {
220 return _eventId;
221 }
222
223 public void setEventId(long eventId) {
224 _eventId = eventId;
225 }
226
227 @JSON
228 public long getGroupId() {
229 return _groupId;
230 }
231
232 public void setGroupId(long groupId) {
233 _columnBitmask |= GROUPID_COLUMN_BITMASK;
234
235 if (!_setOriginalGroupId) {
236 _setOriginalGroupId = true;
237
238 _originalGroupId = _groupId;
239 }
240
241 _groupId = groupId;
242 }
243
244 public long getOriginalGroupId() {
245 return _originalGroupId;
246 }
247
248 @JSON
249 public long getCompanyId() {
250 return _companyId;
251 }
252
253 public void setCompanyId(long companyId) {
254 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
255
256 if (!_setOriginalCompanyId) {
257 _setOriginalCompanyId = true;
258
259 _originalCompanyId = _companyId;
260 }
261
262 _companyId = companyId;
263 }
264
265 public long getOriginalCompanyId() {
266 return _originalCompanyId;
267 }
268
269 @JSON
270 public long getUserId() {
271 return _userId;
272 }
273
274 public void setUserId(long userId) {
275 _userId = userId;
276 }
277
278 public String getUserUuid() throws SystemException {
279 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
280 }
281
282 public void setUserUuid(String userUuid) {
283 _userUuid = userUuid;
284 }
285
286 @JSON
287 public String getUserName() {
288 if (_userName == null) {
289 return StringPool.BLANK;
290 }
291 else {
292 return _userName;
293 }
294 }
295
296 public void setUserName(String userName) {
297 _userName = userName;
298 }
299
300 @JSON
301 public Date getCreateDate() {
302 return _createDate;
303 }
304
305 public void setCreateDate(Date createDate) {
306 _createDate = createDate;
307 }
308
309 @JSON
310 public Date getModifiedDate() {
311 return _modifiedDate;
312 }
313
314 public void setModifiedDate(Date modifiedDate) {
315 _modifiedDate = modifiedDate;
316 }
317
318 @JSON
319 public String getTitle() {
320 if (_title == null) {
321 return StringPool.BLANK;
322 }
323 else {
324 return _title;
325 }
326 }
327
328 public void setTitle(String title) {
329 _title = title;
330 }
331
332 @JSON
333 public String getDescription() {
334 if (_description == null) {
335 return StringPool.BLANK;
336 }
337 else {
338 return _description;
339 }
340 }
341
342 public void setDescription(String description) {
343 _description = description;
344 }
345
346 @JSON
347 public String getLocation() {
348 if (_location == null) {
349 return StringPool.BLANK;
350 }
351 else {
352 return _location;
353 }
354 }
355
356 public void setLocation(String location) {
357 _location = location;
358 }
359
360 @JSON
361 public Date getStartDate() {
362 return _startDate;
363 }
364
365 public void setStartDate(Date startDate) {
366 _startDate = startDate;
367 }
368
369 @JSON
370 public Date getEndDate() {
371 return _endDate;
372 }
373
374 public void setEndDate(Date endDate) {
375 _endDate = endDate;
376 }
377
378 @JSON
379 public int getDurationHour() {
380 return _durationHour;
381 }
382
383 public void setDurationHour(int durationHour) {
384 _durationHour = durationHour;
385 }
386
387 @JSON
388 public int getDurationMinute() {
389 return _durationMinute;
390 }
391
392 public void setDurationMinute(int durationMinute) {
393 _durationMinute = durationMinute;
394 }
395
396 @JSON
397 public boolean getAllDay() {
398 return _allDay;
399 }
400
401 public boolean isAllDay() {
402 return _allDay;
403 }
404
405 public void setAllDay(boolean allDay) {
406 _allDay = allDay;
407 }
408
409 @JSON
410 public boolean getTimeZoneSensitive() {
411 return _timeZoneSensitive;
412 }
413
414 public boolean isTimeZoneSensitive() {
415 return _timeZoneSensitive;
416 }
417
418 public void setTimeZoneSensitive(boolean timeZoneSensitive) {
419 _timeZoneSensitive = timeZoneSensitive;
420 }
421
422 @JSON
423 public String getType() {
424 if (_type == null) {
425 return StringPool.BLANK;
426 }
427 else {
428 return _type;
429 }
430 }
431
432 public void setType(String type) {
433 _columnBitmask |= TYPE_COLUMN_BITMASK;
434
435 if (_originalType == null) {
436 _originalType = _type;
437 }
438
439 _type = type;
440 }
441
442 public String getOriginalType() {
443 return GetterUtil.getString(_originalType);
444 }
445
446 @JSON
447 public boolean getRepeating() {
448 return _repeating;
449 }
450
451 public boolean isRepeating() {
452 return _repeating;
453 }
454
455 public void setRepeating(boolean repeating) {
456 _columnBitmask |= REPEATING_COLUMN_BITMASK;
457
458 if (!_setOriginalRepeating) {
459 _setOriginalRepeating = true;
460
461 _originalRepeating = _repeating;
462 }
463
464 _repeating = repeating;
465 }
466
467 public boolean getOriginalRepeating() {
468 return _originalRepeating;
469 }
470
471 @JSON
472 public String getRecurrence() {
473 if (_recurrence == null) {
474 return StringPool.BLANK;
475 }
476 else {
477 return _recurrence;
478 }
479 }
480
481 public void setRecurrence(String recurrence) {
482 _recurrence = recurrence;
483 }
484
485 @JSON
486 public int getRemindBy() {
487 return _remindBy;
488 }
489
490 public void setRemindBy(int remindBy) {
491 _columnBitmask |= REMINDBY_COLUMN_BITMASK;
492
493 if (!_setOriginalRemindBy) {
494 _setOriginalRemindBy = true;
495
496 _originalRemindBy = _remindBy;
497 }
498
499 _remindBy = remindBy;
500 }
501
502 public int getOriginalRemindBy() {
503 return _originalRemindBy;
504 }
505
506 @JSON
507 public int getFirstReminder() {
508 return _firstReminder;
509 }
510
511 public void setFirstReminder(int firstReminder) {
512 _firstReminder = firstReminder;
513 }
514
515 @JSON
516 public int getSecondReminder() {
517 return _secondReminder;
518 }
519
520 public void setSecondReminder(int secondReminder) {
521 _secondReminder = secondReminder;
522 }
523
524 public long getColumnBitmask() {
525 return _columnBitmask;
526 }
527
528 @Override
529 public CalEvent toEscapedModel() {
530 if (_escapedModelProxy == null) {
531 _escapedModelProxy = (CalEvent)ProxyUtil.newProxyInstance(_classLoader,
532 _escapedModelProxyInterfaces,
533 new AutoEscapeBeanHandler(this));
534 }
535
536 return _escapedModelProxy;
537 }
538
539 @Override
540 public ExpandoBridge getExpandoBridge() {
541 if (_expandoBridge == null) {
542 _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
543 CalEvent.class.getName(), getPrimaryKey());
544 }
545
546 return _expandoBridge;
547 }
548
549 @Override
550 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
551 getExpandoBridge().setAttributes(serviceContext);
552 }
553
554 @Override
555 public Object clone() {
556 CalEventImpl calEventImpl = new CalEventImpl();
557
558 calEventImpl.setUuid(getUuid());
559 calEventImpl.setEventId(getEventId());
560 calEventImpl.setGroupId(getGroupId());
561 calEventImpl.setCompanyId(getCompanyId());
562 calEventImpl.setUserId(getUserId());
563 calEventImpl.setUserName(getUserName());
564 calEventImpl.setCreateDate(getCreateDate());
565 calEventImpl.setModifiedDate(getModifiedDate());
566 calEventImpl.setTitle(getTitle());
567 calEventImpl.setDescription(getDescription());
568 calEventImpl.setLocation(getLocation());
569 calEventImpl.setStartDate(getStartDate());
570 calEventImpl.setEndDate(getEndDate());
571 calEventImpl.setDurationHour(getDurationHour());
572 calEventImpl.setDurationMinute(getDurationMinute());
573 calEventImpl.setAllDay(getAllDay());
574 calEventImpl.setTimeZoneSensitive(getTimeZoneSensitive());
575 calEventImpl.setType(getType());
576 calEventImpl.setRepeating(getRepeating());
577 calEventImpl.setRecurrence(getRecurrence());
578 calEventImpl.setRemindBy(getRemindBy());
579 calEventImpl.setFirstReminder(getFirstReminder());
580 calEventImpl.setSecondReminder(getSecondReminder());
581
582 calEventImpl.resetOriginalValues();
583
584 return calEventImpl;
585 }
586
587 public int compareTo(CalEvent calEvent) {
588 int value = 0;
589
590 value = DateUtil.compareTo(getStartDate(), calEvent.getStartDate());
591
592 if (value != 0) {
593 return value;
594 }
595
596 value = getTitle().toLowerCase()
597 .compareTo(calEvent.getTitle().toLowerCase());
598
599 if (value != 0) {
600 return value;
601 }
602
603 return 0;
604 }
605
606 @Override
607 public boolean equals(Object obj) {
608 if (obj == null) {
609 return false;
610 }
611
612 CalEvent calEvent = null;
613
614 try {
615 calEvent = (CalEvent)obj;
616 }
617 catch (ClassCastException cce) {
618 return false;
619 }
620
621 long primaryKey = calEvent.getPrimaryKey();
622
623 if (getPrimaryKey() == primaryKey) {
624 return true;
625 }
626 else {
627 return false;
628 }
629 }
630
631 @Override
632 public int hashCode() {
633 return (int)getPrimaryKey();
634 }
635
636 @Override
637 public void resetOriginalValues() {
638 CalEventModelImpl calEventModelImpl = this;
639
640 calEventModelImpl._originalUuid = calEventModelImpl._uuid;
641
642 calEventModelImpl._originalGroupId = calEventModelImpl._groupId;
643
644 calEventModelImpl._setOriginalGroupId = false;
645
646 calEventModelImpl._originalCompanyId = calEventModelImpl._companyId;
647
648 calEventModelImpl._setOriginalCompanyId = false;
649
650 calEventModelImpl._originalType = calEventModelImpl._type;
651
652 calEventModelImpl._originalRepeating = calEventModelImpl._repeating;
653
654 calEventModelImpl._setOriginalRepeating = false;
655
656 calEventModelImpl._originalRemindBy = calEventModelImpl._remindBy;
657
658 calEventModelImpl._setOriginalRemindBy = false;
659
660 calEventModelImpl._columnBitmask = 0;
661 }
662
663 @Override
664 public CacheModel<CalEvent> toCacheModel() {
665 CalEventCacheModel calEventCacheModel = new CalEventCacheModel();
666
667 calEventCacheModel.uuid = getUuid();
668
669 String uuid = calEventCacheModel.uuid;
670
671 if ((uuid != null) && (uuid.length() == 0)) {
672 calEventCacheModel.uuid = null;
673 }
674
675 calEventCacheModel.eventId = getEventId();
676
677 calEventCacheModel.groupId = getGroupId();
678
679 calEventCacheModel.companyId = getCompanyId();
680
681 calEventCacheModel.userId = getUserId();
682
683 calEventCacheModel.userName = getUserName();
684
685 String userName = calEventCacheModel.userName;
686
687 if ((userName != null) && (userName.length() == 0)) {
688 calEventCacheModel.userName = null;
689 }
690
691 Date createDate = getCreateDate();
692
693 if (createDate != null) {
694 calEventCacheModel.createDate = createDate.getTime();
695 }
696 else {
697 calEventCacheModel.createDate = Long.MIN_VALUE;
698 }
699
700 Date modifiedDate = getModifiedDate();
701
702 if (modifiedDate != null) {
703 calEventCacheModel.modifiedDate = modifiedDate.getTime();
704 }
705 else {
706 calEventCacheModel.modifiedDate = Long.MIN_VALUE;
707 }
708
709 calEventCacheModel.title = getTitle();
710
711 String title = calEventCacheModel.title;
712
713 if ((title != null) && (title.length() == 0)) {
714 calEventCacheModel.title = null;
715 }
716
717 calEventCacheModel.description = getDescription();
718
719 String description = calEventCacheModel.description;
720
721 if ((description != null) && (description.length() == 0)) {
722 calEventCacheModel.description = null;
723 }
724
725 calEventCacheModel.location = getLocation();
726
727 String location = calEventCacheModel.location;
728
729 if ((location != null) && (location.length() == 0)) {
730 calEventCacheModel.location = null;
731 }
732
733 Date startDate = getStartDate();
734
735 if (startDate != null) {
736 calEventCacheModel.startDate = startDate.getTime();
737 }
738 else {
739 calEventCacheModel.startDate = Long.MIN_VALUE;
740 }
741
742 Date endDate = getEndDate();
743
744 if (endDate != null) {
745 calEventCacheModel.endDate = endDate.getTime();
746 }
747 else {
748 calEventCacheModel.endDate = Long.MIN_VALUE;
749 }
750
751 calEventCacheModel.durationHour = getDurationHour();
752
753 calEventCacheModel.durationMinute = getDurationMinute();
754
755 calEventCacheModel.allDay = getAllDay();
756
757 calEventCacheModel.timeZoneSensitive = getTimeZoneSensitive();
758
759 calEventCacheModel.type = getType();
760
761 String type = calEventCacheModel.type;
762
763 if ((type != null) && (type.length() == 0)) {
764 calEventCacheModel.type = null;
765 }
766
767 calEventCacheModel.repeating = getRepeating();
768
769 calEventCacheModel.recurrence = getRecurrence();
770
771 String recurrence = calEventCacheModel.recurrence;
772
773 if ((recurrence != null) && (recurrence.length() == 0)) {
774 calEventCacheModel.recurrence = null;
775 }
776
777 calEventCacheModel.remindBy = getRemindBy();
778
779 calEventCacheModel.firstReminder = getFirstReminder();
780
781 calEventCacheModel.secondReminder = getSecondReminder();
782
783 return calEventCacheModel;
784 }
785
786 @Override
787 public String toString() {
788 StringBundler sb = new StringBundler(47);
789
790 sb.append("{uuid=");
791 sb.append(getUuid());
792 sb.append(", eventId=");
793 sb.append(getEventId());
794 sb.append(", groupId=");
795 sb.append(getGroupId());
796 sb.append(", companyId=");
797 sb.append(getCompanyId());
798 sb.append(", userId=");
799 sb.append(getUserId());
800 sb.append(", userName=");
801 sb.append(getUserName());
802 sb.append(", createDate=");
803 sb.append(getCreateDate());
804 sb.append(", modifiedDate=");
805 sb.append(getModifiedDate());
806 sb.append(", title=");
807 sb.append(getTitle());
808 sb.append(", description=");
809 sb.append(getDescription());
810 sb.append(", location=");
811 sb.append(getLocation());
812 sb.append(", startDate=");
813 sb.append(getStartDate());
814 sb.append(", endDate=");
815 sb.append(getEndDate());
816 sb.append(", durationHour=");
817 sb.append(getDurationHour());
818 sb.append(", durationMinute=");
819 sb.append(getDurationMinute());
820 sb.append(", allDay=");
821 sb.append(getAllDay());
822 sb.append(", timeZoneSensitive=");
823 sb.append(getTimeZoneSensitive());
824 sb.append(", type=");
825 sb.append(getType());
826 sb.append(", repeating=");
827 sb.append(getRepeating());
828 sb.append(", recurrence=");
829 sb.append(getRecurrence());
830 sb.append(", remindBy=");
831 sb.append(getRemindBy());
832 sb.append(", firstReminder=");
833 sb.append(getFirstReminder());
834 sb.append(", secondReminder=");
835 sb.append(getSecondReminder());
836 sb.append("}");
837
838 return sb.toString();
839 }
840
841 public String toXmlString() {
842 StringBundler sb = new StringBundler(73);
843
844 sb.append("<model><model-name>");
845 sb.append("com.liferay.portlet.calendar.model.CalEvent");
846 sb.append("</model-name>");
847
848 sb.append(
849 "<column><column-name>uuid</column-name><column-value><![CDATA[");
850 sb.append(getUuid());
851 sb.append("]]></column-value></column>");
852 sb.append(
853 "<column><column-name>eventId</column-name><column-value><![CDATA[");
854 sb.append(getEventId());
855 sb.append("]]></column-value></column>");
856 sb.append(
857 "<column><column-name>groupId</column-name><column-value><![CDATA[");
858 sb.append(getGroupId());
859 sb.append("]]></column-value></column>");
860 sb.append(
861 "<column><column-name>companyId</column-name><column-value><![CDATA[");
862 sb.append(getCompanyId());
863 sb.append("]]></column-value></column>");
864 sb.append(
865 "<column><column-name>userId</column-name><column-value><![CDATA[");
866 sb.append(getUserId());
867 sb.append("]]></column-value></column>");
868 sb.append(
869 "<column><column-name>userName</column-name><column-value><![CDATA[");
870 sb.append(getUserName());
871 sb.append("]]></column-value></column>");
872 sb.append(
873 "<column><column-name>createDate</column-name><column-value><![CDATA[");
874 sb.append(getCreateDate());
875 sb.append("]]></column-value></column>");
876 sb.append(
877 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
878 sb.append(getModifiedDate());
879 sb.append("]]></column-value></column>");
880 sb.append(
881 "<column><column-name>title</column-name><column-value><![CDATA[");
882 sb.append(getTitle());
883 sb.append("]]></column-value></column>");
884 sb.append(
885 "<column><column-name>description</column-name><column-value><![CDATA[");
886 sb.append(getDescription());
887 sb.append("]]></column-value></column>");
888 sb.append(
889 "<column><column-name>location</column-name><column-value><![CDATA[");
890 sb.append(getLocation());
891 sb.append("]]></column-value></column>");
892 sb.append(
893 "<column><column-name>startDate</column-name><column-value><![CDATA[");
894 sb.append(getStartDate());
895 sb.append("]]></column-value></column>");
896 sb.append(
897 "<column><column-name>endDate</column-name><column-value><![CDATA[");
898 sb.append(getEndDate());
899 sb.append("]]></column-value></column>");
900 sb.append(
901 "<column><column-name>durationHour</column-name><column-value><![CDATA[");
902 sb.append(getDurationHour());
903 sb.append("]]></column-value></column>");
904 sb.append(
905 "<column><column-name>durationMinute</column-name><column-value><![CDATA[");
906 sb.append(getDurationMinute());
907 sb.append("]]></column-value></column>");
908 sb.append(
909 "<column><column-name>allDay</column-name><column-value><![CDATA[");
910 sb.append(getAllDay());
911 sb.append("]]></column-value></column>");
912 sb.append(
913 "<column><column-name>timeZoneSensitive</column-name><column-value><![CDATA[");
914 sb.append(getTimeZoneSensitive());
915 sb.append("]]></column-value></column>");
916 sb.append(
917 "<column><column-name>type</column-name><column-value><![CDATA[");
918 sb.append(getType());
919 sb.append("]]></column-value></column>");
920 sb.append(
921 "<column><column-name>repeating</column-name><column-value><![CDATA[");
922 sb.append(getRepeating());
923 sb.append("]]></column-value></column>");
924 sb.append(
925 "<column><column-name>recurrence</column-name><column-value><![CDATA[");
926 sb.append(getRecurrence());
927 sb.append("]]></column-value></column>");
928 sb.append(
929 "<column><column-name>remindBy</column-name><column-value><![CDATA[");
930 sb.append(getRemindBy());
931 sb.append("]]></column-value></column>");
932 sb.append(
933 "<column><column-name>firstReminder</column-name><column-value><![CDATA[");
934 sb.append(getFirstReminder());
935 sb.append("]]></column-value></column>");
936 sb.append(
937 "<column><column-name>secondReminder</column-name><column-value><![CDATA[");
938 sb.append(getSecondReminder());
939 sb.append("]]></column-value></column>");
940
941 sb.append("</model>");
942
943 return sb.toString();
944 }
945
946 private static ClassLoader _classLoader = CalEvent.class.getClassLoader();
947 private static Class<?>[] _escapedModelProxyInterfaces = new Class[] {
948 CalEvent.class
949 };
950 private String _uuid;
951 private String _originalUuid;
952 private long _eventId;
953 private long _groupId;
954 private long _originalGroupId;
955 private boolean _setOriginalGroupId;
956 private long _companyId;
957 private long _originalCompanyId;
958 private boolean _setOriginalCompanyId;
959 private long _userId;
960 private String _userUuid;
961 private String _userName;
962 private Date _createDate;
963 private Date _modifiedDate;
964 private String _title;
965 private String _description;
966 private String _location;
967 private Date _startDate;
968 private Date _endDate;
969 private int _durationHour;
970 private int _durationMinute;
971 private boolean _allDay;
972 private boolean _timeZoneSensitive;
973 private String _type;
974 private String _originalType;
975 private boolean _repeating;
976 private boolean _originalRepeating;
977 private boolean _setOriginalRepeating;
978 private String _recurrence;
979 private int _remindBy;
980 private int _originalRemindBy;
981 private boolean _setOriginalRemindBy;
982 private int _firstReminder;
983 private int _secondReminder;
984 private transient ExpandoBridge _expandoBridge;
985 private long _columnBitmask;
986 private CalEvent _escapedModelProxy;
987 }