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