001    /**
002     * Copyright (c) 2000-2010 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.journal.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.kernel.workflow.WorkflowConstants;
023    import com.liferay.portal.model.impl.BaseModelImpl;
024    import com.liferay.portal.service.ServiceContext;
025    import com.liferay.portal.util.PortalUtil;
026    
027    import com.liferay.portlet.expando.model.ExpandoBridge;
028    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
029    import com.liferay.portlet.journal.model.JournalArticle;
030    import com.liferay.portlet.journal.model.JournalArticleModel;
031    import com.liferay.portlet.journal.model.JournalArticleSoap;
032    
033    import java.io.Serializable;
034    
035    import java.lang.reflect.Proxy;
036    
037    import java.sql.Types;
038    
039    import java.util.ArrayList;
040    import java.util.Date;
041    import java.util.List;
042    
043    /**
044     * The base model implementation for the JournalArticle service. Represents a row in the "JournalArticle" database table, with each column mapped to a property of this class.
045     *
046     * <p>
047     * This implementation and its corresponding interface {@link com.liferay.portlet.journal.model.JournalArticleModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link JournalArticleImpl}.
048     * </p>
049     *
050     * <p>
051     * Never modify or reference this class directly. All methods that expect a journal article model instance should use the {@link com.liferay.portlet.journal.model.JournalArticle} interface instead.
052     * </p>
053     *
054     * @author Brian Wing Shun Chan
055     * @see JournalArticleImpl
056     * @see com.liferay.portlet.journal.model.JournalArticle
057     * @see com.liferay.portlet.journal.model.JournalArticleModel
058     * @generated
059     */
060    public class JournalArticleModelImpl extends BaseModelImpl<JournalArticle>
061            implements JournalArticleModel {
062            public static final String TABLE_NAME = "JournalArticle";
063            public static final Object[][] TABLE_COLUMNS = {
064                            { "uuid_", new Integer(Types.VARCHAR) },
065                            { "id_", new Integer(Types.BIGINT) },
066                            { "resourcePrimKey", new Integer(Types.BIGINT) },
067                            { "groupId", new Integer(Types.BIGINT) },
068                            { "companyId", new Integer(Types.BIGINT) },
069                            { "userId", new Integer(Types.BIGINT) },
070                            { "userName", new Integer(Types.VARCHAR) },
071                            { "createDate", new Integer(Types.TIMESTAMP) },
072                            { "modifiedDate", new Integer(Types.TIMESTAMP) },
073                            { "articleId", new Integer(Types.VARCHAR) },
074                            { "version", new Integer(Types.DOUBLE) },
075                            { "title", new Integer(Types.VARCHAR) },
076                            { "urlTitle", new Integer(Types.VARCHAR) },
077                            { "description", new Integer(Types.VARCHAR) },
078                            { "content", new Integer(Types.CLOB) },
079                            { "type_", new Integer(Types.VARCHAR) },
080                            { "structureId", new Integer(Types.VARCHAR) },
081                            { "templateId", new Integer(Types.VARCHAR) },
082                            { "displayDate", new Integer(Types.TIMESTAMP) },
083                            { "expirationDate", new Integer(Types.TIMESTAMP) },
084                            { "reviewDate", new Integer(Types.TIMESTAMP) },
085                            { "indexable", new Integer(Types.BOOLEAN) },
086                            { "smallImage", new Integer(Types.BOOLEAN) },
087                            { "smallImageId", new Integer(Types.BIGINT) },
088                            { "smallImageURL", new Integer(Types.VARCHAR) },
089                            { "status", new Integer(Types.INTEGER) },
090                            { "statusByUserId", new Integer(Types.BIGINT) },
091                            { "statusByUserName", new Integer(Types.VARCHAR) },
092                            { "statusDate", new Integer(Types.TIMESTAMP) }
093                    };
094            public static final String TABLE_SQL_CREATE = "create table JournalArticle (uuid_ VARCHAR(75) null,id_ LONG not null primary key,resourcePrimKey LONG,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,articleId VARCHAR(75) null,version DOUBLE,title VARCHAR(300) null,urlTitle VARCHAR(150) null,description STRING null,content TEXT null,type_ VARCHAR(75) null,structureId VARCHAR(75) null,templateId VARCHAR(75) null,displayDate DATE null,expirationDate DATE null,reviewDate DATE null,indexable BOOLEAN,smallImage BOOLEAN,smallImageId LONG,smallImageURL STRING null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
095            public static final String TABLE_SQL_DROP = "drop table JournalArticle";
096            public static final String ORDER_BY_JPQL = " ORDER BY journalArticle.articleId ASC, journalArticle.version DESC";
097            public static final String ORDER_BY_SQL = " ORDER BY JournalArticle.articleId ASC, JournalArticle.version DESC";
098            public static final String DATA_SOURCE = "liferayDataSource";
099            public static final String SESSION_FACTORY = "liferaySessionFactory";
100            public static final String TX_MANAGER = "liferayTransactionManager";
101            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
102                                    "value.object.entity.cache.enabled.com.liferay.portlet.journal.model.JournalArticle"),
103                            true);
104            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
105                                    "value.object.finder.cache.enabled.com.liferay.portlet.journal.model.JournalArticle"),
106                            true);
107    
108            /**
109             * Converts the soap model instance into a normal model instance.
110             *
111             * @param soapModel the soap model instance to convert
112             * @return the normal model instance
113             */
114            public static JournalArticle toModel(JournalArticleSoap soapModel) {
115                    JournalArticle model = new JournalArticleImpl();
116    
117                    model.setUuid(soapModel.getUuid());
118                    model.setId(soapModel.getId());
119                    model.setResourcePrimKey(soapModel.getResourcePrimKey());
120                    model.setGroupId(soapModel.getGroupId());
121                    model.setCompanyId(soapModel.getCompanyId());
122                    model.setUserId(soapModel.getUserId());
123                    model.setUserName(soapModel.getUserName());
124                    model.setCreateDate(soapModel.getCreateDate());
125                    model.setModifiedDate(soapModel.getModifiedDate());
126                    model.setArticleId(soapModel.getArticleId());
127                    model.setVersion(soapModel.getVersion());
128                    model.setTitle(soapModel.getTitle());
129                    model.setUrlTitle(soapModel.getUrlTitle());
130                    model.setDescription(soapModel.getDescription());
131                    model.setContent(soapModel.getContent());
132                    model.setType(soapModel.getType());
133                    model.setStructureId(soapModel.getStructureId());
134                    model.setTemplateId(soapModel.getTemplateId());
135                    model.setDisplayDate(soapModel.getDisplayDate());
136                    model.setExpirationDate(soapModel.getExpirationDate());
137                    model.setReviewDate(soapModel.getReviewDate());
138                    model.setIndexable(soapModel.getIndexable());
139                    model.setSmallImage(soapModel.getSmallImage());
140                    model.setSmallImageId(soapModel.getSmallImageId());
141                    model.setSmallImageURL(soapModel.getSmallImageURL());
142                    model.setStatus(soapModel.getStatus());
143                    model.setStatusByUserId(soapModel.getStatusByUserId());
144                    model.setStatusByUserName(soapModel.getStatusByUserName());
145                    model.setStatusDate(soapModel.getStatusDate());
146    
147                    return model;
148            }
149    
150            /**
151             * Converts the soap model instances into normal model instances.
152             *
153             * @param soapModels the soap model instances to convert
154             * @return the normal model instances
155             */
156            public static List<JournalArticle> toModels(JournalArticleSoap[] soapModels) {
157                    List<JournalArticle> models = new ArrayList<JournalArticle>(soapModels.length);
158    
159                    for (JournalArticleSoap soapModel : soapModels) {
160                            models.add(toModel(soapModel));
161                    }
162    
163                    return models;
164            }
165    
166            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
167                                    "lock.expiration.time.com.liferay.portlet.journal.model.JournalArticle"));
168    
169            public JournalArticleModelImpl() {
170            }
171    
172            public long getPrimaryKey() {
173                    return _id;
174            }
175    
176            public void setPrimaryKey(long pk) {
177                    setId(pk);
178            }
179    
180            public Serializable getPrimaryKeyObj() {
181                    return new Long(_id);
182            }
183    
184            public String getUuid() {
185                    if (_uuid == null) {
186                            return StringPool.BLANK;
187                    }
188                    else {
189                            return _uuid;
190                    }
191            }
192    
193            public void setUuid(String uuid) {
194                    _uuid = uuid;
195    
196                    if (_originalUuid == null) {
197                            _originalUuid = uuid;
198                    }
199            }
200    
201            public String getOriginalUuid() {
202                    return GetterUtil.getString(_originalUuid);
203            }
204    
205            public long getId() {
206                    return _id;
207            }
208    
209            public void setId(long id) {
210                    _id = id;
211            }
212    
213            public long getResourcePrimKey() {
214                    return _resourcePrimKey;
215            }
216    
217            public void setResourcePrimKey(long resourcePrimKey) {
218                    _resourcePrimKey = resourcePrimKey;
219            }
220    
221            public long getGroupId() {
222                    return _groupId;
223            }
224    
225            public void setGroupId(long groupId) {
226                    _groupId = groupId;
227    
228                    if (!_setOriginalGroupId) {
229                            _setOriginalGroupId = true;
230    
231                            _originalGroupId = groupId;
232                    }
233            }
234    
235            public long getOriginalGroupId() {
236                    return _originalGroupId;
237            }
238    
239            public long getCompanyId() {
240                    return _companyId;
241            }
242    
243            public void setCompanyId(long companyId) {
244                    _companyId = companyId;
245            }
246    
247            public long getUserId() {
248                    return _userId;
249            }
250    
251            public void setUserId(long userId) {
252                    _userId = userId;
253            }
254    
255            public String getUserUuid() throws SystemException {
256                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
257            }
258    
259            public void setUserUuid(String userUuid) {
260                    _userUuid = userUuid;
261            }
262    
263            public String getUserName() {
264                    if (_userName == null) {
265                            return StringPool.BLANK;
266                    }
267                    else {
268                            return _userName;
269                    }
270            }
271    
272            public void setUserName(String userName) {
273                    _userName = userName;
274            }
275    
276            public Date getCreateDate() {
277                    return _createDate;
278            }
279    
280            public void setCreateDate(Date createDate) {
281                    _createDate = createDate;
282            }
283    
284            public Date getModifiedDate() {
285                    return _modifiedDate;
286            }
287    
288            public void setModifiedDate(Date modifiedDate) {
289                    _modifiedDate = modifiedDate;
290            }
291    
292            public String getArticleId() {
293                    if (_articleId == null) {
294                            return StringPool.BLANK;
295                    }
296                    else {
297                            return _articleId;
298                    }
299            }
300    
301            public void setArticleId(String articleId) {
302                    _articleId = articleId;
303    
304                    if (_originalArticleId == null) {
305                            _originalArticleId = articleId;
306                    }
307            }
308    
309            public String getOriginalArticleId() {
310                    return GetterUtil.getString(_originalArticleId);
311            }
312    
313            public double getVersion() {
314                    return _version;
315            }
316    
317            public void setVersion(double version) {
318                    _version = version;
319    
320                    if (!_setOriginalVersion) {
321                            _setOriginalVersion = true;
322    
323                            _originalVersion = version;
324                    }
325            }
326    
327            public double getOriginalVersion() {
328                    return _originalVersion;
329            }
330    
331            public String getTitle() {
332                    if (_title == null) {
333                            return StringPool.BLANK;
334                    }
335                    else {
336                            return _title;
337                    }
338            }
339    
340            public void setTitle(String title) {
341                    _title = title;
342            }
343    
344            public String getUrlTitle() {
345                    if (_urlTitle == null) {
346                            return StringPool.BLANK;
347                    }
348                    else {
349                            return _urlTitle;
350                    }
351            }
352    
353            public void setUrlTitle(String urlTitle) {
354                    _urlTitle = urlTitle;
355            }
356    
357            public String getDescription() {
358                    if (_description == null) {
359                            return StringPool.BLANK;
360                    }
361                    else {
362                            return _description;
363                    }
364            }
365    
366            public void setDescription(String description) {
367                    _description = description;
368            }
369    
370            public String getContent() {
371                    if (_content == null) {
372                            return StringPool.BLANK;
373                    }
374                    else {
375                            return _content;
376                    }
377            }
378    
379            public void setContent(String content) {
380                    _content = content;
381            }
382    
383            public String getType() {
384                    if (_type == null) {
385                            return StringPool.BLANK;
386                    }
387                    else {
388                            return _type;
389                    }
390            }
391    
392            public void setType(String type) {
393                    _type = type;
394            }
395    
396            public String getStructureId() {
397                    if (_structureId == null) {
398                            return StringPool.BLANK;
399                    }
400                    else {
401                            return _structureId;
402                    }
403            }
404    
405            public void setStructureId(String structureId) {
406                    _structureId = structureId;
407            }
408    
409            public String getTemplateId() {
410                    if (_templateId == null) {
411                            return StringPool.BLANK;
412                    }
413                    else {
414                            return _templateId;
415                    }
416            }
417    
418            public void setTemplateId(String templateId) {
419                    _templateId = templateId;
420            }
421    
422            public Date getDisplayDate() {
423                    return _displayDate;
424            }
425    
426            public void setDisplayDate(Date displayDate) {
427                    _displayDate = displayDate;
428            }
429    
430            public Date getExpirationDate() {
431                    return _expirationDate;
432            }
433    
434            public void setExpirationDate(Date expirationDate) {
435                    _expirationDate = expirationDate;
436            }
437    
438            public Date getReviewDate() {
439                    return _reviewDate;
440            }
441    
442            public void setReviewDate(Date reviewDate) {
443                    _reviewDate = reviewDate;
444            }
445    
446            public boolean getIndexable() {
447                    return _indexable;
448            }
449    
450            public boolean isIndexable() {
451                    return _indexable;
452            }
453    
454            public void setIndexable(boolean indexable) {
455                    _indexable = indexable;
456            }
457    
458            public boolean getSmallImage() {
459                    return _smallImage;
460            }
461    
462            public boolean isSmallImage() {
463                    return _smallImage;
464            }
465    
466            public void setSmallImage(boolean smallImage) {
467                    _smallImage = smallImage;
468            }
469    
470            public long getSmallImageId() {
471                    return _smallImageId;
472            }
473    
474            public void setSmallImageId(long smallImageId) {
475                    _smallImageId = smallImageId;
476            }
477    
478            public String getSmallImageURL() {
479                    if (_smallImageURL == null) {
480                            return StringPool.BLANK;
481                    }
482                    else {
483                            return _smallImageURL;
484                    }
485            }
486    
487            public void setSmallImageURL(String smallImageURL) {
488                    _smallImageURL = smallImageURL;
489            }
490    
491            public int getStatus() {
492                    return _status;
493            }
494    
495            public void setStatus(int status) {
496                    _status = status;
497            }
498    
499            public long getStatusByUserId() {
500                    return _statusByUserId;
501            }
502    
503            public void setStatusByUserId(long statusByUserId) {
504                    _statusByUserId = statusByUserId;
505            }
506    
507            public String getStatusByUserUuid() throws SystemException {
508                    return PortalUtil.getUserValue(getStatusByUserId(), "uuid",
509                            _statusByUserUuid);
510            }
511    
512            public void setStatusByUserUuid(String statusByUserUuid) {
513                    _statusByUserUuid = statusByUserUuid;
514            }
515    
516            public String getStatusByUserName() {
517                    if (_statusByUserName == null) {
518                            return StringPool.BLANK;
519                    }
520                    else {
521                            return _statusByUserName;
522                    }
523            }
524    
525            public void setStatusByUserName(String statusByUserName) {
526                    _statusByUserName = statusByUserName;
527            }
528    
529            public Date getStatusDate() {
530                    return _statusDate;
531            }
532    
533            public void setStatusDate(Date statusDate) {
534                    _statusDate = statusDate;
535            }
536    
537            public boolean isApproved() {
538                    if (getStatus() == WorkflowConstants.STATUS_APPROVED) {
539                            return true;
540                    }
541                    else {
542                            return false;
543                    }
544            }
545    
546            public boolean isDraft() {
547                    if (getStatus() == WorkflowConstants.STATUS_DRAFT) {
548                            return true;
549                    }
550                    else {
551                            return false;
552                    }
553            }
554    
555            public boolean isExpired() {
556                    if (getStatus() == WorkflowConstants.STATUS_EXPIRED) {
557                            return true;
558                    }
559                    else {
560                            return false;
561                    }
562            }
563    
564            public boolean isPending() {
565                    if (getStatus() == WorkflowConstants.STATUS_PENDING) {
566                            return true;
567                    }
568                    else {
569                            return false;
570                    }
571            }
572    
573            public JournalArticle toEscapedModel() {
574                    if (isEscapedModel()) {
575                            return (JournalArticle)this;
576                    }
577                    else {
578                            return (JournalArticle)Proxy.newProxyInstance(JournalArticle.class.getClassLoader(),
579                                    new Class[] { JournalArticle.class },
580                                    new AutoEscapeBeanHandler(this));
581                    }
582            }
583    
584            public ExpandoBridge getExpandoBridge() {
585                    if (_expandoBridge == null) {
586                            _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
587                                            JournalArticle.class.getName(), getPrimaryKey());
588                    }
589    
590                    return _expandoBridge;
591            }
592    
593            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
594                    getExpandoBridge().setAttributes(serviceContext);
595            }
596    
597            public Object clone() {
598                    JournalArticleImpl clone = new JournalArticleImpl();
599    
600                    clone.setUuid(getUuid());
601                    clone.setId(getId());
602                    clone.setResourcePrimKey(getResourcePrimKey());
603                    clone.setGroupId(getGroupId());
604                    clone.setCompanyId(getCompanyId());
605                    clone.setUserId(getUserId());
606                    clone.setUserName(getUserName());
607                    clone.setCreateDate(getCreateDate());
608                    clone.setModifiedDate(getModifiedDate());
609                    clone.setArticleId(getArticleId());
610                    clone.setVersion(getVersion());
611                    clone.setTitle(getTitle());
612                    clone.setUrlTitle(getUrlTitle());
613                    clone.setDescription(getDescription());
614                    clone.setContent(getContent());
615                    clone.setType(getType());
616                    clone.setStructureId(getStructureId());
617                    clone.setTemplateId(getTemplateId());
618                    clone.setDisplayDate(getDisplayDate());
619                    clone.setExpirationDate(getExpirationDate());
620                    clone.setReviewDate(getReviewDate());
621                    clone.setIndexable(getIndexable());
622                    clone.setSmallImage(getSmallImage());
623                    clone.setSmallImageId(getSmallImageId());
624                    clone.setSmallImageURL(getSmallImageURL());
625                    clone.setStatus(getStatus());
626                    clone.setStatusByUserId(getStatusByUserId());
627                    clone.setStatusByUserName(getStatusByUserName());
628                    clone.setStatusDate(getStatusDate());
629    
630                    return clone;
631            }
632    
633            public int compareTo(JournalArticle journalArticle) {
634                    int value = 0;
635    
636                    value = getArticleId().compareTo(journalArticle.getArticleId());
637    
638                    if (value != 0) {
639                            return value;
640                    }
641    
642                    if (getVersion() < journalArticle.getVersion()) {
643                            value = -1;
644                    }
645                    else if (getVersion() > journalArticle.getVersion()) {
646                            value = 1;
647                    }
648                    else {
649                            value = 0;
650                    }
651    
652                    value = value * -1;
653    
654                    if (value != 0) {
655                            return value;
656                    }
657    
658                    return 0;
659            }
660    
661            public boolean equals(Object obj) {
662                    if (obj == null) {
663                            return false;
664                    }
665    
666                    JournalArticle journalArticle = null;
667    
668                    try {
669                            journalArticle = (JournalArticle)obj;
670                    }
671                    catch (ClassCastException cce) {
672                            return false;
673                    }
674    
675                    long pk = journalArticle.getPrimaryKey();
676    
677                    if (getPrimaryKey() == pk) {
678                            return true;
679                    }
680                    else {
681                            return false;
682                    }
683            }
684    
685            public int hashCode() {
686                    return (int)getPrimaryKey();
687            }
688    
689            public String toString() {
690                    StringBundler sb = new StringBundler(59);
691    
692                    sb.append("{uuid=");
693                    sb.append(getUuid());
694                    sb.append(", id=");
695                    sb.append(getId());
696                    sb.append(", resourcePrimKey=");
697                    sb.append(getResourcePrimKey());
698                    sb.append(", groupId=");
699                    sb.append(getGroupId());
700                    sb.append(", companyId=");
701                    sb.append(getCompanyId());
702                    sb.append(", userId=");
703                    sb.append(getUserId());
704                    sb.append(", userName=");
705                    sb.append(getUserName());
706                    sb.append(", createDate=");
707                    sb.append(getCreateDate());
708                    sb.append(", modifiedDate=");
709                    sb.append(getModifiedDate());
710                    sb.append(", articleId=");
711                    sb.append(getArticleId());
712                    sb.append(", version=");
713                    sb.append(getVersion());
714                    sb.append(", title=");
715                    sb.append(getTitle());
716                    sb.append(", urlTitle=");
717                    sb.append(getUrlTitle());
718                    sb.append(", description=");
719                    sb.append(getDescription());
720                    sb.append(", content=");
721                    sb.append(getContent());
722                    sb.append(", type=");
723                    sb.append(getType());
724                    sb.append(", structureId=");
725                    sb.append(getStructureId());
726                    sb.append(", templateId=");
727                    sb.append(getTemplateId());
728                    sb.append(", displayDate=");
729                    sb.append(getDisplayDate());
730                    sb.append(", expirationDate=");
731                    sb.append(getExpirationDate());
732                    sb.append(", reviewDate=");
733                    sb.append(getReviewDate());
734                    sb.append(", indexable=");
735                    sb.append(getIndexable());
736                    sb.append(", smallImage=");
737                    sb.append(getSmallImage());
738                    sb.append(", smallImageId=");
739                    sb.append(getSmallImageId());
740                    sb.append(", smallImageURL=");
741                    sb.append(getSmallImageURL());
742                    sb.append(", status=");
743                    sb.append(getStatus());
744                    sb.append(", statusByUserId=");
745                    sb.append(getStatusByUserId());
746                    sb.append(", statusByUserName=");
747                    sb.append(getStatusByUserName());
748                    sb.append(", statusDate=");
749                    sb.append(getStatusDate());
750                    sb.append("}");
751    
752                    return sb.toString();
753            }
754    
755            public String toXmlString() {
756                    StringBundler sb = new StringBundler(91);
757    
758                    sb.append("<model><model-name>");
759                    sb.append("com.liferay.portlet.journal.model.JournalArticle");
760                    sb.append("</model-name>");
761    
762                    sb.append(
763                            "<column><column-name>uuid</column-name><column-value><![CDATA[");
764                    sb.append(getUuid());
765                    sb.append("]]></column-value></column>");
766                    sb.append(
767                            "<column><column-name>id</column-name><column-value><![CDATA[");
768                    sb.append(getId());
769                    sb.append("]]></column-value></column>");
770                    sb.append(
771                            "<column><column-name>resourcePrimKey</column-name><column-value><![CDATA[");
772                    sb.append(getResourcePrimKey());
773                    sb.append("]]></column-value></column>");
774                    sb.append(
775                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
776                    sb.append(getGroupId());
777                    sb.append("]]></column-value></column>");
778                    sb.append(
779                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
780                    sb.append(getCompanyId());
781                    sb.append("]]></column-value></column>");
782                    sb.append(
783                            "<column><column-name>userId</column-name><column-value><![CDATA[");
784                    sb.append(getUserId());
785                    sb.append("]]></column-value></column>");
786                    sb.append(
787                            "<column><column-name>userName</column-name><column-value><![CDATA[");
788                    sb.append(getUserName());
789                    sb.append("]]></column-value></column>");
790                    sb.append(
791                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
792                    sb.append(getCreateDate());
793                    sb.append("]]></column-value></column>");
794                    sb.append(
795                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
796                    sb.append(getModifiedDate());
797                    sb.append("]]></column-value></column>");
798                    sb.append(
799                            "<column><column-name>articleId</column-name><column-value><![CDATA[");
800                    sb.append(getArticleId());
801                    sb.append("]]></column-value></column>");
802                    sb.append(
803                            "<column><column-name>version</column-name><column-value><![CDATA[");
804                    sb.append(getVersion());
805                    sb.append("]]></column-value></column>");
806                    sb.append(
807                            "<column><column-name>title</column-name><column-value><![CDATA[");
808                    sb.append(getTitle());
809                    sb.append("]]></column-value></column>");
810                    sb.append(
811                            "<column><column-name>urlTitle</column-name><column-value><![CDATA[");
812                    sb.append(getUrlTitle());
813                    sb.append("]]></column-value></column>");
814                    sb.append(
815                            "<column><column-name>description</column-name><column-value><![CDATA[");
816                    sb.append(getDescription());
817                    sb.append("]]></column-value></column>");
818                    sb.append(
819                            "<column><column-name>content</column-name><column-value><![CDATA[");
820                    sb.append(getContent());
821                    sb.append("]]></column-value></column>");
822                    sb.append(
823                            "<column><column-name>type</column-name><column-value><![CDATA[");
824                    sb.append(getType());
825                    sb.append("]]></column-value></column>");
826                    sb.append(
827                            "<column><column-name>structureId</column-name><column-value><![CDATA[");
828                    sb.append(getStructureId());
829                    sb.append("]]></column-value></column>");
830                    sb.append(
831                            "<column><column-name>templateId</column-name><column-value><![CDATA[");
832                    sb.append(getTemplateId());
833                    sb.append("]]></column-value></column>");
834                    sb.append(
835                            "<column><column-name>displayDate</column-name><column-value><![CDATA[");
836                    sb.append(getDisplayDate());
837                    sb.append("]]></column-value></column>");
838                    sb.append(
839                            "<column><column-name>expirationDate</column-name><column-value><![CDATA[");
840                    sb.append(getExpirationDate());
841                    sb.append("]]></column-value></column>");
842                    sb.append(
843                            "<column><column-name>reviewDate</column-name><column-value><![CDATA[");
844                    sb.append(getReviewDate());
845                    sb.append("]]></column-value></column>");
846                    sb.append(
847                            "<column><column-name>indexable</column-name><column-value><![CDATA[");
848                    sb.append(getIndexable());
849                    sb.append("]]></column-value></column>");
850                    sb.append(
851                            "<column><column-name>smallImage</column-name><column-value><![CDATA[");
852                    sb.append(getSmallImage());
853                    sb.append("]]></column-value></column>");
854                    sb.append(
855                            "<column><column-name>smallImageId</column-name><column-value><![CDATA[");
856                    sb.append(getSmallImageId());
857                    sb.append("]]></column-value></column>");
858                    sb.append(
859                            "<column><column-name>smallImageURL</column-name><column-value><![CDATA[");
860                    sb.append(getSmallImageURL());
861                    sb.append("]]></column-value></column>");
862                    sb.append(
863                            "<column><column-name>status</column-name><column-value><![CDATA[");
864                    sb.append(getStatus());
865                    sb.append("]]></column-value></column>");
866                    sb.append(
867                            "<column><column-name>statusByUserId</column-name><column-value><![CDATA[");
868                    sb.append(getStatusByUserId());
869                    sb.append("]]></column-value></column>");
870                    sb.append(
871                            "<column><column-name>statusByUserName</column-name><column-value><![CDATA[");
872                    sb.append(getStatusByUserName());
873                    sb.append("]]></column-value></column>");
874                    sb.append(
875                            "<column><column-name>statusDate</column-name><column-value><![CDATA[");
876                    sb.append(getStatusDate());
877                    sb.append("]]></column-value></column>");
878    
879                    sb.append("</model>");
880    
881                    return sb.toString();
882            }
883    
884            private String _uuid;
885            private String _originalUuid;
886            private long _id;
887            private long _resourcePrimKey;
888            private long _groupId;
889            private long _originalGroupId;
890            private boolean _setOriginalGroupId;
891            private long _companyId;
892            private long _userId;
893            private String _userUuid;
894            private String _userName;
895            private Date _createDate;
896            private Date _modifiedDate;
897            private String _articleId;
898            private String _originalArticleId;
899            private double _version;
900            private double _originalVersion;
901            private boolean _setOriginalVersion;
902            private String _title;
903            private String _urlTitle;
904            private String _description;
905            private String _content;
906            private String _type;
907            private String _structureId;
908            private String _templateId;
909            private Date _displayDate;
910            private Date _expirationDate;
911            private Date _reviewDate;
912            private boolean _indexable;
913            private boolean _smallImage;
914            private long _smallImageId;
915            private String _smallImageURL;
916            private int _status;
917            private long _statusByUserId;
918            private String _statusByUserUuid;
919            private String _statusByUserName;
920            private Date _statusDate;
921            private transient ExpandoBridge _expandoBridge;
922    }