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