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