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