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