001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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.AssetEntry;
034    import com.liferay.portlet.asset.model.AssetEntryModel;
035    import com.liferay.portlet.asset.model.AssetEntrySoap;
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    /**
051     * The base model implementation for the AssetEntry service. Represents a row in the "AssetEntry" database table, with each column mapped to a property of this class.
052     *
053     * <p>
054     * This implementation and its corresponding interface {@link com.liferay.portlet.asset.model.AssetEntryModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link AssetEntryImpl}.
055     * </p>
056     *
057     * @author Brian Wing Shun Chan
058     * @see AssetEntryImpl
059     * @see com.liferay.portlet.asset.model.AssetEntry
060     * @see com.liferay.portlet.asset.model.AssetEntryModel
061     * @generated
062     */
063    @JSON(strict = true)
064    public class AssetEntryModelImpl extends BaseModelImpl<AssetEntry>
065            implements AssetEntryModel {
066            /*
067             * NOTE FOR DEVELOPERS:
068             *
069             * Never modify or reference this class directly. All methods that expect a asset entry model instance should use the {@link com.liferay.portlet.asset.model.AssetEntry} interface instead.
070             */
071            public static final String TABLE_NAME = "AssetEntry";
072            public static final Object[][] TABLE_COLUMNS = {
073                            { "entryId", Types.BIGINT },
074                            { "groupId", Types.BIGINT },
075                            { "companyId", Types.BIGINT },
076                            { "userId", Types.BIGINT },
077                            { "userName", Types.VARCHAR },
078                            { "createDate", Types.TIMESTAMP },
079                            { "modifiedDate", Types.TIMESTAMP },
080                            { "classNameId", Types.BIGINT },
081                            { "classPK", Types.BIGINT },
082                            { "classUuid", Types.VARCHAR },
083                            { "classTypeId", Types.BIGINT },
084                            { "visible", Types.BOOLEAN },
085                            { "startDate", Types.TIMESTAMP },
086                            { "endDate", Types.TIMESTAMP },
087                            { "publishDate", Types.TIMESTAMP },
088                            { "expirationDate", Types.TIMESTAMP },
089                            { "mimeType", Types.VARCHAR },
090                            { "title", Types.VARCHAR },
091                            { "description", Types.VARCHAR },
092                            { "summary", Types.VARCHAR },
093                            { "url", Types.VARCHAR },
094                            { "layoutUuid", Types.VARCHAR },
095                            { "height", Types.INTEGER },
096                            { "width", Types.INTEGER },
097                            { "priority", Types.DOUBLE },
098                            { "viewCount", Types.INTEGER }
099                    };
100            public static final String TABLE_SQL_CREATE = "create table AssetEntry (entryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,classUuid VARCHAR(75) null,classTypeId LONG,visible BOOLEAN,startDate DATE null,endDate DATE null,publishDate DATE null,expirationDate DATE null,mimeType VARCHAR(75) null,title STRING null,description STRING null,summary STRING null,url STRING null,layoutUuid VARCHAR(75) null,height INTEGER,width INTEGER,priority DOUBLE,viewCount INTEGER)";
101            public static final String TABLE_SQL_DROP = "drop table AssetEntry";
102            public static final String ORDER_BY_JPQL = " ORDER BY assetEntry.entryId ASC";
103            public static final String ORDER_BY_SQL = " ORDER BY AssetEntry.entryId ASC";
104            public static final String DATA_SOURCE = "liferayDataSource";
105            public static final String SESSION_FACTORY = "liferaySessionFactory";
106            public static final String TX_MANAGER = "liferayTransactionManager";
107            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
108                                    "value.object.entity.cache.enabled.com.liferay.portlet.asset.model.AssetEntry"),
109                            true);
110            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
111                                    "value.object.finder.cache.enabled.com.liferay.portlet.asset.model.AssetEntry"),
112                            true);
113            public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
114                                    "value.object.column.bitmask.enabled.com.liferay.portlet.asset.model.AssetEntry"),
115                            true);
116            public static long CLASSNAMEID_COLUMN_BITMASK = 1L;
117            public static long CLASSPK_COLUMN_BITMASK = 2L;
118            public static long CLASSUUID_COLUMN_BITMASK = 4L;
119            public static long COMPANYID_COLUMN_BITMASK = 8L;
120            public static long EXPIRATIONDATE_COLUMN_BITMASK = 16L;
121            public static long GROUPID_COLUMN_BITMASK = 32L;
122            public static long LAYOUTUUID_COLUMN_BITMASK = 64L;
123            public static long PUBLISHDATE_COLUMN_BITMASK = 128L;
124            public static long VISIBLE_COLUMN_BITMASK = 256L;
125            public static long ENTRYID_COLUMN_BITMASK = 512L;
126    
127            /**
128             * Converts the soap model instance into a normal model instance.
129             *
130             * @param soapModel the soap model instance to convert
131             * @return the normal model instance
132             */
133            public static AssetEntry toModel(AssetEntrySoap soapModel) {
134                    if (soapModel == null) {
135                            return null;
136                    }
137    
138                    AssetEntry model = new AssetEntryImpl();
139    
140                    model.setEntryId(soapModel.getEntryId());
141                    model.setGroupId(soapModel.getGroupId());
142                    model.setCompanyId(soapModel.getCompanyId());
143                    model.setUserId(soapModel.getUserId());
144                    model.setUserName(soapModel.getUserName());
145                    model.setCreateDate(soapModel.getCreateDate());
146                    model.setModifiedDate(soapModel.getModifiedDate());
147                    model.setClassNameId(soapModel.getClassNameId());
148                    model.setClassPK(soapModel.getClassPK());
149                    model.setClassUuid(soapModel.getClassUuid());
150                    model.setClassTypeId(soapModel.getClassTypeId());
151                    model.setVisible(soapModel.getVisible());
152                    model.setStartDate(soapModel.getStartDate());
153                    model.setEndDate(soapModel.getEndDate());
154                    model.setPublishDate(soapModel.getPublishDate());
155                    model.setExpirationDate(soapModel.getExpirationDate());
156                    model.setMimeType(soapModel.getMimeType());
157                    model.setTitle(soapModel.getTitle());
158                    model.setDescription(soapModel.getDescription());
159                    model.setSummary(soapModel.getSummary());
160                    model.setUrl(soapModel.getUrl());
161                    model.setLayoutUuid(soapModel.getLayoutUuid());
162                    model.setHeight(soapModel.getHeight());
163                    model.setWidth(soapModel.getWidth());
164                    model.setPriority(soapModel.getPriority());
165                    model.setViewCount(soapModel.getViewCount());
166    
167                    return model;
168            }
169    
170            /**
171             * Converts the soap model instances into normal model instances.
172             *
173             * @param soapModels the soap model instances to convert
174             * @return the normal model instances
175             */
176            public static List<AssetEntry> toModels(AssetEntrySoap[] soapModels) {
177                    if (soapModels == null) {
178                            return null;
179                    }
180    
181                    List<AssetEntry> models = new ArrayList<AssetEntry>(soapModels.length);
182    
183                    for (AssetEntrySoap soapModel : soapModels) {
184                            models.add(toModel(soapModel));
185                    }
186    
187                    return models;
188            }
189    
190            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME = "AssetEntries_AssetCategories";
191            public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS =
192                    {
193                            { "entryId", Types.BIGINT },
194                            { "categoryId", Types.BIGINT }
195                    };
196            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE =
197                    "create table AssetEntries_AssetCategories (entryId LONG not null,categoryId LONG not null,primary key (entryId, categoryId))";
198            public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES =
199                    GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
200                                    "value.object.finder.cache.enabled.AssetEntries_AssetCategories"),
201                            true);
202            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME = "AssetEntries_AssetTags";
203            public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS = {
204                            { "entryId", Types.BIGINT },
205                            { "tagId", Types.BIGINT }
206                    };
207            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_SQL_CREATE = "create table AssetEntries_AssetTags (entryId LONG not null,tagId LONG not null,primary key (entryId, tagId))";
208            public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
209                                    "value.object.finder.cache.enabled.AssetEntries_AssetTags"),
210                            true);
211            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
212                                    "lock.expiration.time.com.liferay.portlet.asset.model.AssetEntry"));
213    
214            public AssetEntryModelImpl() {
215            }
216    
217            public long getPrimaryKey() {
218                    return _entryId;
219            }
220    
221            public void setPrimaryKey(long primaryKey) {
222                    setEntryId(primaryKey);
223            }
224    
225            public Serializable getPrimaryKeyObj() {
226                    return _entryId;
227            }
228    
229            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
230                    setPrimaryKey(((Long)primaryKeyObj).longValue());
231            }
232    
233            public Class<?> getModelClass() {
234                    return AssetEntry.class;
235            }
236    
237            public String getModelClassName() {
238                    return AssetEntry.class.getName();
239            }
240    
241            @Override
242            public Map<String, Object> getModelAttributes() {
243                    Map<String, Object> attributes = new HashMap<String, Object>();
244    
245                    attributes.put("entryId", getEntryId());
246                    attributes.put("groupId", getGroupId());
247                    attributes.put("companyId", getCompanyId());
248                    attributes.put("userId", getUserId());
249                    attributes.put("userName", getUserName());
250                    attributes.put("createDate", getCreateDate());
251                    attributes.put("modifiedDate", getModifiedDate());
252                    attributes.put("classNameId", getClassNameId());
253                    attributes.put("classPK", getClassPK());
254                    attributes.put("classUuid", getClassUuid());
255                    attributes.put("classTypeId", getClassTypeId());
256                    attributes.put("visible", getVisible());
257                    attributes.put("startDate", getStartDate());
258                    attributes.put("endDate", getEndDate());
259                    attributes.put("publishDate", getPublishDate());
260                    attributes.put("expirationDate", getExpirationDate());
261                    attributes.put("mimeType", getMimeType());
262                    attributes.put("title", getTitle());
263                    attributes.put("description", getDescription());
264                    attributes.put("summary", getSummary());
265                    attributes.put("url", getUrl());
266                    attributes.put("layoutUuid", getLayoutUuid());
267                    attributes.put("height", getHeight());
268                    attributes.put("width", getWidth());
269                    attributes.put("priority", getPriority());
270                    attributes.put("viewCount", getViewCount());
271    
272                    return attributes;
273            }
274    
275            @Override
276            public void setModelAttributes(Map<String, Object> attributes) {
277                    Long entryId = (Long)attributes.get("entryId");
278    
279                    if (entryId != null) {
280                            setEntryId(entryId);
281                    }
282    
283                    Long groupId = (Long)attributes.get("groupId");
284    
285                    if (groupId != null) {
286                            setGroupId(groupId);
287                    }
288    
289                    Long companyId = (Long)attributes.get("companyId");
290    
291                    if (companyId != null) {
292                            setCompanyId(companyId);
293                    }
294    
295                    Long userId = (Long)attributes.get("userId");
296    
297                    if (userId != null) {
298                            setUserId(userId);
299                    }
300    
301                    String userName = (String)attributes.get("userName");
302    
303                    if (userName != null) {
304                            setUserName(userName);
305                    }
306    
307                    Date createDate = (Date)attributes.get("createDate");
308    
309                    if (createDate != null) {
310                            setCreateDate(createDate);
311                    }
312    
313                    Date modifiedDate = (Date)attributes.get("modifiedDate");
314    
315                    if (modifiedDate != null) {
316                            setModifiedDate(modifiedDate);
317                    }
318    
319                    Long classNameId = (Long)attributes.get("classNameId");
320    
321                    if (classNameId != null) {
322                            setClassNameId(classNameId);
323                    }
324    
325                    Long classPK = (Long)attributes.get("classPK");
326    
327                    if (classPK != null) {
328                            setClassPK(classPK);
329                    }
330    
331                    String classUuid = (String)attributes.get("classUuid");
332    
333                    if (classUuid != null) {
334                            setClassUuid(classUuid);
335                    }
336    
337                    Long classTypeId = (Long)attributes.get("classTypeId");
338    
339                    if (classTypeId != null) {
340                            setClassTypeId(classTypeId);
341                    }
342    
343                    Boolean visible = (Boolean)attributes.get("visible");
344    
345                    if (visible != null) {
346                            setVisible(visible);
347                    }
348    
349                    Date startDate = (Date)attributes.get("startDate");
350    
351                    if (startDate != null) {
352                            setStartDate(startDate);
353                    }
354    
355                    Date endDate = (Date)attributes.get("endDate");
356    
357                    if (endDate != null) {
358                            setEndDate(endDate);
359                    }
360    
361                    Date publishDate = (Date)attributes.get("publishDate");
362    
363                    if (publishDate != null) {
364                            setPublishDate(publishDate);
365                    }
366    
367                    Date expirationDate = (Date)attributes.get("expirationDate");
368    
369                    if (expirationDate != null) {
370                            setExpirationDate(expirationDate);
371                    }
372    
373                    String mimeType = (String)attributes.get("mimeType");
374    
375                    if (mimeType != null) {
376                            setMimeType(mimeType);
377                    }
378    
379                    String title = (String)attributes.get("title");
380    
381                    if (title != null) {
382                            setTitle(title);
383                    }
384    
385                    String description = (String)attributes.get("description");
386    
387                    if (description != null) {
388                            setDescription(description);
389                    }
390    
391                    String summary = (String)attributes.get("summary");
392    
393                    if (summary != null) {
394                            setSummary(summary);
395                    }
396    
397                    String url = (String)attributes.get("url");
398    
399                    if (url != null) {
400                            setUrl(url);
401                    }
402    
403                    String layoutUuid = (String)attributes.get("layoutUuid");
404    
405                    if (layoutUuid != null) {
406                            setLayoutUuid(layoutUuid);
407                    }
408    
409                    Integer height = (Integer)attributes.get("height");
410    
411                    if (height != null) {
412                            setHeight(height);
413                    }
414    
415                    Integer width = (Integer)attributes.get("width");
416    
417                    if (width != null) {
418                            setWidth(width);
419                    }
420    
421                    Double priority = (Double)attributes.get("priority");
422    
423                    if (priority != null) {
424                            setPriority(priority);
425                    }
426    
427                    Integer viewCount = (Integer)attributes.get("viewCount");
428    
429                    if (viewCount != null) {
430                            setViewCount(viewCount);
431                    }
432            }
433    
434            @JSON
435            public long getEntryId() {
436                    return _entryId;
437            }
438    
439            public void setEntryId(long entryId) {
440                    _entryId = entryId;
441            }
442    
443            @JSON
444            public long getGroupId() {
445                    return _groupId;
446            }
447    
448            public void setGroupId(long groupId) {
449                    _columnBitmask |= GROUPID_COLUMN_BITMASK;
450    
451                    if (!_setOriginalGroupId) {
452                            _setOriginalGroupId = true;
453    
454                            _originalGroupId = _groupId;
455                    }
456    
457                    _groupId = groupId;
458            }
459    
460            public long getOriginalGroupId() {
461                    return _originalGroupId;
462            }
463    
464            @JSON
465            public long getCompanyId() {
466                    return _companyId;
467            }
468    
469            public void setCompanyId(long companyId) {
470                    _columnBitmask |= COMPANYID_COLUMN_BITMASK;
471    
472                    if (!_setOriginalCompanyId) {
473                            _setOriginalCompanyId = true;
474    
475                            _originalCompanyId = _companyId;
476                    }
477    
478                    _companyId = companyId;
479            }
480    
481            public long getOriginalCompanyId() {
482                    return _originalCompanyId;
483            }
484    
485            @JSON
486            public long getUserId() {
487                    return _userId;
488            }
489    
490            public void setUserId(long userId) {
491                    _userId = userId;
492            }
493    
494            public String getUserUuid() throws SystemException {
495                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
496            }
497    
498            public void setUserUuid(String userUuid) {
499                    _userUuid = userUuid;
500            }
501    
502            @JSON
503            public String getUserName() {
504                    if (_userName == null) {
505                            return StringPool.BLANK;
506                    }
507                    else {
508                            return _userName;
509                    }
510            }
511    
512            public void setUserName(String userName) {
513                    _userName = userName;
514            }
515    
516            @JSON
517            public Date getCreateDate() {
518                    return _createDate;
519            }
520    
521            public void setCreateDate(Date createDate) {
522                    _createDate = createDate;
523            }
524    
525            @JSON
526            public Date getModifiedDate() {
527                    return _modifiedDate;
528            }
529    
530            public void setModifiedDate(Date modifiedDate) {
531                    _modifiedDate = modifiedDate;
532            }
533    
534            public String getClassName() {
535                    if (getClassNameId() <= 0) {
536                            return StringPool.BLANK;
537                    }
538    
539                    return PortalUtil.getClassName(getClassNameId());
540            }
541    
542            public void setClassName(String className) {
543                    long classNameId = 0;
544    
545                    if (Validator.isNotNull(className)) {
546                            classNameId = PortalUtil.getClassNameId(className);
547                    }
548    
549                    setClassNameId(classNameId);
550            }
551    
552            @JSON
553            public long getClassNameId() {
554                    return _classNameId;
555            }
556    
557            public void setClassNameId(long classNameId) {
558                    _columnBitmask |= CLASSNAMEID_COLUMN_BITMASK;
559    
560                    if (!_setOriginalClassNameId) {
561                            _setOriginalClassNameId = true;
562    
563                            _originalClassNameId = _classNameId;
564                    }
565    
566                    _classNameId = classNameId;
567            }
568    
569            public long getOriginalClassNameId() {
570                    return _originalClassNameId;
571            }
572    
573            @JSON
574            public long getClassPK() {
575                    return _classPK;
576            }
577    
578            public void setClassPK(long classPK) {
579                    _columnBitmask |= CLASSPK_COLUMN_BITMASK;
580    
581                    if (!_setOriginalClassPK) {
582                            _setOriginalClassPK = true;
583    
584                            _originalClassPK = _classPK;
585                    }
586    
587                    _classPK = classPK;
588            }
589    
590            public long getOriginalClassPK() {
591                    return _originalClassPK;
592            }
593    
594            @JSON
595            public String getClassUuid() {
596                    if (_classUuid == null) {
597                            return StringPool.BLANK;
598                    }
599                    else {
600                            return _classUuid;
601                    }
602            }
603    
604            public void setClassUuid(String classUuid) {
605                    _columnBitmask |= CLASSUUID_COLUMN_BITMASK;
606    
607                    if (_originalClassUuid == null) {
608                            _originalClassUuid = _classUuid;
609                    }
610    
611                    _classUuid = classUuid;
612            }
613    
614            public String getOriginalClassUuid() {
615                    return GetterUtil.getString(_originalClassUuid);
616            }
617    
618            @JSON
619            public long getClassTypeId() {
620                    return _classTypeId;
621            }
622    
623            public void setClassTypeId(long classTypeId) {
624                    _classTypeId = classTypeId;
625            }
626    
627            @JSON
628            public boolean getVisible() {
629                    return _visible;
630            }
631    
632            public boolean isVisible() {
633                    return _visible;
634            }
635    
636            public void setVisible(boolean visible) {
637                    _columnBitmask |= VISIBLE_COLUMN_BITMASK;
638    
639                    if (!_setOriginalVisible) {
640                            _setOriginalVisible = true;
641    
642                            _originalVisible = _visible;
643                    }
644    
645                    _visible = visible;
646            }
647    
648            public boolean getOriginalVisible() {
649                    return _originalVisible;
650            }
651    
652            @JSON
653            public Date getStartDate() {
654                    return _startDate;
655            }
656    
657            public void setStartDate(Date startDate) {
658                    _startDate = startDate;
659            }
660    
661            @JSON
662            public Date getEndDate() {
663                    return _endDate;
664            }
665    
666            public void setEndDate(Date endDate) {
667                    _endDate = endDate;
668            }
669    
670            @JSON
671            public Date getPublishDate() {
672                    return _publishDate;
673            }
674    
675            public void setPublishDate(Date publishDate) {
676                    _columnBitmask |= PUBLISHDATE_COLUMN_BITMASK;
677    
678                    if (_originalPublishDate == null) {
679                            _originalPublishDate = _publishDate;
680                    }
681    
682                    _publishDate = publishDate;
683            }
684    
685            public Date getOriginalPublishDate() {
686                    return _originalPublishDate;
687            }
688    
689            @JSON
690            public Date getExpirationDate() {
691                    return _expirationDate;
692            }
693    
694            public void setExpirationDate(Date expirationDate) {
695                    _columnBitmask |= EXPIRATIONDATE_COLUMN_BITMASK;
696    
697                    if (_originalExpirationDate == null) {
698                            _originalExpirationDate = _expirationDate;
699                    }
700    
701                    _expirationDate = expirationDate;
702            }
703    
704            public Date getOriginalExpirationDate() {
705                    return _originalExpirationDate;
706            }
707    
708            @JSON
709            public String getMimeType() {
710                    if (_mimeType == null) {
711                            return StringPool.BLANK;
712                    }
713                    else {
714                            return _mimeType;
715                    }
716            }
717    
718            public void setMimeType(String mimeType) {
719                    _mimeType = mimeType;
720            }
721    
722            @JSON
723            public String getTitle() {
724                    if (_title == null) {
725                            return StringPool.BLANK;
726                    }
727                    else {
728                            return _title;
729                    }
730            }
731    
732            public String getTitle(Locale locale) {
733                    String languageId = LocaleUtil.toLanguageId(locale);
734    
735                    return getTitle(languageId);
736            }
737    
738            public String getTitle(Locale locale, boolean useDefault) {
739                    String languageId = LocaleUtil.toLanguageId(locale);
740    
741                    return getTitle(languageId, useDefault);
742            }
743    
744            public String getTitle(String languageId) {
745                    return LocalizationUtil.getLocalization(getTitle(), languageId);
746            }
747    
748            public String getTitle(String languageId, boolean useDefault) {
749                    return LocalizationUtil.getLocalization(getTitle(), languageId,
750                            useDefault);
751            }
752    
753            public String getTitleCurrentLanguageId() {
754                    return _titleCurrentLanguageId;
755            }
756    
757            @JSON
758            public String getTitleCurrentValue() {
759                    Locale locale = getLocale(_titleCurrentLanguageId);
760    
761                    return getTitle(locale);
762            }
763    
764            public Map<Locale, String> getTitleMap() {
765                    return LocalizationUtil.getLocalizationMap(getTitle());
766            }
767    
768            public void setTitle(String title) {
769                    _title = title;
770            }
771    
772            public void setTitle(String title, Locale locale) {
773                    setTitle(title, locale, LocaleUtil.getDefault());
774            }
775    
776            public void setTitle(String title, Locale locale, Locale defaultLocale) {
777                    String languageId = LocaleUtil.toLanguageId(locale);
778                    String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
779    
780                    if (Validator.isNotNull(title)) {
781                            setTitle(LocalizationUtil.updateLocalization(getTitle(), "Title",
782                                            title, languageId, defaultLanguageId));
783                    }
784                    else {
785                            setTitle(LocalizationUtil.removeLocalization(getTitle(), "Title",
786                                            languageId));
787                    }
788            }
789    
790            public void setTitleCurrentLanguageId(String languageId) {
791                    _titleCurrentLanguageId = languageId;
792            }
793    
794            public void setTitleMap(Map<Locale, String> titleMap) {
795                    setTitleMap(titleMap, LocaleUtil.getDefault());
796            }
797    
798            public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale) {
799                    if (titleMap == null) {
800                            return;
801                    }
802    
803                    setTitle(LocalizationUtil.updateLocalization(titleMap, getTitle(),
804                                    "Title", LocaleUtil.toLanguageId(defaultLocale)));
805            }
806    
807            @JSON
808            public String getDescription() {
809                    if (_description == null) {
810                            return StringPool.BLANK;
811                    }
812                    else {
813                            return _description;
814                    }
815            }
816    
817            public String getDescription(Locale locale) {
818                    String languageId = LocaleUtil.toLanguageId(locale);
819    
820                    return getDescription(languageId);
821            }
822    
823            public String getDescription(Locale locale, boolean useDefault) {
824                    String languageId = LocaleUtil.toLanguageId(locale);
825    
826                    return getDescription(languageId, useDefault);
827            }
828    
829            public String getDescription(String languageId) {
830                    return LocalizationUtil.getLocalization(getDescription(), languageId);
831            }
832    
833            public String getDescription(String languageId, boolean useDefault) {
834                    return LocalizationUtil.getLocalization(getDescription(), languageId,
835                            useDefault);
836            }
837    
838            public String getDescriptionCurrentLanguageId() {
839                    return _descriptionCurrentLanguageId;
840            }
841    
842            @JSON
843            public String getDescriptionCurrentValue() {
844                    Locale locale = getLocale(_descriptionCurrentLanguageId);
845    
846                    return getDescription(locale);
847            }
848    
849            public Map<Locale, String> getDescriptionMap() {
850                    return LocalizationUtil.getLocalizationMap(getDescription());
851            }
852    
853            public void setDescription(String description) {
854                    _description = description;
855            }
856    
857            public void setDescription(String description, Locale locale) {
858                    setDescription(description, locale, LocaleUtil.getDefault());
859            }
860    
861            public void setDescription(String description, Locale locale,
862                    Locale defaultLocale) {
863                    String languageId = LocaleUtil.toLanguageId(locale);
864                    String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
865    
866                    if (Validator.isNotNull(description)) {
867                            setDescription(LocalizationUtil.updateLocalization(
868                                            getDescription(), "Description", description, languageId,
869                                            defaultLanguageId));
870                    }
871                    else {
872                            setDescription(LocalizationUtil.removeLocalization(
873                                            getDescription(), "Description", languageId));
874                    }
875            }
876    
877            public void setDescriptionCurrentLanguageId(String languageId) {
878                    _descriptionCurrentLanguageId = languageId;
879            }
880    
881            public void setDescriptionMap(Map<Locale, String> descriptionMap) {
882                    setDescriptionMap(descriptionMap, LocaleUtil.getDefault());
883            }
884    
885            public void setDescriptionMap(Map<Locale, String> descriptionMap,
886                    Locale defaultLocale) {
887                    if (descriptionMap == null) {
888                            return;
889                    }
890    
891                    setDescription(LocalizationUtil.updateLocalization(descriptionMap,
892                                    getDescription(), "Description",
893                                    LocaleUtil.toLanguageId(defaultLocale)));
894            }
895    
896            @JSON
897            public String getSummary() {
898                    if (_summary == null) {
899                            return StringPool.BLANK;
900                    }
901                    else {
902                            return _summary;
903                    }
904            }
905    
906            public String getSummary(Locale locale) {
907                    String languageId = LocaleUtil.toLanguageId(locale);
908    
909                    return getSummary(languageId);
910            }
911    
912            public String getSummary(Locale locale, boolean useDefault) {
913                    String languageId = LocaleUtil.toLanguageId(locale);
914    
915                    return getSummary(languageId, useDefault);
916            }
917    
918            public String getSummary(String languageId) {
919                    return LocalizationUtil.getLocalization(getSummary(), languageId);
920            }
921    
922            public String getSummary(String languageId, boolean useDefault) {
923                    return LocalizationUtil.getLocalization(getSummary(), languageId,
924                            useDefault);
925            }
926    
927            public String getSummaryCurrentLanguageId() {
928                    return _summaryCurrentLanguageId;
929            }
930    
931            @JSON
932            public String getSummaryCurrentValue() {
933                    Locale locale = getLocale(_summaryCurrentLanguageId);
934    
935                    return getSummary(locale);
936            }
937    
938            public Map<Locale, String> getSummaryMap() {
939                    return LocalizationUtil.getLocalizationMap(getSummary());
940            }
941    
942            public void setSummary(String summary) {
943                    _summary = summary;
944            }
945    
946            public void setSummary(String summary, Locale locale) {
947                    setSummary(summary, locale, LocaleUtil.getDefault());
948            }
949    
950            public void setSummary(String summary, Locale locale, Locale defaultLocale) {
951                    String languageId = LocaleUtil.toLanguageId(locale);
952                    String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
953    
954                    if (Validator.isNotNull(summary)) {
955                            setSummary(LocalizationUtil.updateLocalization(getSummary(),
956                                            "Summary", summary, languageId, defaultLanguageId));
957                    }
958                    else {
959                            setSummary(LocalizationUtil.removeLocalization(getSummary(),
960                                            "Summary", languageId));
961                    }
962            }
963    
964            public void setSummaryCurrentLanguageId(String languageId) {
965                    _summaryCurrentLanguageId = languageId;
966            }
967    
968            public void setSummaryMap(Map<Locale, String> summaryMap) {
969                    setSummaryMap(summaryMap, LocaleUtil.getDefault());
970            }
971    
972            public void setSummaryMap(Map<Locale, String> summaryMap,
973                    Locale defaultLocale) {
974                    if (summaryMap == null) {
975                            return;
976                    }
977    
978                    setSummary(LocalizationUtil.updateLocalization(summaryMap,
979                                    getSummary(), "Summary", LocaleUtil.toLanguageId(defaultLocale)));
980            }
981    
982            @JSON
983            public String getUrl() {
984                    if (_url == null) {
985                            return StringPool.BLANK;
986                    }
987                    else {
988                            return _url;
989                    }
990            }
991    
992            public void setUrl(String url) {
993                    _url = url;
994            }
995    
996            @JSON
997            public String getLayoutUuid() {
998                    if (_layoutUuid == null) {
999                            return StringPool.BLANK;
1000                    }
1001                    else {
1002                            return _layoutUuid;
1003                    }
1004            }
1005    
1006            public void setLayoutUuid(String layoutUuid) {
1007                    _columnBitmask |= LAYOUTUUID_COLUMN_BITMASK;
1008    
1009                    if (_originalLayoutUuid == null) {
1010                            _originalLayoutUuid = _layoutUuid;
1011                    }
1012    
1013                    _layoutUuid = layoutUuid;
1014            }
1015    
1016            public String getOriginalLayoutUuid() {
1017                    return GetterUtil.getString(_originalLayoutUuid);
1018            }
1019    
1020            @JSON
1021            public int getHeight() {
1022                    return _height;
1023            }
1024    
1025            public void setHeight(int height) {
1026                    _height = height;
1027            }
1028    
1029            @JSON
1030            public int getWidth() {
1031                    return _width;
1032            }
1033    
1034            public void setWidth(int width) {
1035                    _width = width;
1036            }
1037    
1038            @JSON
1039            public double getPriority() {
1040                    return _priority;
1041            }
1042    
1043            public void setPriority(double priority) {
1044                    _priority = priority;
1045            }
1046    
1047            @JSON
1048            public int getViewCount() {
1049                    return _viewCount;
1050            }
1051    
1052            public void setViewCount(int viewCount) {
1053                    _viewCount = viewCount;
1054            }
1055    
1056            public long getColumnBitmask() {
1057                    return _columnBitmask;
1058            }
1059    
1060            @Override
1061            public ExpandoBridge getExpandoBridge() {
1062                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1063                            AssetEntry.class.getName(), getPrimaryKey());
1064            }
1065    
1066            @Override
1067            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1068                    ExpandoBridge expandoBridge = getExpandoBridge();
1069    
1070                    expandoBridge.setAttributes(serviceContext);
1071            }
1072    
1073            @SuppressWarnings("unused")
1074            public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
1075                    throws LocaleException {
1076                    setTitle(getTitle(defaultImportLocale), defaultImportLocale,
1077                            defaultImportLocale);
1078                    setDescription(getDescription(defaultImportLocale),
1079                            defaultImportLocale, defaultImportLocale);
1080                    setSummary(getSummary(defaultImportLocale), defaultImportLocale,
1081                            defaultImportLocale);
1082            }
1083    
1084            @Override
1085            public AssetEntry toEscapedModel() {
1086                    if (_escapedModel == null) {
1087                            _escapedModel = (AssetEntry)ProxyUtil.newProxyInstance(_classLoader,
1088                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1089                    }
1090    
1091                    return _escapedModel;
1092            }
1093    
1094            @Override
1095            public Object clone() {
1096                    AssetEntryImpl assetEntryImpl = new AssetEntryImpl();
1097    
1098                    assetEntryImpl.setEntryId(getEntryId());
1099                    assetEntryImpl.setGroupId(getGroupId());
1100                    assetEntryImpl.setCompanyId(getCompanyId());
1101                    assetEntryImpl.setUserId(getUserId());
1102                    assetEntryImpl.setUserName(getUserName());
1103                    assetEntryImpl.setCreateDate(getCreateDate());
1104                    assetEntryImpl.setModifiedDate(getModifiedDate());
1105                    assetEntryImpl.setClassNameId(getClassNameId());
1106                    assetEntryImpl.setClassPK(getClassPK());
1107                    assetEntryImpl.setClassUuid(getClassUuid());
1108                    assetEntryImpl.setClassTypeId(getClassTypeId());
1109                    assetEntryImpl.setVisible(getVisible());
1110                    assetEntryImpl.setStartDate(getStartDate());
1111                    assetEntryImpl.setEndDate(getEndDate());
1112                    assetEntryImpl.setPublishDate(getPublishDate());
1113                    assetEntryImpl.setExpirationDate(getExpirationDate());
1114                    assetEntryImpl.setMimeType(getMimeType());
1115                    assetEntryImpl.setTitle(getTitle());
1116                    assetEntryImpl.setDescription(getDescription());
1117                    assetEntryImpl.setSummary(getSummary());
1118                    assetEntryImpl.setUrl(getUrl());
1119                    assetEntryImpl.setLayoutUuid(getLayoutUuid());
1120                    assetEntryImpl.setHeight(getHeight());
1121                    assetEntryImpl.setWidth(getWidth());
1122                    assetEntryImpl.setPriority(getPriority());
1123                    assetEntryImpl.setViewCount(getViewCount());
1124    
1125                    assetEntryImpl.resetOriginalValues();
1126    
1127                    return assetEntryImpl;
1128            }
1129    
1130            public int compareTo(AssetEntry assetEntry) {
1131                    long primaryKey = assetEntry.getPrimaryKey();
1132    
1133                    if (getPrimaryKey() < primaryKey) {
1134                            return -1;
1135                    }
1136                    else if (getPrimaryKey() > primaryKey) {
1137                            return 1;
1138                    }
1139                    else {
1140                            return 0;
1141                    }
1142            }
1143    
1144            @Override
1145            public boolean equals(Object obj) {
1146                    if (obj == null) {
1147                            return false;
1148                    }
1149    
1150                    AssetEntry assetEntry = null;
1151    
1152                    try {
1153                            assetEntry = (AssetEntry)obj;
1154                    }
1155                    catch (ClassCastException cce) {
1156                            return false;
1157                    }
1158    
1159                    long primaryKey = assetEntry.getPrimaryKey();
1160    
1161                    if (getPrimaryKey() == primaryKey) {
1162                            return true;
1163                    }
1164                    else {
1165                            return false;
1166                    }
1167            }
1168    
1169            @Override
1170            public int hashCode() {
1171                    return (int)getPrimaryKey();
1172            }
1173    
1174            @Override
1175            public void resetOriginalValues() {
1176                    AssetEntryModelImpl assetEntryModelImpl = this;
1177    
1178                    assetEntryModelImpl._originalGroupId = assetEntryModelImpl._groupId;
1179    
1180                    assetEntryModelImpl._setOriginalGroupId = false;
1181    
1182                    assetEntryModelImpl._originalCompanyId = assetEntryModelImpl._companyId;
1183    
1184                    assetEntryModelImpl._setOriginalCompanyId = false;
1185    
1186                    assetEntryModelImpl._originalClassNameId = assetEntryModelImpl._classNameId;
1187    
1188                    assetEntryModelImpl._setOriginalClassNameId = false;
1189    
1190                    assetEntryModelImpl._originalClassPK = assetEntryModelImpl._classPK;
1191    
1192                    assetEntryModelImpl._setOriginalClassPK = false;
1193    
1194                    assetEntryModelImpl._originalClassUuid = assetEntryModelImpl._classUuid;
1195    
1196                    assetEntryModelImpl._originalVisible = assetEntryModelImpl._visible;
1197    
1198                    assetEntryModelImpl._setOriginalVisible = false;
1199    
1200                    assetEntryModelImpl._originalPublishDate = assetEntryModelImpl._publishDate;
1201    
1202                    assetEntryModelImpl._originalExpirationDate = assetEntryModelImpl._expirationDate;
1203    
1204                    assetEntryModelImpl._originalLayoutUuid = assetEntryModelImpl._layoutUuid;
1205    
1206                    assetEntryModelImpl._columnBitmask = 0;
1207            }
1208    
1209            @Override
1210            public CacheModel<AssetEntry> toCacheModel() {
1211                    AssetEntryCacheModel assetEntryCacheModel = new AssetEntryCacheModel();
1212    
1213                    assetEntryCacheModel.entryId = getEntryId();
1214    
1215                    assetEntryCacheModel.groupId = getGroupId();
1216    
1217                    assetEntryCacheModel.companyId = getCompanyId();
1218    
1219                    assetEntryCacheModel.userId = getUserId();
1220    
1221                    assetEntryCacheModel.userName = getUserName();
1222    
1223                    String userName = assetEntryCacheModel.userName;
1224    
1225                    if ((userName != null) && (userName.length() == 0)) {
1226                            assetEntryCacheModel.userName = null;
1227                    }
1228    
1229                    Date createDate = getCreateDate();
1230    
1231                    if (createDate != null) {
1232                            assetEntryCacheModel.createDate = createDate.getTime();
1233                    }
1234                    else {
1235                            assetEntryCacheModel.createDate = Long.MIN_VALUE;
1236                    }
1237    
1238                    Date modifiedDate = getModifiedDate();
1239    
1240                    if (modifiedDate != null) {
1241                            assetEntryCacheModel.modifiedDate = modifiedDate.getTime();
1242                    }
1243                    else {
1244                            assetEntryCacheModel.modifiedDate = Long.MIN_VALUE;
1245                    }
1246    
1247                    assetEntryCacheModel.classNameId = getClassNameId();
1248    
1249                    assetEntryCacheModel.classPK = getClassPK();
1250    
1251                    assetEntryCacheModel.classUuid = getClassUuid();
1252    
1253                    String classUuid = assetEntryCacheModel.classUuid;
1254    
1255                    if ((classUuid != null) && (classUuid.length() == 0)) {
1256                            assetEntryCacheModel.classUuid = null;
1257                    }
1258    
1259                    assetEntryCacheModel.classTypeId = getClassTypeId();
1260    
1261                    assetEntryCacheModel.visible = getVisible();
1262    
1263                    Date startDate = getStartDate();
1264    
1265                    if (startDate != null) {
1266                            assetEntryCacheModel.startDate = startDate.getTime();
1267                    }
1268                    else {
1269                            assetEntryCacheModel.startDate = Long.MIN_VALUE;
1270                    }
1271    
1272                    Date endDate = getEndDate();
1273    
1274                    if (endDate != null) {
1275                            assetEntryCacheModel.endDate = endDate.getTime();
1276                    }
1277                    else {
1278                            assetEntryCacheModel.endDate = Long.MIN_VALUE;
1279                    }
1280    
1281                    Date publishDate = getPublishDate();
1282    
1283                    if (publishDate != null) {
1284                            assetEntryCacheModel.publishDate = publishDate.getTime();
1285                    }
1286                    else {
1287                            assetEntryCacheModel.publishDate = Long.MIN_VALUE;
1288                    }
1289    
1290                    Date expirationDate = getExpirationDate();
1291    
1292                    if (expirationDate != null) {
1293                            assetEntryCacheModel.expirationDate = expirationDate.getTime();
1294                    }
1295                    else {
1296                            assetEntryCacheModel.expirationDate = Long.MIN_VALUE;
1297                    }
1298    
1299                    assetEntryCacheModel.mimeType = getMimeType();
1300    
1301                    String mimeType = assetEntryCacheModel.mimeType;
1302    
1303                    if ((mimeType != null) && (mimeType.length() == 0)) {
1304                            assetEntryCacheModel.mimeType = null;
1305                    }
1306    
1307                    assetEntryCacheModel.title = getTitle();
1308    
1309                    String title = assetEntryCacheModel.title;
1310    
1311                    if ((title != null) && (title.length() == 0)) {
1312                            assetEntryCacheModel.title = null;
1313                    }
1314    
1315                    assetEntryCacheModel.description = getDescription();
1316    
1317                    String description = assetEntryCacheModel.description;
1318    
1319                    if ((description != null) && (description.length() == 0)) {
1320                            assetEntryCacheModel.description = null;
1321                    }
1322    
1323                    assetEntryCacheModel.summary = getSummary();
1324    
1325                    String summary = assetEntryCacheModel.summary;
1326    
1327                    if ((summary != null) && (summary.length() == 0)) {
1328                            assetEntryCacheModel.summary = null;
1329                    }
1330    
1331                    assetEntryCacheModel.url = getUrl();
1332    
1333                    String url = assetEntryCacheModel.url;
1334    
1335                    if ((url != null) && (url.length() == 0)) {
1336                            assetEntryCacheModel.url = null;
1337                    }
1338    
1339                    assetEntryCacheModel.layoutUuid = getLayoutUuid();
1340    
1341                    String layoutUuid = assetEntryCacheModel.layoutUuid;
1342    
1343                    if ((layoutUuid != null) && (layoutUuid.length() == 0)) {
1344                            assetEntryCacheModel.layoutUuid = null;
1345                    }
1346    
1347                    assetEntryCacheModel.height = getHeight();
1348    
1349                    assetEntryCacheModel.width = getWidth();
1350    
1351                    assetEntryCacheModel.priority = getPriority();
1352    
1353                    assetEntryCacheModel.viewCount = getViewCount();
1354    
1355                    return assetEntryCacheModel;
1356            }
1357    
1358            @Override
1359            public String toString() {
1360                    StringBundler sb = new StringBundler(53);
1361    
1362                    sb.append("{entryId=");
1363                    sb.append(getEntryId());
1364                    sb.append(", groupId=");
1365                    sb.append(getGroupId());
1366                    sb.append(", companyId=");
1367                    sb.append(getCompanyId());
1368                    sb.append(", userId=");
1369                    sb.append(getUserId());
1370                    sb.append(", userName=");
1371                    sb.append(getUserName());
1372                    sb.append(", createDate=");
1373                    sb.append(getCreateDate());
1374                    sb.append(", modifiedDate=");
1375                    sb.append(getModifiedDate());
1376                    sb.append(", classNameId=");
1377                    sb.append(getClassNameId());
1378                    sb.append(", classPK=");
1379                    sb.append(getClassPK());
1380                    sb.append(", classUuid=");
1381                    sb.append(getClassUuid());
1382                    sb.append(", classTypeId=");
1383                    sb.append(getClassTypeId());
1384                    sb.append(", visible=");
1385                    sb.append(getVisible());
1386                    sb.append(", startDate=");
1387                    sb.append(getStartDate());
1388                    sb.append(", endDate=");
1389                    sb.append(getEndDate());
1390                    sb.append(", publishDate=");
1391                    sb.append(getPublishDate());
1392                    sb.append(", expirationDate=");
1393                    sb.append(getExpirationDate());
1394                    sb.append(", mimeType=");
1395                    sb.append(getMimeType());
1396                    sb.append(", title=");
1397                    sb.append(getTitle());
1398                    sb.append(", description=");
1399                    sb.append(getDescription());
1400                    sb.append(", summary=");
1401                    sb.append(getSummary());
1402                    sb.append(", url=");
1403                    sb.append(getUrl());
1404                    sb.append(", layoutUuid=");
1405                    sb.append(getLayoutUuid());
1406                    sb.append(", height=");
1407                    sb.append(getHeight());
1408                    sb.append(", width=");
1409                    sb.append(getWidth());
1410                    sb.append(", priority=");
1411                    sb.append(getPriority());
1412                    sb.append(", viewCount=");
1413                    sb.append(getViewCount());
1414                    sb.append("}");
1415    
1416                    return sb.toString();
1417            }
1418    
1419            public String toXmlString() {
1420                    StringBundler sb = new StringBundler(82);
1421    
1422                    sb.append("<model><model-name>");
1423                    sb.append("com.liferay.portlet.asset.model.AssetEntry");
1424                    sb.append("</model-name>");
1425    
1426                    sb.append(
1427                            "<column><column-name>entryId</column-name><column-value><![CDATA[");
1428                    sb.append(getEntryId());
1429                    sb.append("]]></column-value></column>");
1430                    sb.append(
1431                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
1432                    sb.append(getGroupId());
1433                    sb.append("]]></column-value></column>");
1434                    sb.append(
1435                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
1436                    sb.append(getCompanyId());
1437                    sb.append("]]></column-value></column>");
1438                    sb.append(
1439                            "<column><column-name>userId</column-name><column-value><![CDATA[");
1440                    sb.append(getUserId());
1441                    sb.append("]]></column-value></column>");
1442                    sb.append(
1443                            "<column><column-name>userName</column-name><column-value><![CDATA[");
1444                    sb.append(getUserName());
1445                    sb.append("]]></column-value></column>");
1446                    sb.append(
1447                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
1448                    sb.append(getCreateDate());
1449                    sb.append("]]></column-value></column>");
1450                    sb.append(
1451                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1452                    sb.append(getModifiedDate());
1453                    sb.append("]]></column-value></column>");
1454                    sb.append(
1455                            "<column><column-name>classNameId</column-name><column-value><![CDATA[");
1456                    sb.append(getClassNameId());
1457                    sb.append("]]></column-value></column>");
1458                    sb.append(
1459                            "<column><column-name>classPK</column-name><column-value><![CDATA[");
1460                    sb.append(getClassPK());
1461                    sb.append("]]></column-value></column>");
1462                    sb.append(
1463                            "<column><column-name>classUuid</column-name><column-value><![CDATA[");
1464                    sb.append(getClassUuid());
1465                    sb.append("]]></column-value></column>");
1466                    sb.append(
1467                            "<column><column-name>classTypeId</column-name><column-value><![CDATA[");
1468                    sb.append(getClassTypeId());
1469                    sb.append("]]></column-value></column>");
1470                    sb.append(
1471                            "<column><column-name>visible</column-name><column-value><![CDATA[");
1472                    sb.append(getVisible());
1473                    sb.append("]]></column-value></column>");
1474                    sb.append(
1475                            "<column><column-name>startDate</column-name><column-value><![CDATA[");
1476                    sb.append(getStartDate());
1477                    sb.append("]]></column-value></column>");
1478                    sb.append(
1479                            "<column><column-name>endDate</column-name><column-value><![CDATA[");
1480                    sb.append(getEndDate());
1481                    sb.append("]]></column-value></column>");
1482                    sb.append(
1483                            "<column><column-name>publishDate</column-name><column-value><![CDATA[");
1484                    sb.append(getPublishDate());
1485                    sb.append("]]></column-value></column>");
1486                    sb.append(
1487                            "<column><column-name>expirationDate</column-name><column-value><![CDATA[");
1488                    sb.append(getExpirationDate());
1489                    sb.append("]]></column-value></column>");
1490                    sb.append(
1491                            "<column><column-name>mimeType</column-name><column-value><![CDATA[");
1492                    sb.append(getMimeType());
1493                    sb.append("]]></column-value></column>");
1494                    sb.append(
1495                            "<column><column-name>title</column-name><column-value><![CDATA[");
1496                    sb.append(getTitle());
1497                    sb.append("]]></column-value></column>");
1498                    sb.append(
1499                            "<column><column-name>description</column-name><column-value><![CDATA[");
1500                    sb.append(getDescription());
1501                    sb.append("]]></column-value></column>");
1502                    sb.append(
1503                            "<column><column-name>summary</column-name><column-value><![CDATA[");
1504                    sb.append(getSummary());
1505                    sb.append("]]></column-value></column>");
1506                    sb.append(
1507                            "<column><column-name>url</column-name><column-value><![CDATA[");
1508                    sb.append(getUrl());
1509                    sb.append("]]></column-value></column>");
1510                    sb.append(
1511                            "<column><column-name>layoutUuid</column-name><column-value><![CDATA[");
1512                    sb.append(getLayoutUuid());
1513                    sb.append("]]></column-value></column>");
1514                    sb.append(
1515                            "<column><column-name>height</column-name><column-value><![CDATA[");
1516                    sb.append(getHeight());
1517                    sb.append("]]></column-value></column>");
1518                    sb.append(
1519                            "<column><column-name>width</column-name><column-value><![CDATA[");
1520                    sb.append(getWidth());
1521                    sb.append("]]></column-value></column>");
1522                    sb.append(
1523                            "<column><column-name>priority</column-name><column-value><![CDATA[");
1524                    sb.append(getPriority());
1525                    sb.append("]]></column-value></column>");
1526                    sb.append(
1527                            "<column><column-name>viewCount</column-name><column-value><![CDATA[");
1528                    sb.append(getViewCount());
1529                    sb.append("]]></column-value></column>");
1530    
1531                    sb.append("</model>");
1532    
1533                    return sb.toString();
1534            }
1535    
1536            private static ClassLoader _classLoader = AssetEntry.class.getClassLoader();
1537            private static Class<?>[] _escapedModelInterfaces = new Class[] {
1538                            AssetEntry.class
1539                    };
1540            private long _entryId;
1541            private long _groupId;
1542            private long _originalGroupId;
1543            private boolean _setOriginalGroupId;
1544            private long _companyId;
1545            private long _originalCompanyId;
1546            private boolean _setOriginalCompanyId;
1547            private long _userId;
1548            private String _userUuid;
1549            private String _userName;
1550            private Date _createDate;
1551            private Date _modifiedDate;
1552            private long _classNameId;
1553            private long _originalClassNameId;
1554            private boolean _setOriginalClassNameId;
1555            private long _classPK;
1556            private long _originalClassPK;
1557            private boolean _setOriginalClassPK;
1558            private String _classUuid;
1559            private String _originalClassUuid;
1560            private long _classTypeId;
1561            private boolean _visible;
1562            private boolean _originalVisible;
1563            private boolean _setOriginalVisible;
1564            private Date _startDate;
1565            private Date _endDate;
1566            private Date _publishDate;
1567            private Date _originalPublishDate;
1568            private Date _expirationDate;
1569            private Date _originalExpirationDate;
1570            private String _mimeType;
1571            private String _title;
1572            private String _titleCurrentLanguageId;
1573            private String _description;
1574            private String _descriptionCurrentLanguageId;
1575            private String _summary;
1576            private String _summaryCurrentLanguageId;
1577            private String _url;
1578            private String _layoutUuid;
1579            private String _originalLayoutUuid;
1580            private int _height;
1581            private int _width;
1582            private double _priority;
1583            private int _viewCount;
1584            private long _columnBitmask;
1585            private AssetEntry _escapedModel;
1586    }