001    /**
002     * Copyright (c) 2000-2011 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.kernel.bean.AutoEscapeBeanHandler;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.util.GetterUtil;
020    import com.liferay.portal.kernel.util.StringBundler;
021    import com.liferay.portal.kernel.util.StringPool;
022    import com.liferay.portal.model.impl.BaseModelImpl;
023    import com.liferay.portal.service.ServiceContext;
024    import com.liferay.portal.util.PortalUtil;
025    
026    import com.liferay.portlet.asset.model.AssetEntry;
027    import com.liferay.portlet.asset.model.AssetEntryModel;
028    import com.liferay.portlet.asset.model.AssetEntrySoap;
029    import com.liferay.portlet.expando.model.ExpandoBridge;
030    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
031    
032    import java.io.Serializable;
033    
034    import java.lang.reflect.Proxy;
035    
036    import java.sql.Types;
037    
038    import java.util.ArrayList;
039    import java.util.Date;
040    import java.util.List;
041    
042    /**
043     * 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.
044     *
045     * <p>
046     * 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}.
047     * </p>
048     *
049     * <p>
050     * 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.
051     * </p>
052     *
053     * @author Brian Wing Shun Chan
054     * @see AssetEntryImpl
055     * @see com.liferay.portlet.asset.model.AssetEntry
056     * @see com.liferay.portlet.asset.model.AssetEntryModel
057     * @generated
058     */
059    public class AssetEntryModelImpl extends BaseModelImpl<AssetEntry>
060            implements AssetEntryModel {
061            public static final String TABLE_NAME = "AssetEntry";
062            public static final Object[][] TABLE_COLUMNS = {
063                            { "entryId", new Integer(Types.BIGINT) },
064                            { "groupId", new Integer(Types.BIGINT) },
065                            { "companyId", new Integer(Types.BIGINT) },
066                            { "userId", new Integer(Types.BIGINT) },
067                            { "userName", new Integer(Types.VARCHAR) },
068                            { "createDate", new Integer(Types.TIMESTAMP) },
069                            { "modifiedDate", new Integer(Types.TIMESTAMP) },
070                            { "classNameId", new Integer(Types.BIGINT) },
071                            { "classPK", new Integer(Types.BIGINT) },
072                            { "classUuid", new Integer(Types.VARCHAR) },
073                            { "visible", new Integer(Types.BOOLEAN) },
074                            { "startDate", new Integer(Types.TIMESTAMP) },
075                            { "endDate", new Integer(Types.TIMESTAMP) },
076                            { "publishDate", new Integer(Types.TIMESTAMP) },
077                            { "expirationDate", new Integer(Types.TIMESTAMP) },
078                            { "mimeType", new Integer(Types.VARCHAR) },
079                            { "title", new Integer(Types.VARCHAR) },
080                            { "description", new Integer(Types.VARCHAR) },
081                            { "summary", new Integer(Types.VARCHAR) },
082                            { "url", new Integer(Types.VARCHAR) },
083                            { "height", new Integer(Types.INTEGER) },
084                            { "width", new Integer(Types.INTEGER) },
085                            { "priority", new Integer(Types.DOUBLE) },
086                            { "viewCount", new Integer(Types.INTEGER) }
087                    };
088            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,visible BOOLEAN,startDate DATE null,endDate DATE null,publishDate DATE null,expirationDate DATE null,mimeType VARCHAR(75) null,title VARCHAR(255) null,description STRING null,summary STRING null,url STRING null,height INTEGER,width INTEGER,priority DOUBLE,viewCount INTEGER)";
089            public static final String TABLE_SQL_DROP = "drop table AssetEntry";
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.AssetEntry"),
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.AssetEntry"),
098                            true);
099    
100            /**
101             * Converts the soap model instance into a normal model instance.
102             *
103             * @param soapModel the soap model instance to convert
104             * @return the normal model instance
105             */
106            public static AssetEntry toModel(AssetEntrySoap soapModel) {
107                    AssetEntry model = new AssetEntryImpl();
108    
109                    model.setEntryId(soapModel.getEntryId());
110                    model.setGroupId(soapModel.getGroupId());
111                    model.setCompanyId(soapModel.getCompanyId());
112                    model.setUserId(soapModel.getUserId());
113                    model.setUserName(soapModel.getUserName());
114                    model.setCreateDate(soapModel.getCreateDate());
115                    model.setModifiedDate(soapModel.getModifiedDate());
116                    model.setClassNameId(soapModel.getClassNameId());
117                    model.setClassPK(soapModel.getClassPK());
118                    model.setClassUuid(soapModel.getClassUuid());
119                    model.setVisible(soapModel.getVisible());
120                    model.setStartDate(soapModel.getStartDate());
121                    model.setEndDate(soapModel.getEndDate());
122                    model.setPublishDate(soapModel.getPublishDate());
123                    model.setExpirationDate(soapModel.getExpirationDate());
124                    model.setMimeType(soapModel.getMimeType());
125                    model.setTitle(soapModel.getTitle());
126                    model.setDescription(soapModel.getDescription());
127                    model.setSummary(soapModel.getSummary());
128                    model.setUrl(soapModel.getUrl());
129                    model.setHeight(soapModel.getHeight());
130                    model.setWidth(soapModel.getWidth());
131                    model.setPriority(soapModel.getPriority());
132                    model.setViewCount(soapModel.getViewCount());
133    
134                    return model;
135            }
136    
137            /**
138             * Converts the soap model instances into normal model instances.
139             *
140             * @param soapModels the soap model instances to convert
141             * @return the normal model instances
142             */
143            public static List<AssetEntry> toModels(AssetEntrySoap[] soapModels) {
144                    List<AssetEntry> models = new ArrayList<AssetEntry>(soapModels.length);
145    
146                    for (AssetEntrySoap soapModel : soapModels) {
147                            models.add(toModel(soapModel));
148                    }
149    
150                    return models;
151            }
152    
153            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME = "AssetEntries_AssetCategories";
154            public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS =
155                    {
156                            { "entryId", new Integer(Types.BIGINT) },
157                            { "categoryId", new Integer(Types.BIGINT) }
158                    };
159            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE =
160                    "create table AssetEntries_AssetCategories (entryId LONG not null,categoryId LONG not null,primary key (entryId, categoryId))";
161            public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES =
162                    GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
163                                    "value.object.finder.cache.enabled.AssetEntries_AssetCategories"),
164                            true);
165            public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME = "AssetEntries_AssetTags";
166            public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS = {
167                            { "entryId", new Integer(Types.BIGINT) },
168                            { "tagId", new Integer(Types.BIGINT) }
169                    };
170            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))";
171            public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
172                                    "value.object.finder.cache.enabled.AssetEntries_AssetTags"),
173                            true);
174            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
175                                    "lock.expiration.time.com.liferay.portlet.asset.model.AssetEntry"));
176    
177            public AssetEntryModelImpl() {
178            }
179    
180            public long getPrimaryKey() {
181                    return _entryId;
182            }
183    
184            public void setPrimaryKey(long pk) {
185                    setEntryId(pk);
186            }
187    
188            public Serializable getPrimaryKeyObj() {
189                    return new Long(_entryId);
190            }
191    
192            public long getEntryId() {
193                    return _entryId;
194            }
195    
196            public void setEntryId(long entryId) {
197                    _entryId = entryId;
198            }
199    
200            public long getGroupId() {
201                    return _groupId;
202            }
203    
204            public void setGroupId(long groupId) {
205                    if (!_setOriginalGroupId) {
206                            _setOriginalGroupId = true;
207    
208                            _originalGroupId = _groupId;
209                    }
210    
211                    _groupId = groupId;
212            }
213    
214            public long getOriginalGroupId() {
215                    return _originalGroupId;
216            }
217    
218            public long getCompanyId() {
219                    return _companyId;
220            }
221    
222            public void setCompanyId(long companyId) {
223                    _companyId = companyId;
224            }
225    
226            public long getUserId() {
227                    return _userId;
228            }
229    
230            public void setUserId(long userId) {
231                    _userId = userId;
232            }
233    
234            public String getUserUuid() throws SystemException {
235                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
236            }
237    
238            public void setUserUuid(String userUuid) {
239                    _userUuid = userUuid;
240            }
241    
242            public String getUserName() {
243                    if (_userName == null) {
244                            return StringPool.BLANK;
245                    }
246                    else {
247                            return _userName;
248                    }
249            }
250    
251            public void setUserName(String userName) {
252                    _userName = userName;
253            }
254    
255            public Date getCreateDate() {
256                    return _createDate;
257            }
258    
259            public void setCreateDate(Date createDate) {
260                    _createDate = createDate;
261            }
262    
263            public Date getModifiedDate() {
264                    return _modifiedDate;
265            }
266    
267            public void setModifiedDate(Date modifiedDate) {
268                    _modifiedDate = modifiedDate;
269            }
270    
271            public String getClassName() {
272                    if (getClassNameId() <= 0) {
273                            return StringPool.BLANK;
274                    }
275    
276                    return PortalUtil.getClassName(getClassNameId());
277            }
278    
279            public long getClassNameId() {
280                    return _classNameId;
281            }
282    
283            public void setClassNameId(long classNameId) {
284                    if (!_setOriginalClassNameId) {
285                            _setOriginalClassNameId = true;
286    
287                            _originalClassNameId = _classNameId;
288                    }
289    
290                    _classNameId = classNameId;
291            }
292    
293            public long getOriginalClassNameId() {
294                    return _originalClassNameId;
295            }
296    
297            public long getClassPK() {
298                    return _classPK;
299            }
300    
301            public void setClassPK(long classPK) {
302                    if (!_setOriginalClassPK) {
303                            _setOriginalClassPK = true;
304    
305                            _originalClassPK = _classPK;
306                    }
307    
308                    _classPK = classPK;
309            }
310    
311            public long getOriginalClassPK() {
312                    return _originalClassPK;
313            }
314    
315            public String getClassUuid() {
316                    if (_classUuid == null) {
317                            return StringPool.BLANK;
318                    }
319                    else {
320                            return _classUuid;
321                    }
322            }
323    
324            public void setClassUuid(String classUuid) {
325                    if (_originalClassUuid == null) {
326                            _originalClassUuid = _classUuid;
327                    }
328    
329                    _classUuid = classUuid;
330            }
331    
332            public String getOriginalClassUuid() {
333                    return GetterUtil.getString(_originalClassUuid);
334            }
335    
336            public boolean getVisible() {
337                    return _visible;
338            }
339    
340            public boolean isVisible() {
341                    return _visible;
342            }
343    
344            public void setVisible(boolean visible) {
345                    _visible = visible;
346            }
347    
348            public Date getStartDate() {
349                    return _startDate;
350            }
351    
352            public void setStartDate(Date startDate) {
353                    _startDate = startDate;
354            }
355    
356            public Date getEndDate() {
357                    return _endDate;
358            }
359    
360            public void setEndDate(Date endDate) {
361                    _endDate = endDate;
362            }
363    
364            public Date getPublishDate() {
365                    return _publishDate;
366            }
367    
368            public void setPublishDate(Date publishDate) {
369                    _publishDate = publishDate;
370            }
371    
372            public Date getExpirationDate() {
373                    return _expirationDate;
374            }
375    
376            public void setExpirationDate(Date expirationDate) {
377                    _expirationDate = expirationDate;
378            }
379    
380            public String getMimeType() {
381                    if (_mimeType == null) {
382                            return StringPool.BLANK;
383                    }
384                    else {
385                            return _mimeType;
386                    }
387            }
388    
389            public void setMimeType(String mimeType) {
390                    _mimeType = mimeType;
391            }
392    
393            public String getTitle() {
394                    if (_title == null) {
395                            return StringPool.BLANK;
396                    }
397                    else {
398                            return _title;
399                    }
400            }
401    
402            public void setTitle(String title) {
403                    _title = title;
404            }
405    
406            public String getDescription() {
407                    if (_description == null) {
408                            return StringPool.BLANK;
409                    }
410                    else {
411                            return _description;
412                    }
413            }
414    
415            public void setDescription(String description) {
416                    _description = description;
417            }
418    
419            public String getSummary() {
420                    if (_summary == null) {
421                            return StringPool.BLANK;
422                    }
423                    else {
424                            return _summary;
425                    }
426            }
427    
428            public void setSummary(String summary) {
429                    _summary = summary;
430            }
431    
432            public String getUrl() {
433                    if (_url == null) {
434                            return StringPool.BLANK;
435                    }
436                    else {
437                            return _url;
438                    }
439            }
440    
441            public void setUrl(String url) {
442                    _url = url;
443            }
444    
445            public int getHeight() {
446                    return _height;
447            }
448    
449            public void setHeight(int height) {
450                    _height = height;
451            }
452    
453            public int getWidth() {
454                    return _width;
455            }
456    
457            public void setWidth(int width) {
458                    _width = width;
459            }
460    
461            public double getPriority() {
462                    return _priority;
463            }
464    
465            public void setPriority(double priority) {
466                    _priority = priority;
467            }
468    
469            public int getViewCount() {
470                    return _viewCount;
471            }
472    
473            public void setViewCount(int viewCount) {
474                    _viewCount = viewCount;
475            }
476    
477            public AssetEntry toEscapedModel() {
478                    if (isEscapedModel()) {
479                            return (AssetEntry)this;
480                    }
481                    else {
482                            return (AssetEntry)Proxy.newProxyInstance(AssetEntry.class.getClassLoader(),
483                                    new Class[] { AssetEntry.class },
484                                    new AutoEscapeBeanHandler(this));
485                    }
486            }
487    
488            public ExpandoBridge getExpandoBridge() {
489                    if (_expandoBridge == null) {
490                            _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
491                                            AssetEntry.class.getName(), getPrimaryKey());
492                    }
493    
494                    return _expandoBridge;
495            }
496    
497            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
498                    getExpandoBridge().setAttributes(serviceContext);
499            }
500    
501            public Object clone() {
502                    AssetEntryImpl assetEntryImpl = new AssetEntryImpl();
503    
504                    assetEntryImpl.setEntryId(getEntryId());
505    
506                    assetEntryImpl.setGroupId(getGroupId());
507    
508                    AssetEntryModelImpl assetEntryModelImpl = assetEntryImpl;
509    
510                    assetEntryModelImpl._originalGroupId = assetEntryModelImpl._groupId;
511    
512                    assetEntryModelImpl._setOriginalGroupId = false;
513                    assetEntryImpl.setCompanyId(getCompanyId());
514    
515                    assetEntryImpl.setUserId(getUserId());
516    
517                    assetEntryImpl.setUserName(getUserName());
518    
519                    assetEntryImpl.setCreateDate(getCreateDate());
520    
521                    assetEntryImpl.setModifiedDate(getModifiedDate());
522    
523                    assetEntryImpl.setClassNameId(getClassNameId());
524    
525                    assetEntryModelImpl._originalClassNameId = assetEntryModelImpl._classNameId;
526    
527                    assetEntryModelImpl._setOriginalClassNameId = false;
528                    assetEntryImpl.setClassPK(getClassPK());
529    
530                    assetEntryModelImpl._originalClassPK = assetEntryModelImpl._classPK;
531    
532                    assetEntryModelImpl._setOriginalClassPK = false;
533                    assetEntryImpl.setClassUuid(getClassUuid());
534    
535                    assetEntryModelImpl._originalClassUuid = assetEntryModelImpl._classUuid;
536    
537                    assetEntryImpl.setVisible(getVisible());
538    
539                    assetEntryImpl.setStartDate(getStartDate());
540    
541                    assetEntryImpl.setEndDate(getEndDate());
542    
543                    assetEntryImpl.setPublishDate(getPublishDate());
544    
545                    assetEntryImpl.setExpirationDate(getExpirationDate());
546    
547                    assetEntryImpl.setMimeType(getMimeType());
548    
549                    assetEntryImpl.setTitle(getTitle());
550    
551                    assetEntryImpl.setDescription(getDescription());
552    
553                    assetEntryImpl.setSummary(getSummary());
554    
555                    assetEntryImpl.setUrl(getUrl());
556    
557                    assetEntryImpl.setHeight(getHeight());
558    
559                    assetEntryImpl.setWidth(getWidth());
560    
561                    assetEntryImpl.setPriority(getPriority());
562    
563                    assetEntryImpl.setViewCount(getViewCount());
564    
565                    return assetEntryImpl;
566            }
567    
568            public int compareTo(AssetEntry assetEntry) {
569                    long pk = assetEntry.getPrimaryKey();
570    
571                    if (getPrimaryKey() < pk) {
572                            return -1;
573                    }
574                    else if (getPrimaryKey() > pk) {
575                            return 1;
576                    }
577                    else {
578                            return 0;
579                    }
580            }
581    
582            public boolean equals(Object obj) {
583                    if (obj == null) {
584                            return false;
585                    }
586    
587                    AssetEntry assetEntry = null;
588    
589                    try {
590                            assetEntry = (AssetEntry)obj;
591                    }
592                    catch (ClassCastException cce) {
593                            return false;
594                    }
595    
596                    long pk = assetEntry.getPrimaryKey();
597    
598                    if (getPrimaryKey() == pk) {
599                            return true;
600                    }
601                    else {
602                            return false;
603                    }
604            }
605    
606            public int hashCode() {
607                    return (int)getPrimaryKey();
608            }
609    
610            public String toString() {
611                    StringBundler sb = new StringBundler(49);
612    
613                    sb.append("{entryId=");
614                    sb.append(getEntryId());
615                    sb.append(", groupId=");
616                    sb.append(getGroupId());
617                    sb.append(", companyId=");
618                    sb.append(getCompanyId());
619                    sb.append(", userId=");
620                    sb.append(getUserId());
621                    sb.append(", userName=");
622                    sb.append(getUserName());
623                    sb.append(", createDate=");
624                    sb.append(getCreateDate());
625                    sb.append(", modifiedDate=");
626                    sb.append(getModifiedDate());
627                    sb.append(", classNameId=");
628                    sb.append(getClassNameId());
629                    sb.append(", classPK=");
630                    sb.append(getClassPK());
631                    sb.append(", classUuid=");
632                    sb.append(getClassUuid());
633                    sb.append(", visible=");
634                    sb.append(getVisible());
635                    sb.append(", startDate=");
636                    sb.append(getStartDate());
637                    sb.append(", endDate=");
638                    sb.append(getEndDate());
639                    sb.append(", publishDate=");
640                    sb.append(getPublishDate());
641                    sb.append(", expirationDate=");
642                    sb.append(getExpirationDate());
643                    sb.append(", mimeType=");
644                    sb.append(getMimeType());
645                    sb.append(", title=");
646                    sb.append(getTitle());
647                    sb.append(", description=");
648                    sb.append(getDescription());
649                    sb.append(", summary=");
650                    sb.append(getSummary());
651                    sb.append(", url=");
652                    sb.append(getUrl());
653                    sb.append(", height=");
654                    sb.append(getHeight());
655                    sb.append(", width=");
656                    sb.append(getWidth());
657                    sb.append(", priority=");
658                    sb.append(getPriority());
659                    sb.append(", viewCount=");
660                    sb.append(getViewCount());
661                    sb.append("}");
662    
663                    return sb.toString();
664            }
665    
666            public String toXmlString() {
667                    StringBundler sb = new StringBundler(76);
668    
669                    sb.append("<model><model-name>");
670                    sb.append("com.liferay.portlet.asset.model.AssetEntry");
671                    sb.append("</model-name>");
672    
673                    sb.append(
674                            "<column><column-name>entryId</column-name><column-value><![CDATA[");
675                    sb.append(getEntryId());
676                    sb.append("]]></column-value></column>");
677                    sb.append(
678                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
679                    sb.append(getGroupId());
680                    sb.append("]]></column-value></column>");
681                    sb.append(
682                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
683                    sb.append(getCompanyId());
684                    sb.append("]]></column-value></column>");
685                    sb.append(
686                            "<column><column-name>userId</column-name><column-value><![CDATA[");
687                    sb.append(getUserId());
688                    sb.append("]]></column-value></column>");
689                    sb.append(
690                            "<column><column-name>userName</column-name><column-value><![CDATA[");
691                    sb.append(getUserName());
692                    sb.append("]]></column-value></column>");
693                    sb.append(
694                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
695                    sb.append(getCreateDate());
696                    sb.append("]]></column-value></column>");
697                    sb.append(
698                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
699                    sb.append(getModifiedDate());
700                    sb.append("]]></column-value></column>");
701                    sb.append(
702                            "<column><column-name>classNameId</column-name><column-value><![CDATA[");
703                    sb.append(getClassNameId());
704                    sb.append("]]></column-value></column>");
705                    sb.append(
706                            "<column><column-name>classPK</column-name><column-value><![CDATA[");
707                    sb.append(getClassPK());
708                    sb.append("]]></column-value></column>");
709                    sb.append(
710                            "<column><column-name>classUuid</column-name><column-value><![CDATA[");
711                    sb.append(getClassUuid());
712                    sb.append("]]></column-value></column>");
713                    sb.append(
714                            "<column><column-name>visible</column-name><column-value><![CDATA[");
715                    sb.append(getVisible());
716                    sb.append("]]></column-value></column>");
717                    sb.append(
718                            "<column><column-name>startDate</column-name><column-value><![CDATA[");
719                    sb.append(getStartDate());
720                    sb.append("]]></column-value></column>");
721                    sb.append(
722                            "<column><column-name>endDate</column-name><column-value><![CDATA[");
723                    sb.append(getEndDate());
724                    sb.append("]]></column-value></column>");
725                    sb.append(
726                            "<column><column-name>publishDate</column-name><column-value><![CDATA[");
727                    sb.append(getPublishDate());
728                    sb.append("]]></column-value></column>");
729                    sb.append(
730                            "<column><column-name>expirationDate</column-name><column-value><![CDATA[");
731                    sb.append(getExpirationDate());
732                    sb.append("]]></column-value></column>");
733                    sb.append(
734                            "<column><column-name>mimeType</column-name><column-value><![CDATA[");
735                    sb.append(getMimeType());
736                    sb.append("]]></column-value></column>");
737                    sb.append(
738                            "<column><column-name>title</column-name><column-value><![CDATA[");
739                    sb.append(getTitle());
740                    sb.append("]]></column-value></column>");
741                    sb.append(
742                            "<column><column-name>description</column-name><column-value><![CDATA[");
743                    sb.append(getDescription());
744                    sb.append("]]></column-value></column>");
745                    sb.append(
746                            "<column><column-name>summary</column-name><column-value><![CDATA[");
747                    sb.append(getSummary());
748                    sb.append("]]></column-value></column>");
749                    sb.append(
750                            "<column><column-name>url</column-name><column-value><![CDATA[");
751                    sb.append(getUrl());
752                    sb.append("]]></column-value></column>");
753                    sb.append(
754                            "<column><column-name>height</column-name><column-value><![CDATA[");
755                    sb.append(getHeight());
756                    sb.append("]]></column-value></column>");
757                    sb.append(
758                            "<column><column-name>width</column-name><column-value><![CDATA[");
759                    sb.append(getWidth());
760                    sb.append("]]></column-value></column>");
761                    sb.append(
762                            "<column><column-name>priority</column-name><column-value><![CDATA[");
763                    sb.append(getPriority());
764                    sb.append("]]></column-value></column>");
765                    sb.append(
766                            "<column><column-name>viewCount</column-name><column-value><![CDATA[");
767                    sb.append(getViewCount());
768                    sb.append("]]></column-value></column>");
769    
770                    sb.append("</model>");
771    
772                    return sb.toString();
773            }
774    
775            private long _entryId;
776            private long _groupId;
777            private long _originalGroupId;
778            private boolean _setOriginalGroupId;
779            private long _companyId;
780            private long _userId;
781            private String _userUuid;
782            private String _userName;
783            private Date _createDate;
784            private Date _modifiedDate;
785            private long _classNameId;
786            private long _originalClassNameId;
787            private boolean _setOriginalClassNameId;
788            private long _classPK;
789            private long _originalClassPK;
790            private boolean _setOriginalClassPK;
791            private String _classUuid;
792            private String _originalClassUuid;
793            private boolean _visible;
794            private Date _startDate;
795            private Date _endDate;
796            private Date _publishDate;
797            private Date _expirationDate;
798            private String _mimeType;
799            private String _title;
800            private String _description;
801            private String _summary;
802            private String _url;
803            private int _height;
804            private int _width;
805            private double _priority;
806            private int _viewCount;
807            private transient ExpandoBridge _expandoBridge;
808    }