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