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