001    /**
002     * Copyright (c) 2000-2011 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.messageboards.model.impl;
016    
017    import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.util.GetterUtil;
020    import com.liferay.portal.kernel.util.StringBundler;
021    import com.liferay.portal.kernel.util.StringPool;
022    import com.liferay.portal.model.impl.BaseModelImpl;
023    import com.liferay.portal.service.ServiceContext;
024    import com.liferay.portal.util.PortalUtil;
025    
026    import com.liferay.portlet.expando.model.ExpandoBridge;
027    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
028    import com.liferay.portlet.messageboards.model.MBMailingList;
029    import com.liferay.portlet.messageboards.model.MBMailingListModel;
030    
031    import java.io.Serializable;
032    
033    import java.lang.reflect.Proxy;
034    
035    import java.sql.Types;
036    
037    import java.util.Date;
038    
039    /**
040     * The base model implementation for the MBMailingList service. Represents a row in the "MBMailingList" database table, with each column mapped to a property of this class.
041     *
042     * <p>
043     * This implementation and its corresponding interface {@link com.liferay.portlet.messageboards.model.MBMailingListModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link MBMailingListImpl}.
044     * </p>
045     *
046     * <p>
047     * Never modify or reference this class directly. All methods that expect a message boards mailing list model instance should use the {@link com.liferay.portlet.messageboards.model.MBMailingList} interface instead.
048     * </p>
049     *
050     * @author Brian Wing Shun Chan
051     * @see MBMailingListImpl
052     * @see com.liferay.portlet.messageboards.model.MBMailingList
053     * @see com.liferay.portlet.messageboards.model.MBMailingListModel
054     * @generated
055     */
056    public class MBMailingListModelImpl extends BaseModelImpl<MBMailingList>
057            implements MBMailingListModel {
058            public static final String TABLE_NAME = "MBMailingList";
059            public static final Object[][] TABLE_COLUMNS = {
060                            { "uuid_", new Integer(Types.VARCHAR) },
061                            { "mailingListId", new Integer(Types.BIGINT) },
062                            { "groupId", new Integer(Types.BIGINT) },
063                            { "companyId", new Integer(Types.BIGINT) },
064                            { "userId", new Integer(Types.BIGINT) },
065                            { "userName", new Integer(Types.VARCHAR) },
066                            { "createDate", new Integer(Types.TIMESTAMP) },
067                            { "modifiedDate", new Integer(Types.TIMESTAMP) },
068                            { "categoryId", new Integer(Types.BIGINT) },
069                            { "emailAddress", new Integer(Types.VARCHAR) },
070                            { "inProtocol", new Integer(Types.VARCHAR) },
071                            { "inServerName", new Integer(Types.VARCHAR) },
072                            { "inServerPort", new Integer(Types.INTEGER) },
073                            { "inUseSSL", new Integer(Types.BOOLEAN) },
074                            { "inUserName", new Integer(Types.VARCHAR) },
075                            { "inPassword", new Integer(Types.VARCHAR) },
076                            { "inReadInterval", new Integer(Types.INTEGER) },
077                            { "outEmailAddress", new Integer(Types.VARCHAR) },
078                            { "outCustom", new Integer(Types.BOOLEAN) },
079                            { "outServerName", new Integer(Types.VARCHAR) },
080                            { "outServerPort", new Integer(Types.INTEGER) },
081                            { "outUseSSL", new Integer(Types.BOOLEAN) },
082                            { "outUserName", new Integer(Types.VARCHAR) },
083                            { "outPassword", new Integer(Types.VARCHAR) },
084                            { "active_", new Integer(Types.BOOLEAN) }
085                    };
086            public static final String TABLE_SQL_CREATE = "create table MBMailingList (uuid_ VARCHAR(75) null,mailingListId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,categoryId LONG,emailAddress VARCHAR(75) null,inProtocol VARCHAR(75) null,inServerName VARCHAR(75) null,inServerPort INTEGER,inUseSSL BOOLEAN,inUserName VARCHAR(75) null,inPassword VARCHAR(75) null,inReadInterval INTEGER,outEmailAddress VARCHAR(75) null,outCustom BOOLEAN,outServerName VARCHAR(75) null,outServerPort INTEGER,outUseSSL BOOLEAN,outUserName VARCHAR(75) null,outPassword VARCHAR(75) null,active_ BOOLEAN)";
087            public static final String TABLE_SQL_DROP = "drop table MBMailingList";
088            public static final String DATA_SOURCE = "liferayDataSource";
089            public static final String SESSION_FACTORY = "liferaySessionFactory";
090            public static final String TX_MANAGER = "liferayTransactionManager";
091            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
092                                    "value.object.entity.cache.enabled.com.liferay.portlet.messageboards.model.MBMailingList"),
093                            true);
094            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
095                                    "value.object.finder.cache.enabled.com.liferay.portlet.messageboards.model.MBMailingList"),
096                            true);
097            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
098                                    "lock.expiration.time.com.liferay.portlet.messageboards.model.MBMailingList"));
099    
100            public MBMailingListModelImpl() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _mailingListId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setMailingListId(pk);
109            }
110    
111            public Serializable getPrimaryKeyObj() {
112                    return new Long(_mailingListId);
113            }
114    
115            public String getUuid() {
116                    if (_uuid == null) {
117                            return StringPool.BLANK;
118                    }
119                    else {
120                            return _uuid;
121                    }
122            }
123    
124            public void setUuid(String uuid) {
125                    if (_originalUuid == null) {
126                            _originalUuid = _uuid;
127                    }
128    
129                    _uuid = uuid;
130            }
131    
132            public String getOriginalUuid() {
133                    return GetterUtil.getString(_originalUuid);
134            }
135    
136            public long getMailingListId() {
137                    return _mailingListId;
138            }
139    
140            public void setMailingListId(long mailingListId) {
141                    _mailingListId = mailingListId;
142            }
143    
144            public long getGroupId() {
145                    return _groupId;
146            }
147    
148            public void setGroupId(long groupId) {
149                    if (!_setOriginalGroupId) {
150                            _setOriginalGroupId = true;
151    
152                            _originalGroupId = _groupId;
153                    }
154    
155                    _groupId = groupId;
156            }
157    
158            public long getOriginalGroupId() {
159                    return _originalGroupId;
160            }
161    
162            public long getCompanyId() {
163                    return _companyId;
164            }
165    
166            public void setCompanyId(long companyId) {
167                    _companyId = companyId;
168            }
169    
170            public long getUserId() {
171                    return _userId;
172            }
173    
174            public void setUserId(long userId) {
175                    _userId = userId;
176            }
177    
178            public String getUserUuid() throws SystemException {
179                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
180            }
181    
182            public void setUserUuid(String userUuid) {
183                    _userUuid = userUuid;
184            }
185    
186            public String getUserName() {
187                    if (_userName == null) {
188                            return StringPool.BLANK;
189                    }
190                    else {
191                            return _userName;
192                    }
193            }
194    
195            public void setUserName(String userName) {
196                    _userName = userName;
197            }
198    
199            public Date getCreateDate() {
200                    return _createDate;
201            }
202    
203            public void setCreateDate(Date createDate) {
204                    _createDate = createDate;
205            }
206    
207            public Date getModifiedDate() {
208                    return _modifiedDate;
209            }
210    
211            public void setModifiedDate(Date modifiedDate) {
212                    _modifiedDate = modifiedDate;
213            }
214    
215            public long getCategoryId() {
216                    return _categoryId;
217            }
218    
219            public void setCategoryId(long categoryId) {
220                    if (!_setOriginalCategoryId) {
221                            _setOriginalCategoryId = true;
222    
223                            _originalCategoryId = _categoryId;
224                    }
225    
226                    _categoryId = categoryId;
227            }
228    
229            public long getOriginalCategoryId() {
230                    return _originalCategoryId;
231            }
232    
233            public String getEmailAddress() {
234                    if (_emailAddress == null) {
235                            return StringPool.BLANK;
236                    }
237                    else {
238                            return _emailAddress;
239                    }
240            }
241    
242            public void setEmailAddress(String emailAddress) {
243                    _emailAddress = emailAddress;
244            }
245    
246            public String getInProtocol() {
247                    if (_inProtocol == null) {
248                            return StringPool.BLANK;
249                    }
250                    else {
251                            return _inProtocol;
252                    }
253            }
254    
255            public void setInProtocol(String inProtocol) {
256                    _inProtocol = inProtocol;
257            }
258    
259            public String getInServerName() {
260                    if (_inServerName == null) {
261                            return StringPool.BLANK;
262                    }
263                    else {
264                            return _inServerName;
265                    }
266            }
267    
268            public void setInServerName(String inServerName) {
269                    _inServerName = inServerName;
270            }
271    
272            public int getInServerPort() {
273                    return _inServerPort;
274            }
275    
276            public void setInServerPort(int inServerPort) {
277                    _inServerPort = inServerPort;
278            }
279    
280            public boolean getInUseSSL() {
281                    return _inUseSSL;
282            }
283    
284            public boolean isInUseSSL() {
285                    return _inUseSSL;
286            }
287    
288            public void setInUseSSL(boolean inUseSSL) {
289                    _inUseSSL = inUseSSL;
290            }
291    
292            public String getInUserName() {
293                    if (_inUserName == null) {
294                            return StringPool.BLANK;
295                    }
296                    else {
297                            return _inUserName;
298                    }
299            }
300    
301            public void setInUserName(String inUserName) {
302                    _inUserName = inUserName;
303            }
304    
305            public String getInPassword() {
306                    if (_inPassword == null) {
307                            return StringPool.BLANK;
308                    }
309                    else {
310                            return _inPassword;
311                    }
312            }
313    
314            public void setInPassword(String inPassword) {
315                    _inPassword = inPassword;
316            }
317    
318            public int getInReadInterval() {
319                    return _inReadInterval;
320            }
321    
322            public void setInReadInterval(int inReadInterval) {
323                    _inReadInterval = inReadInterval;
324            }
325    
326            public String getOutEmailAddress() {
327                    if (_outEmailAddress == null) {
328                            return StringPool.BLANK;
329                    }
330                    else {
331                            return _outEmailAddress;
332                    }
333            }
334    
335            public void setOutEmailAddress(String outEmailAddress) {
336                    _outEmailAddress = outEmailAddress;
337            }
338    
339            public boolean getOutCustom() {
340                    return _outCustom;
341            }
342    
343            public boolean isOutCustom() {
344                    return _outCustom;
345            }
346    
347            public void setOutCustom(boolean outCustom) {
348                    _outCustom = outCustom;
349            }
350    
351            public String getOutServerName() {
352                    if (_outServerName == null) {
353                            return StringPool.BLANK;
354                    }
355                    else {
356                            return _outServerName;
357                    }
358            }
359    
360            public void setOutServerName(String outServerName) {
361                    _outServerName = outServerName;
362            }
363    
364            public int getOutServerPort() {
365                    return _outServerPort;
366            }
367    
368            public void setOutServerPort(int outServerPort) {
369                    _outServerPort = outServerPort;
370            }
371    
372            public boolean getOutUseSSL() {
373                    return _outUseSSL;
374            }
375    
376            public boolean isOutUseSSL() {
377                    return _outUseSSL;
378            }
379    
380            public void setOutUseSSL(boolean outUseSSL) {
381                    _outUseSSL = outUseSSL;
382            }
383    
384            public String getOutUserName() {
385                    if (_outUserName == null) {
386                            return StringPool.BLANK;
387                    }
388                    else {
389                            return _outUserName;
390                    }
391            }
392    
393            public void setOutUserName(String outUserName) {
394                    _outUserName = outUserName;
395            }
396    
397            public String getOutPassword() {
398                    if (_outPassword == null) {
399                            return StringPool.BLANK;
400                    }
401                    else {
402                            return _outPassword;
403                    }
404            }
405    
406            public void setOutPassword(String outPassword) {
407                    _outPassword = outPassword;
408            }
409    
410            public boolean getActive() {
411                    return _active;
412            }
413    
414            public boolean isActive() {
415                    return _active;
416            }
417    
418            public void setActive(boolean active) {
419                    _active = active;
420            }
421    
422            public MBMailingList toEscapedModel() {
423                    if (isEscapedModel()) {
424                            return (MBMailingList)this;
425                    }
426                    else {
427                            return (MBMailingList)Proxy.newProxyInstance(MBMailingList.class.getClassLoader(),
428                                    new Class[] { MBMailingList.class },
429                                    new AutoEscapeBeanHandler(this));
430                    }
431            }
432    
433            public ExpandoBridge getExpandoBridge() {
434                    if (_expandoBridge == null) {
435                            _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
436                                            MBMailingList.class.getName(), getPrimaryKey());
437                    }
438    
439                    return _expandoBridge;
440            }
441    
442            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
443                    getExpandoBridge().setAttributes(serviceContext);
444            }
445    
446            public Object clone() {
447                    MBMailingListImpl mbMailingListImpl = new MBMailingListImpl();
448    
449                    mbMailingListImpl.setUuid(getUuid());
450    
451                    MBMailingListModelImpl mbMailingListModelImpl = mbMailingListImpl;
452    
453                    mbMailingListModelImpl._originalUuid = mbMailingListModelImpl._uuid;
454    
455                    mbMailingListImpl.setMailingListId(getMailingListId());
456    
457                    mbMailingListImpl.setGroupId(getGroupId());
458    
459                    mbMailingListModelImpl._originalGroupId = mbMailingListModelImpl._groupId;
460    
461                    mbMailingListModelImpl._setOriginalGroupId = false;
462                    mbMailingListImpl.setCompanyId(getCompanyId());
463    
464                    mbMailingListImpl.setUserId(getUserId());
465    
466                    mbMailingListImpl.setUserName(getUserName());
467    
468                    mbMailingListImpl.setCreateDate(getCreateDate());
469    
470                    mbMailingListImpl.setModifiedDate(getModifiedDate());
471    
472                    mbMailingListImpl.setCategoryId(getCategoryId());
473    
474                    mbMailingListModelImpl._originalCategoryId = mbMailingListModelImpl._categoryId;
475    
476                    mbMailingListModelImpl._setOriginalCategoryId = false;
477                    mbMailingListImpl.setEmailAddress(getEmailAddress());
478    
479                    mbMailingListImpl.setInProtocol(getInProtocol());
480    
481                    mbMailingListImpl.setInServerName(getInServerName());
482    
483                    mbMailingListImpl.setInServerPort(getInServerPort());
484    
485                    mbMailingListImpl.setInUseSSL(getInUseSSL());
486    
487                    mbMailingListImpl.setInUserName(getInUserName());
488    
489                    mbMailingListImpl.setInPassword(getInPassword());
490    
491                    mbMailingListImpl.setInReadInterval(getInReadInterval());
492    
493                    mbMailingListImpl.setOutEmailAddress(getOutEmailAddress());
494    
495                    mbMailingListImpl.setOutCustom(getOutCustom());
496    
497                    mbMailingListImpl.setOutServerName(getOutServerName());
498    
499                    mbMailingListImpl.setOutServerPort(getOutServerPort());
500    
501                    mbMailingListImpl.setOutUseSSL(getOutUseSSL());
502    
503                    mbMailingListImpl.setOutUserName(getOutUserName());
504    
505                    mbMailingListImpl.setOutPassword(getOutPassword());
506    
507                    mbMailingListImpl.setActive(getActive());
508    
509                    return mbMailingListImpl;
510            }
511    
512            public int compareTo(MBMailingList mbMailingList) {
513                    long pk = mbMailingList.getPrimaryKey();
514    
515                    if (getPrimaryKey() < pk) {
516                            return -1;
517                    }
518                    else if (getPrimaryKey() > pk) {
519                            return 1;
520                    }
521                    else {
522                            return 0;
523                    }
524            }
525    
526            public boolean equals(Object obj) {
527                    if (obj == null) {
528                            return false;
529                    }
530    
531                    MBMailingList mbMailingList = null;
532    
533                    try {
534                            mbMailingList = (MBMailingList)obj;
535                    }
536                    catch (ClassCastException cce) {
537                            return false;
538                    }
539    
540                    long pk = mbMailingList.getPrimaryKey();
541    
542                    if (getPrimaryKey() == pk) {
543                            return true;
544                    }
545                    else {
546                            return false;
547                    }
548            }
549    
550            public int hashCode() {
551                    return (int)getPrimaryKey();
552            }
553    
554            public String toString() {
555                    StringBundler sb = new StringBundler(51);
556    
557                    sb.append("{uuid=");
558                    sb.append(getUuid());
559                    sb.append(", mailingListId=");
560                    sb.append(getMailingListId());
561                    sb.append(", groupId=");
562                    sb.append(getGroupId());
563                    sb.append(", companyId=");
564                    sb.append(getCompanyId());
565                    sb.append(", userId=");
566                    sb.append(getUserId());
567                    sb.append(", userName=");
568                    sb.append(getUserName());
569                    sb.append(", createDate=");
570                    sb.append(getCreateDate());
571                    sb.append(", modifiedDate=");
572                    sb.append(getModifiedDate());
573                    sb.append(", categoryId=");
574                    sb.append(getCategoryId());
575                    sb.append(", emailAddress=");
576                    sb.append(getEmailAddress());
577                    sb.append(", inProtocol=");
578                    sb.append(getInProtocol());
579                    sb.append(", inServerName=");
580                    sb.append(getInServerName());
581                    sb.append(", inServerPort=");
582                    sb.append(getInServerPort());
583                    sb.append(", inUseSSL=");
584                    sb.append(getInUseSSL());
585                    sb.append(", inUserName=");
586                    sb.append(getInUserName());
587                    sb.append(", inPassword=");
588                    sb.append(getInPassword());
589                    sb.append(", inReadInterval=");
590                    sb.append(getInReadInterval());
591                    sb.append(", outEmailAddress=");
592                    sb.append(getOutEmailAddress());
593                    sb.append(", outCustom=");
594                    sb.append(getOutCustom());
595                    sb.append(", outServerName=");
596                    sb.append(getOutServerName());
597                    sb.append(", outServerPort=");
598                    sb.append(getOutServerPort());
599                    sb.append(", outUseSSL=");
600                    sb.append(getOutUseSSL());
601                    sb.append(", outUserName=");
602                    sb.append(getOutUserName());
603                    sb.append(", outPassword=");
604                    sb.append(getOutPassword());
605                    sb.append(", active=");
606                    sb.append(getActive());
607                    sb.append("}");
608    
609                    return sb.toString();
610            }
611    
612            public String toXmlString() {
613                    StringBundler sb = new StringBundler(79);
614    
615                    sb.append("<model><model-name>");
616                    sb.append("com.liferay.portlet.messageboards.model.MBMailingList");
617                    sb.append("</model-name>");
618    
619                    sb.append(
620                            "<column><column-name>uuid</column-name><column-value><![CDATA[");
621                    sb.append(getUuid());
622                    sb.append("]]></column-value></column>");
623                    sb.append(
624                            "<column><column-name>mailingListId</column-name><column-value><![CDATA[");
625                    sb.append(getMailingListId());
626                    sb.append("]]></column-value></column>");
627                    sb.append(
628                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
629                    sb.append(getGroupId());
630                    sb.append("]]></column-value></column>");
631                    sb.append(
632                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
633                    sb.append(getCompanyId());
634                    sb.append("]]></column-value></column>");
635                    sb.append(
636                            "<column><column-name>userId</column-name><column-value><![CDATA[");
637                    sb.append(getUserId());
638                    sb.append("]]></column-value></column>");
639                    sb.append(
640                            "<column><column-name>userName</column-name><column-value><![CDATA[");
641                    sb.append(getUserName());
642                    sb.append("]]></column-value></column>");
643                    sb.append(
644                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
645                    sb.append(getCreateDate());
646                    sb.append("]]></column-value></column>");
647                    sb.append(
648                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
649                    sb.append(getModifiedDate());
650                    sb.append("]]></column-value></column>");
651                    sb.append(
652                            "<column><column-name>categoryId</column-name><column-value><![CDATA[");
653                    sb.append(getCategoryId());
654                    sb.append("]]></column-value></column>");
655                    sb.append(
656                            "<column><column-name>emailAddress</column-name><column-value><![CDATA[");
657                    sb.append(getEmailAddress());
658                    sb.append("]]></column-value></column>");
659                    sb.append(
660                            "<column><column-name>inProtocol</column-name><column-value><![CDATA[");
661                    sb.append(getInProtocol());
662                    sb.append("]]></column-value></column>");
663                    sb.append(
664                            "<column><column-name>inServerName</column-name><column-value><![CDATA[");
665                    sb.append(getInServerName());
666                    sb.append("]]></column-value></column>");
667                    sb.append(
668                            "<column><column-name>inServerPort</column-name><column-value><![CDATA[");
669                    sb.append(getInServerPort());
670                    sb.append("]]></column-value></column>");
671                    sb.append(
672                            "<column><column-name>inUseSSL</column-name><column-value><![CDATA[");
673                    sb.append(getInUseSSL());
674                    sb.append("]]></column-value></column>");
675                    sb.append(
676                            "<column><column-name>inUserName</column-name><column-value><![CDATA[");
677                    sb.append(getInUserName());
678                    sb.append("]]></column-value></column>");
679                    sb.append(
680                            "<column><column-name>inPassword</column-name><column-value><![CDATA[");
681                    sb.append(getInPassword());
682                    sb.append("]]></column-value></column>");
683                    sb.append(
684                            "<column><column-name>inReadInterval</column-name><column-value><![CDATA[");
685                    sb.append(getInReadInterval());
686                    sb.append("]]></column-value></column>");
687                    sb.append(
688                            "<column><column-name>outEmailAddress</column-name><column-value><![CDATA[");
689                    sb.append(getOutEmailAddress());
690                    sb.append("]]></column-value></column>");
691                    sb.append(
692                            "<column><column-name>outCustom</column-name><column-value><![CDATA[");
693                    sb.append(getOutCustom());
694                    sb.append("]]></column-value></column>");
695                    sb.append(
696                            "<column><column-name>outServerName</column-name><column-value><![CDATA[");
697                    sb.append(getOutServerName());
698                    sb.append("]]></column-value></column>");
699                    sb.append(
700                            "<column><column-name>outServerPort</column-name><column-value><![CDATA[");
701                    sb.append(getOutServerPort());
702                    sb.append("]]></column-value></column>");
703                    sb.append(
704                            "<column><column-name>outUseSSL</column-name><column-value><![CDATA[");
705                    sb.append(getOutUseSSL());
706                    sb.append("]]></column-value></column>");
707                    sb.append(
708                            "<column><column-name>outUserName</column-name><column-value><![CDATA[");
709                    sb.append(getOutUserName());
710                    sb.append("]]></column-value></column>");
711                    sb.append(
712                            "<column><column-name>outPassword</column-name><column-value><![CDATA[");
713                    sb.append(getOutPassword());
714                    sb.append("]]></column-value></column>");
715                    sb.append(
716                            "<column><column-name>active</column-name><column-value><![CDATA[");
717                    sb.append(getActive());
718                    sb.append("]]></column-value></column>");
719    
720                    sb.append("</model>");
721    
722                    return sb.toString();
723            }
724    
725            private String _uuid;
726            private String _originalUuid;
727            private long _mailingListId;
728            private long _groupId;
729            private long _originalGroupId;
730            private boolean _setOriginalGroupId;
731            private long _companyId;
732            private long _userId;
733            private String _userUuid;
734            private String _userName;
735            private Date _createDate;
736            private Date _modifiedDate;
737            private long _categoryId;
738            private long _originalCategoryId;
739            private boolean _setOriginalCategoryId;
740            private String _emailAddress;
741            private String _inProtocol;
742            private String _inServerName;
743            private int _inServerPort;
744            private boolean _inUseSSL;
745            private String _inUserName;
746            private String _inPassword;
747            private int _inReadInterval;
748            private String _outEmailAddress;
749            private boolean _outCustom;
750            private String _outServerName;
751            private int _outServerPort;
752            private boolean _outUseSSL;
753            private String _outUserName;
754            private String _outPassword;
755            private boolean _active;
756            private transient ExpandoBridge _expandoBridge;
757    }