001    /**
002     * Copyright (c) 2000-present 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.portal.model.impl;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.util.GetterUtil;
022    import com.liferay.portal.kernel.util.ProxyUtil;
023    import com.liferay.portal.kernel.util.StringBundler;
024    import com.liferay.portal.kernel.util.StringPool;
025    import com.liferay.portal.model.CacheModel;
026    import com.liferay.portal.model.RepositoryEntry;
027    import com.liferay.portal.model.RepositoryEntryModel;
028    import com.liferay.portal.model.User;
029    import com.liferay.portal.service.ServiceContext;
030    import com.liferay.portal.service.UserLocalServiceUtil;
031    import com.liferay.portal.util.PortalUtil;
032    
033    import com.liferay.portlet.expando.model.ExpandoBridge;
034    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
035    import com.liferay.portlet.exportimport.lar.StagedModelType;
036    
037    import java.io.Serializable;
038    
039    import java.sql.Types;
040    
041    import java.util.Date;
042    import java.util.HashMap;
043    import java.util.Map;
044    
045    /**
046     * The base model implementation for the RepositoryEntry service. Represents a row in the "RepositoryEntry" database table, with each column mapped to a property of this class.
047     *
048     * <p>
049     * This implementation and its corresponding interface {@link RepositoryEntryModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link RepositoryEntryImpl}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see RepositoryEntryImpl
054     * @see RepositoryEntry
055     * @see RepositoryEntryModel
056     * @generated
057     */
058    @ProviderType
059    public class RepositoryEntryModelImpl extends BaseModelImpl<RepositoryEntry>
060            implements RepositoryEntryModel {
061            /*
062             * NOTE FOR DEVELOPERS:
063             *
064             * Never modify or reference this class directly. All methods that expect a repository entry model instance should use the {@link RepositoryEntry} interface instead.
065             */
066            public static final String TABLE_NAME = "RepositoryEntry";
067            public static final Object[][] TABLE_COLUMNS = {
068                            { "mvccVersion", Types.BIGINT },
069                            { "uuid_", Types.VARCHAR },
070                            { "repositoryEntryId", Types.BIGINT },
071                            { "groupId", Types.BIGINT },
072                            { "companyId", Types.BIGINT },
073                            { "userId", Types.BIGINT },
074                            { "userName", Types.VARCHAR },
075                            { "createDate", Types.TIMESTAMP },
076                            { "modifiedDate", Types.TIMESTAMP },
077                            { "repositoryId", Types.BIGINT },
078                            { "mappedId", Types.VARCHAR },
079                            { "manualCheckInRequired", Types.BOOLEAN },
080                            { "lastPublishDate", Types.TIMESTAMP }
081                    };
082            public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
083    
084            static {
085                    TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT);
086                    TABLE_COLUMNS_MAP.put("uuid_", Types.VARCHAR);
087                    TABLE_COLUMNS_MAP.put("repositoryEntryId", Types.BIGINT);
088                    TABLE_COLUMNS_MAP.put("groupId", Types.BIGINT);
089                    TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
090                    TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
091                    TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
092                    TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
093                    TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
094                    TABLE_COLUMNS_MAP.put("repositoryId", Types.BIGINT);
095                    TABLE_COLUMNS_MAP.put("mappedId", Types.VARCHAR);
096                    TABLE_COLUMNS_MAP.put("manualCheckInRequired", Types.BOOLEAN);
097                    TABLE_COLUMNS_MAP.put("lastPublishDate", Types.TIMESTAMP);
098            }
099    
100            public static final String TABLE_SQL_CREATE = "create table RepositoryEntry (mvccVersion LONG default 0,uuid_ VARCHAR(75) null,repositoryEntryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,repositoryId LONG,mappedId VARCHAR(255) null,manualCheckInRequired BOOLEAN,lastPublishDate DATE null)";
101            public static final String TABLE_SQL_DROP = "drop table RepositoryEntry";
102            public static final String ORDER_BY_JPQL = " ORDER BY repositoryEntry.repositoryEntryId ASC";
103            public static final String ORDER_BY_SQL = " ORDER BY RepositoryEntry.repositoryEntryId 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.portal.model.RepositoryEntry"),
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.portal.model.RepositoryEntry"),
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.portal.model.RepositoryEntry"),
115                            true);
116            public static final long COMPANYID_COLUMN_BITMASK = 1L;
117            public static final long GROUPID_COLUMN_BITMASK = 2L;
118            public static final long MAPPEDID_COLUMN_BITMASK = 4L;
119            public static final long REPOSITORYID_COLUMN_BITMASK = 8L;
120            public static final long UUID_COLUMN_BITMASK = 16L;
121            public static final long REPOSITORYENTRYID_COLUMN_BITMASK = 32L;
122            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
123                                    "lock.expiration.time.com.liferay.portal.model.RepositoryEntry"));
124    
125            public RepositoryEntryModelImpl() {
126            }
127    
128            @Override
129            public long getPrimaryKey() {
130                    return _repositoryEntryId;
131            }
132    
133            @Override
134            public void setPrimaryKey(long primaryKey) {
135                    setRepositoryEntryId(primaryKey);
136            }
137    
138            @Override
139            public Serializable getPrimaryKeyObj() {
140                    return _repositoryEntryId;
141            }
142    
143            @Override
144            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
145                    setPrimaryKey(((Long)primaryKeyObj).longValue());
146            }
147    
148            @Override
149            public Class<?> getModelClass() {
150                    return RepositoryEntry.class;
151            }
152    
153            @Override
154            public String getModelClassName() {
155                    return RepositoryEntry.class.getName();
156            }
157    
158            @Override
159            public Map<String, Object> getModelAttributes() {
160                    Map<String, Object> attributes = new HashMap<String, Object>();
161    
162                    attributes.put("mvccVersion", getMvccVersion());
163                    attributes.put("uuid", getUuid());
164                    attributes.put("repositoryEntryId", getRepositoryEntryId());
165                    attributes.put("groupId", getGroupId());
166                    attributes.put("companyId", getCompanyId());
167                    attributes.put("userId", getUserId());
168                    attributes.put("userName", getUserName());
169                    attributes.put("createDate", getCreateDate());
170                    attributes.put("modifiedDate", getModifiedDate());
171                    attributes.put("repositoryId", getRepositoryId());
172                    attributes.put("mappedId", getMappedId());
173                    attributes.put("manualCheckInRequired", getManualCheckInRequired());
174                    attributes.put("lastPublishDate", getLastPublishDate());
175    
176                    attributes.put("entityCacheEnabled", isEntityCacheEnabled());
177                    attributes.put("finderCacheEnabled", isFinderCacheEnabled());
178    
179                    return attributes;
180            }
181    
182            @Override
183            public void setModelAttributes(Map<String, Object> attributes) {
184                    Long mvccVersion = (Long)attributes.get("mvccVersion");
185    
186                    if (mvccVersion != null) {
187                            setMvccVersion(mvccVersion);
188                    }
189    
190                    String uuid = (String)attributes.get("uuid");
191    
192                    if (uuid != null) {
193                            setUuid(uuid);
194                    }
195    
196                    Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
197    
198                    if (repositoryEntryId != null) {
199                            setRepositoryEntryId(repositoryEntryId);
200                    }
201    
202                    Long groupId = (Long)attributes.get("groupId");
203    
204                    if (groupId != null) {
205                            setGroupId(groupId);
206                    }
207    
208                    Long companyId = (Long)attributes.get("companyId");
209    
210                    if (companyId != null) {
211                            setCompanyId(companyId);
212                    }
213    
214                    Long userId = (Long)attributes.get("userId");
215    
216                    if (userId != null) {
217                            setUserId(userId);
218                    }
219    
220                    String userName = (String)attributes.get("userName");
221    
222                    if (userName != null) {
223                            setUserName(userName);
224                    }
225    
226                    Date createDate = (Date)attributes.get("createDate");
227    
228                    if (createDate != null) {
229                            setCreateDate(createDate);
230                    }
231    
232                    Date modifiedDate = (Date)attributes.get("modifiedDate");
233    
234                    if (modifiedDate != null) {
235                            setModifiedDate(modifiedDate);
236                    }
237    
238                    Long repositoryId = (Long)attributes.get("repositoryId");
239    
240                    if (repositoryId != null) {
241                            setRepositoryId(repositoryId);
242                    }
243    
244                    String mappedId = (String)attributes.get("mappedId");
245    
246                    if (mappedId != null) {
247                            setMappedId(mappedId);
248                    }
249    
250                    Boolean manualCheckInRequired = (Boolean)attributes.get(
251                                    "manualCheckInRequired");
252    
253                    if (manualCheckInRequired != null) {
254                            setManualCheckInRequired(manualCheckInRequired);
255                    }
256    
257                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
258    
259                    if (lastPublishDate != null) {
260                            setLastPublishDate(lastPublishDate);
261                    }
262            }
263    
264            @Override
265            public long getMvccVersion() {
266                    return _mvccVersion;
267            }
268    
269            @Override
270            public void setMvccVersion(long mvccVersion) {
271                    _mvccVersion = mvccVersion;
272            }
273    
274            @Override
275            public String getUuid() {
276                    if (_uuid == null) {
277                            return StringPool.BLANK;
278                    }
279                    else {
280                            return _uuid;
281                    }
282            }
283    
284            @Override
285            public void setUuid(String uuid) {
286                    if (_originalUuid == null) {
287                            _originalUuid = _uuid;
288                    }
289    
290                    _uuid = uuid;
291            }
292    
293            public String getOriginalUuid() {
294                    return GetterUtil.getString(_originalUuid);
295            }
296    
297            @Override
298            public long getRepositoryEntryId() {
299                    return _repositoryEntryId;
300            }
301    
302            @Override
303            public void setRepositoryEntryId(long repositoryEntryId) {
304                    _repositoryEntryId = repositoryEntryId;
305            }
306    
307            @Override
308            public long getGroupId() {
309                    return _groupId;
310            }
311    
312            @Override
313            public void setGroupId(long groupId) {
314                    _columnBitmask |= GROUPID_COLUMN_BITMASK;
315    
316                    if (!_setOriginalGroupId) {
317                            _setOriginalGroupId = true;
318    
319                            _originalGroupId = _groupId;
320                    }
321    
322                    _groupId = groupId;
323            }
324    
325            public long getOriginalGroupId() {
326                    return _originalGroupId;
327            }
328    
329            @Override
330            public long getCompanyId() {
331                    return _companyId;
332            }
333    
334            @Override
335            public void setCompanyId(long companyId) {
336                    _columnBitmask |= COMPANYID_COLUMN_BITMASK;
337    
338                    if (!_setOriginalCompanyId) {
339                            _setOriginalCompanyId = true;
340    
341                            _originalCompanyId = _companyId;
342                    }
343    
344                    _companyId = companyId;
345            }
346    
347            public long getOriginalCompanyId() {
348                    return _originalCompanyId;
349            }
350    
351            @Override
352            public long getUserId() {
353                    return _userId;
354            }
355    
356            @Override
357            public void setUserId(long userId) {
358                    _userId = userId;
359            }
360    
361            @Override
362            public String getUserUuid() {
363                    try {
364                            User user = UserLocalServiceUtil.getUserById(getUserId());
365    
366                            return user.getUuid();
367                    }
368                    catch (PortalException pe) {
369                            return StringPool.BLANK;
370                    }
371            }
372    
373            @Override
374            public void setUserUuid(String userUuid) {
375            }
376    
377            @Override
378            public String getUserName() {
379                    if (_userName == null) {
380                            return StringPool.BLANK;
381                    }
382                    else {
383                            return _userName;
384                    }
385            }
386    
387            @Override
388            public void setUserName(String userName) {
389                    _userName = userName;
390            }
391    
392            @Override
393            public Date getCreateDate() {
394                    return _createDate;
395            }
396    
397            @Override
398            public void setCreateDate(Date createDate) {
399                    _createDate = createDate;
400            }
401    
402            @Override
403            public Date getModifiedDate() {
404                    return _modifiedDate;
405            }
406    
407            public boolean hasSetModifiedDate() {
408                    return _setModifiedDate;
409            }
410    
411            @Override
412            public void setModifiedDate(Date modifiedDate) {
413                    _setModifiedDate = true;
414    
415                    _modifiedDate = modifiedDate;
416            }
417    
418            @Override
419            public long getRepositoryId() {
420                    return _repositoryId;
421            }
422    
423            @Override
424            public void setRepositoryId(long repositoryId) {
425                    _columnBitmask |= REPOSITORYID_COLUMN_BITMASK;
426    
427                    if (!_setOriginalRepositoryId) {
428                            _setOriginalRepositoryId = true;
429    
430                            _originalRepositoryId = _repositoryId;
431                    }
432    
433                    _repositoryId = repositoryId;
434            }
435    
436            public long getOriginalRepositoryId() {
437                    return _originalRepositoryId;
438            }
439    
440            @Override
441            public String getMappedId() {
442                    if (_mappedId == null) {
443                            return StringPool.BLANK;
444                    }
445                    else {
446                            return _mappedId;
447                    }
448            }
449    
450            @Override
451            public void setMappedId(String mappedId) {
452                    _columnBitmask |= MAPPEDID_COLUMN_BITMASK;
453    
454                    if (_originalMappedId == null) {
455                            _originalMappedId = _mappedId;
456                    }
457    
458                    _mappedId = mappedId;
459            }
460    
461            public String getOriginalMappedId() {
462                    return GetterUtil.getString(_originalMappedId);
463            }
464    
465            @Override
466            public boolean getManualCheckInRequired() {
467                    return _manualCheckInRequired;
468            }
469    
470            @Override
471            public boolean isManualCheckInRequired() {
472                    return _manualCheckInRequired;
473            }
474    
475            @Override
476            public void setManualCheckInRequired(boolean manualCheckInRequired) {
477                    _manualCheckInRequired = manualCheckInRequired;
478            }
479    
480            @Override
481            public Date getLastPublishDate() {
482                    return _lastPublishDate;
483            }
484    
485            @Override
486            public void setLastPublishDate(Date lastPublishDate) {
487                    _lastPublishDate = lastPublishDate;
488            }
489    
490            @Override
491            public StagedModelType getStagedModelType() {
492                    return new StagedModelType(PortalUtil.getClassNameId(
493                                    RepositoryEntry.class.getName()));
494            }
495    
496            public long getColumnBitmask() {
497                    return _columnBitmask;
498            }
499    
500            @Override
501            public ExpandoBridge getExpandoBridge() {
502                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
503                            RepositoryEntry.class.getName(), getPrimaryKey());
504            }
505    
506            @Override
507            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
508                    ExpandoBridge expandoBridge = getExpandoBridge();
509    
510                    expandoBridge.setAttributes(serviceContext);
511            }
512    
513            @Override
514            public RepositoryEntry toEscapedModel() {
515                    if (_escapedModel == null) {
516                            _escapedModel = (RepositoryEntry)ProxyUtil.newProxyInstance(_classLoader,
517                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
518                    }
519    
520                    return _escapedModel;
521            }
522    
523            @Override
524            public Object clone() {
525                    RepositoryEntryImpl repositoryEntryImpl = new RepositoryEntryImpl();
526    
527                    repositoryEntryImpl.setMvccVersion(getMvccVersion());
528                    repositoryEntryImpl.setUuid(getUuid());
529                    repositoryEntryImpl.setRepositoryEntryId(getRepositoryEntryId());
530                    repositoryEntryImpl.setGroupId(getGroupId());
531                    repositoryEntryImpl.setCompanyId(getCompanyId());
532                    repositoryEntryImpl.setUserId(getUserId());
533                    repositoryEntryImpl.setUserName(getUserName());
534                    repositoryEntryImpl.setCreateDate(getCreateDate());
535                    repositoryEntryImpl.setModifiedDate(getModifiedDate());
536                    repositoryEntryImpl.setRepositoryId(getRepositoryId());
537                    repositoryEntryImpl.setMappedId(getMappedId());
538                    repositoryEntryImpl.setManualCheckInRequired(getManualCheckInRequired());
539                    repositoryEntryImpl.setLastPublishDate(getLastPublishDate());
540    
541                    repositoryEntryImpl.resetOriginalValues();
542    
543                    return repositoryEntryImpl;
544            }
545    
546            @Override
547            public int compareTo(RepositoryEntry repositoryEntry) {
548                    long primaryKey = repositoryEntry.getPrimaryKey();
549    
550                    if (getPrimaryKey() < primaryKey) {
551                            return -1;
552                    }
553                    else if (getPrimaryKey() > primaryKey) {
554                            return 1;
555                    }
556                    else {
557                            return 0;
558                    }
559            }
560    
561            @Override
562            public boolean equals(Object obj) {
563                    if (this == obj) {
564                            return true;
565                    }
566    
567                    if (!(obj instanceof RepositoryEntry)) {
568                            return false;
569                    }
570    
571                    RepositoryEntry repositoryEntry = (RepositoryEntry)obj;
572    
573                    long primaryKey = repositoryEntry.getPrimaryKey();
574    
575                    if (getPrimaryKey() == primaryKey) {
576                            return true;
577                    }
578                    else {
579                            return false;
580                    }
581            }
582    
583            @Override
584            public int hashCode() {
585                    return (int)getPrimaryKey();
586            }
587    
588            @Override
589            public boolean isEntityCacheEnabled() {
590                    return ENTITY_CACHE_ENABLED;
591            }
592    
593            @Override
594            public boolean isFinderCacheEnabled() {
595                    return FINDER_CACHE_ENABLED;
596            }
597    
598            @Override
599            public void resetOriginalValues() {
600                    RepositoryEntryModelImpl repositoryEntryModelImpl = this;
601    
602                    repositoryEntryModelImpl._originalUuid = repositoryEntryModelImpl._uuid;
603    
604                    repositoryEntryModelImpl._originalGroupId = repositoryEntryModelImpl._groupId;
605    
606                    repositoryEntryModelImpl._setOriginalGroupId = false;
607    
608                    repositoryEntryModelImpl._originalCompanyId = repositoryEntryModelImpl._companyId;
609    
610                    repositoryEntryModelImpl._setOriginalCompanyId = false;
611    
612                    repositoryEntryModelImpl._setModifiedDate = false;
613    
614                    repositoryEntryModelImpl._originalRepositoryId = repositoryEntryModelImpl._repositoryId;
615    
616                    repositoryEntryModelImpl._setOriginalRepositoryId = false;
617    
618                    repositoryEntryModelImpl._originalMappedId = repositoryEntryModelImpl._mappedId;
619    
620                    repositoryEntryModelImpl._columnBitmask = 0;
621            }
622    
623            @Override
624            public CacheModel<RepositoryEntry> toCacheModel() {
625                    RepositoryEntryCacheModel repositoryEntryCacheModel = new RepositoryEntryCacheModel();
626    
627                    repositoryEntryCacheModel.mvccVersion = getMvccVersion();
628    
629                    repositoryEntryCacheModel.uuid = getUuid();
630    
631                    String uuid = repositoryEntryCacheModel.uuid;
632    
633                    if ((uuid != null) && (uuid.length() == 0)) {
634                            repositoryEntryCacheModel.uuid = null;
635                    }
636    
637                    repositoryEntryCacheModel.repositoryEntryId = getRepositoryEntryId();
638    
639                    repositoryEntryCacheModel.groupId = getGroupId();
640    
641                    repositoryEntryCacheModel.companyId = getCompanyId();
642    
643                    repositoryEntryCacheModel.userId = getUserId();
644    
645                    repositoryEntryCacheModel.userName = getUserName();
646    
647                    String userName = repositoryEntryCacheModel.userName;
648    
649                    if ((userName != null) && (userName.length() == 0)) {
650                            repositoryEntryCacheModel.userName = null;
651                    }
652    
653                    Date createDate = getCreateDate();
654    
655                    if (createDate != null) {
656                            repositoryEntryCacheModel.createDate = createDate.getTime();
657                    }
658                    else {
659                            repositoryEntryCacheModel.createDate = Long.MIN_VALUE;
660                    }
661    
662                    Date modifiedDate = getModifiedDate();
663    
664                    if (modifiedDate != null) {
665                            repositoryEntryCacheModel.modifiedDate = modifiedDate.getTime();
666                    }
667                    else {
668                            repositoryEntryCacheModel.modifiedDate = Long.MIN_VALUE;
669                    }
670    
671                    repositoryEntryCacheModel.repositoryId = getRepositoryId();
672    
673                    repositoryEntryCacheModel.mappedId = getMappedId();
674    
675                    String mappedId = repositoryEntryCacheModel.mappedId;
676    
677                    if ((mappedId != null) && (mappedId.length() == 0)) {
678                            repositoryEntryCacheModel.mappedId = null;
679                    }
680    
681                    repositoryEntryCacheModel.manualCheckInRequired = getManualCheckInRequired();
682    
683                    Date lastPublishDate = getLastPublishDate();
684    
685                    if (lastPublishDate != null) {
686                            repositoryEntryCacheModel.lastPublishDate = lastPublishDate.getTime();
687                    }
688                    else {
689                            repositoryEntryCacheModel.lastPublishDate = Long.MIN_VALUE;
690                    }
691    
692                    return repositoryEntryCacheModel;
693            }
694    
695            @Override
696            public String toString() {
697                    StringBundler sb = new StringBundler(27);
698    
699                    sb.append("{mvccVersion=");
700                    sb.append(getMvccVersion());
701                    sb.append(", uuid=");
702                    sb.append(getUuid());
703                    sb.append(", repositoryEntryId=");
704                    sb.append(getRepositoryEntryId());
705                    sb.append(", groupId=");
706                    sb.append(getGroupId());
707                    sb.append(", companyId=");
708                    sb.append(getCompanyId());
709                    sb.append(", userId=");
710                    sb.append(getUserId());
711                    sb.append(", userName=");
712                    sb.append(getUserName());
713                    sb.append(", createDate=");
714                    sb.append(getCreateDate());
715                    sb.append(", modifiedDate=");
716                    sb.append(getModifiedDate());
717                    sb.append(", repositoryId=");
718                    sb.append(getRepositoryId());
719                    sb.append(", mappedId=");
720                    sb.append(getMappedId());
721                    sb.append(", manualCheckInRequired=");
722                    sb.append(getManualCheckInRequired());
723                    sb.append(", lastPublishDate=");
724                    sb.append(getLastPublishDate());
725                    sb.append("}");
726    
727                    return sb.toString();
728            }
729    
730            @Override
731            public String toXmlString() {
732                    StringBundler sb = new StringBundler(43);
733    
734                    sb.append("<model><model-name>");
735                    sb.append("com.liferay.portal.model.RepositoryEntry");
736                    sb.append("</model-name>");
737    
738                    sb.append(
739                            "<column><column-name>mvccVersion</column-name><column-value><![CDATA[");
740                    sb.append(getMvccVersion());
741                    sb.append("]]></column-value></column>");
742                    sb.append(
743                            "<column><column-name>uuid</column-name><column-value><![CDATA[");
744                    sb.append(getUuid());
745                    sb.append("]]></column-value></column>");
746                    sb.append(
747                            "<column><column-name>repositoryEntryId</column-name><column-value><![CDATA[");
748                    sb.append(getRepositoryEntryId());
749                    sb.append("]]></column-value></column>");
750                    sb.append(
751                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
752                    sb.append(getGroupId());
753                    sb.append("]]></column-value></column>");
754                    sb.append(
755                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
756                    sb.append(getCompanyId());
757                    sb.append("]]></column-value></column>");
758                    sb.append(
759                            "<column><column-name>userId</column-name><column-value><![CDATA[");
760                    sb.append(getUserId());
761                    sb.append("]]></column-value></column>");
762                    sb.append(
763                            "<column><column-name>userName</column-name><column-value><![CDATA[");
764                    sb.append(getUserName());
765                    sb.append("]]></column-value></column>");
766                    sb.append(
767                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
768                    sb.append(getCreateDate());
769                    sb.append("]]></column-value></column>");
770                    sb.append(
771                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
772                    sb.append(getModifiedDate());
773                    sb.append("]]></column-value></column>");
774                    sb.append(
775                            "<column><column-name>repositoryId</column-name><column-value><![CDATA[");
776                    sb.append(getRepositoryId());
777                    sb.append("]]></column-value></column>");
778                    sb.append(
779                            "<column><column-name>mappedId</column-name><column-value><![CDATA[");
780                    sb.append(getMappedId());
781                    sb.append("]]></column-value></column>");
782                    sb.append(
783                            "<column><column-name>manualCheckInRequired</column-name><column-value><![CDATA[");
784                    sb.append(getManualCheckInRequired());
785                    sb.append("]]></column-value></column>");
786                    sb.append(
787                            "<column><column-name>lastPublishDate</column-name><column-value><![CDATA[");
788                    sb.append(getLastPublishDate());
789                    sb.append("]]></column-value></column>");
790    
791                    sb.append("</model>");
792    
793                    return sb.toString();
794            }
795    
796            private static final ClassLoader _classLoader = RepositoryEntry.class.getClassLoader();
797            private static final Class<?>[] _escapedModelInterfaces = new Class[] {
798                            RepositoryEntry.class
799                    };
800            private long _mvccVersion;
801            private String _uuid;
802            private String _originalUuid;
803            private long _repositoryEntryId;
804            private long _groupId;
805            private long _originalGroupId;
806            private boolean _setOriginalGroupId;
807            private long _companyId;
808            private long _originalCompanyId;
809            private boolean _setOriginalCompanyId;
810            private long _userId;
811            private String _userName;
812            private Date _createDate;
813            private Date _modifiedDate;
814            private boolean _setModifiedDate;
815            private long _repositoryId;
816            private long _originalRepositoryId;
817            private boolean _setOriginalRepositoryId;
818            private String _mappedId;
819            private String _originalMappedId;
820            private boolean _manualCheckInRequired;
821            private Date _lastPublishDate;
822            private long _columnBitmask;
823            private RepositoryEntry _escapedModel;
824    }