1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.model.impl;
16  
17  import com.liferay.portal.kernel.bean.ReadOnlyBeanHandler;
18  import com.liferay.portal.kernel.exception.SystemException;
19  import com.liferay.portal.kernel.util.GetterUtil;
20  import com.liferay.portal.kernel.util.HtmlUtil;
21  import com.liferay.portal.kernel.util.StringBundler;
22  import com.liferay.portal.model.impl.BaseModelImpl;
23  import com.liferay.portal.service.ServiceContext;
24  import com.liferay.portal.util.PortalUtil;
25  
26  import com.liferay.portlet.expando.model.ExpandoBridge;
27  import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
28  import com.liferay.portlet.messageboards.model.MBMailingList;
29  import com.liferay.portlet.messageboards.model.MBMailingListSoap;
30  
31  import java.io.Serializable;
32  
33  import java.lang.reflect.Proxy;
34  
35  import java.sql.Types;
36  
37  import java.util.ArrayList;
38  import java.util.Date;
39  import java.util.List;
40  
41  /**
42   * <a href="MBMailingListModelImpl.java.html"><b><i>View Source</i></b></a>
43   *
44   * <p>
45   * ServiceBuilder generated this class. Modifications in this class will be
46   * overwritten the next time is generated.
47   * </p>
48   *
49   * <p>
50   * This interface is a model that represents the MBMailingList table in the
51   * database.
52   * </p>
53   *
54   * @author    Brian Wing Shun Chan
55   * @see       MBMailingListImpl
56   * @see       com.liferay.portlet.messageboards.model.MBMailingList
57   * @see       com.liferay.portlet.messageboards.model.MBMailingListModel
58   * @generated
59   */
60  public class MBMailingListModelImpl extends BaseModelImpl<MBMailingList> {
61      public static final String TABLE_NAME = "MBMailingList";
62      public static final Object[][] TABLE_COLUMNS = {
63              { "uuid_", new Integer(Types.VARCHAR) },
64              { "mailingListId", new Integer(Types.BIGINT) },
65              { "groupId", new Integer(Types.BIGINT) },
66              { "companyId", new Integer(Types.BIGINT) },
67              { "userId", new Integer(Types.BIGINT) },
68              { "userName", new Integer(Types.VARCHAR) },
69              { "createDate", new Integer(Types.TIMESTAMP) },
70              { "modifiedDate", new Integer(Types.TIMESTAMP) },
71              { "categoryId", new Integer(Types.BIGINT) },
72              { "emailAddress", new Integer(Types.VARCHAR) },
73              { "inProtocol", new Integer(Types.VARCHAR) },
74              { "inServerName", new Integer(Types.VARCHAR) },
75              { "inServerPort", new Integer(Types.INTEGER) },
76              { "inUseSSL", new Integer(Types.BOOLEAN) },
77              { "inUserName", new Integer(Types.VARCHAR) },
78              { "inPassword", new Integer(Types.VARCHAR) },
79              { "inReadInterval", new Integer(Types.INTEGER) },
80              { "outEmailAddress", new Integer(Types.VARCHAR) },
81              { "outCustom", new Integer(Types.BOOLEAN) },
82              { "outServerName", new Integer(Types.VARCHAR) },
83              { "outServerPort", new Integer(Types.INTEGER) },
84              { "outUseSSL", new Integer(Types.BOOLEAN) },
85              { "outUserName", new Integer(Types.VARCHAR) },
86              { "outPassword", new Integer(Types.VARCHAR) },
87              { "active_", new Integer(Types.BOOLEAN) }
88          };
89      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)";
90      public static final String TABLE_SQL_DROP = "drop table MBMailingList";
91      public static final String DATA_SOURCE = "liferayDataSource";
92      public static final String SESSION_FACTORY = "liferaySessionFactory";
93      public static final String TX_MANAGER = "liferayTransactionManager";
94      public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
95                  "value.object.entity.cache.enabled.com.liferay.portlet.messageboards.model.MBMailingList"),
96              true);
97      public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
98                  "value.object.finder.cache.enabled.com.liferay.portlet.messageboards.model.MBMailingList"),
99              true);
100 
101     public static MBMailingList toModel(MBMailingListSoap soapModel) {
102         MBMailingList model = new MBMailingListImpl();
103 
104         model.setUuid(soapModel.getUuid());
105         model.setMailingListId(soapModel.getMailingListId());
106         model.setGroupId(soapModel.getGroupId());
107         model.setCompanyId(soapModel.getCompanyId());
108         model.setUserId(soapModel.getUserId());
109         model.setUserName(soapModel.getUserName());
110         model.setCreateDate(soapModel.getCreateDate());
111         model.setModifiedDate(soapModel.getModifiedDate());
112         model.setCategoryId(soapModel.getCategoryId());
113         model.setEmailAddress(soapModel.getEmailAddress());
114         model.setInProtocol(soapModel.getInProtocol());
115         model.setInServerName(soapModel.getInServerName());
116         model.setInServerPort(soapModel.getInServerPort());
117         model.setInUseSSL(soapModel.getInUseSSL());
118         model.setInUserName(soapModel.getInUserName());
119         model.setInPassword(soapModel.getInPassword());
120         model.setInReadInterval(soapModel.getInReadInterval());
121         model.setOutEmailAddress(soapModel.getOutEmailAddress());
122         model.setOutCustom(soapModel.getOutCustom());
123         model.setOutServerName(soapModel.getOutServerName());
124         model.setOutServerPort(soapModel.getOutServerPort());
125         model.setOutUseSSL(soapModel.getOutUseSSL());
126         model.setOutUserName(soapModel.getOutUserName());
127         model.setOutPassword(soapModel.getOutPassword());
128         model.setActive(soapModel.getActive());
129 
130         return model;
131     }
132 
133     public static List<MBMailingList> toModels(MBMailingListSoap[] soapModels) {
134         List<MBMailingList> models = new ArrayList<MBMailingList>(soapModels.length);
135 
136         for (MBMailingListSoap soapModel : soapModels) {
137             models.add(toModel(soapModel));
138         }
139 
140         return models;
141     }
142 
143     public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
144                 "lock.expiration.time.com.liferay.portlet.messageboards.model.MBMailingList"));
145 
146     public MBMailingListModelImpl() {
147     }
148 
149     public long getPrimaryKey() {
150         return _mailingListId;
151     }
152 
153     public void setPrimaryKey(long pk) {
154         setMailingListId(pk);
155     }
156 
157     public Serializable getPrimaryKeyObj() {
158         return new Long(_mailingListId);
159     }
160 
161     public String getUuid() {
162         return GetterUtil.getString(_uuid);
163     }
164 
165     public void setUuid(String uuid) {
166         _uuid = uuid;
167 
168         if (_originalUuid == null) {
169             _originalUuid = uuid;
170         }
171     }
172 
173     public String getOriginalUuid() {
174         return GetterUtil.getString(_originalUuid);
175     }
176 
177     public long getMailingListId() {
178         return _mailingListId;
179     }
180 
181     public void setMailingListId(long mailingListId) {
182         _mailingListId = mailingListId;
183     }
184 
185     public long getGroupId() {
186         return _groupId;
187     }
188 
189     public void setGroupId(long groupId) {
190         _groupId = groupId;
191 
192         if (!_setOriginalGroupId) {
193             _setOriginalGroupId = true;
194 
195             _originalGroupId = groupId;
196         }
197     }
198 
199     public long getOriginalGroupId() {
200         return _originalGroupId;
201     }
202 
203     public long getCompanyId() {
204         return _companyId;
205     }
206 
207     public void setCompanyId(long companyId) {
208         _companyId = companyId;
209     }
210 
211     public long getUserId() {
212         return _userId;
213     }
214 
215     public void setUserId(long userId) {
216         _userId = userId;
217     }
218 
219     public String getUserUuid() throws SystemException {
220         return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
221     }
222 
223     public void setUserUuid(String userUuid) {
224         _userUuid = userUuid;
225     }
226 
227     public String getUserName() {
228         return GetterUtil.getString(_userName);
229     }
230 
231     public void setUserName(String userName) {
232         _userName = userName;
233     }
234 
235     public Date getCreateDate() {
236         return _createDate;
237     }
238 
239     public void setCreateDate(Date createDate) {
240         _createDate = createDate;
241     }
242 
243     public Date getModifiedDate() {
244         return _modifiedDate;
245     }
246 
247     public void setModifiedDate(Date modifiedDate) {
248         _modifiedDate = modifiedDate;
249     }
250 
251     public long getCategoryId() {
252         return _categoryId;
253     }
254 
255     public void setCategoryId(long categoryId) {
256         _categoryId = categoryId;
257 
258         if (!_setOriginalCategoryId) {
259             _setOriginalCategoryId = true;
260 
261             _originalCategoryId = categoryId;
262         }
263     }
264 
265     public long getOriginalCategoryId() {
266         return _originalCategoryId;
267     }
268 
269     public String getEmailAddress() {
270         return GetterUtil.getString(_emailAddress);
271     }
272 
273     public void setEmailAddress(String emailAddress) {
274         _emailAddress = emailAddress;
275     }
276 
277     public String getInProtocol() {
278         return GetterUtil.getString(_inProtocol);
279     }
280 
281     public void setInProtocol(String inProtocol) {
282         _inProtocol = inProtocol;
283     }
284 
285     public String getInServerName() {
286         return GetterUtil.getString(_inServerName);
287     }
288 
289     public void setInServerName(String inServerName) {
290         _inServerName = inServerName;
291     }
292 
293     public int getInServerPort() {
294         return _inServerPort;
295     }
296 
297     public void setInServerPort(int inServerPort) {
298         _inServerPort = inServerPort;
299     }
300 
301     public boolean getInUseSSL() {
302         return _inUseSSL;
303     }
304 
305     public boolean isInUseSSL() {
306         return _inUseSSL;
307     }
308 
309     public void setInUseSSL(boolean inUseSSL) {
310         _inUseSSL = inUseSSL;
311     }
312 
313     public String getInUserName() {
314         return GetterUtil.getString(_inUserName);
315     }
316 
317     public void setInUserName(String inUserName) {
318         _inUserName = inUserName;
319     }
320 
321     public String getInPassword() {
322         return GetterUtil.getString(_inPassword);
323     }
324 
325     public void setInPassword(String inPassword) {
326         _inPassword = inPassword;
327     }
328 
329     public int getInReadInterval() {
330         return _inReadInterval;
331     }
332 
333     public void setInReadInterval(int inReadInterval) {
334         _inReadInterval = inReadInterval;
335     }
336 
337     public String getOutEmailAddress() {
338         return GetterUtil.getString(_outEmailAddress);
339     }
340 
341     public void setOutEmailAddress(String outEmailAddress) {
342         _outEmailAddress = outEmailAddress;
343     }
344 
345     public boolean getOutCustom() {
346         return _outCustom;
347     }
348 
349     public boolean isOutCustom() {
350         return _outCustom;
351     }
352 
353     public void setOutCustom(boolean outCustom) {
354         _outCustom = outCustom;
355     }
356 
357     public String getOutServerName() {
358         return GetterUtil.getString(_outServerName);
359     }
360 
361     public void setOutServerName(String outServerName) {
362         _outServerName = outServerName;
363     }
364 
365     public int getOutServerPort() {
366         return _outServerPort;
367     }
368 
369     public void setOutServerPort(int outServerPort) {
370         _outServerPort = outServerPort;
371     }
372 
373     public boolean getOutUseSSL() {
374         return _outUseSSL;
375     }
376 
377     public boolean isOutUseSSL() {
378         return _outUseSSL;
379     }
380 
381     public void setOutUseSSL(boolean outUseSSL) {
382         _outUseSSL = outUseSSL;
383     }
384 
385     public String getOutUserName() {
386         return GetterUtil.getString(_outUserName);
387     }
388 
389     public void setOutUserName(String outUserName) {
390         _outUserName = outUserName;
391     }
392 
393     public String getOutPassword() {
394         return GetterUtil.getString(_outPassword);
395     }
396 
397     public void setOutPassword(String outPassword) {
398         _outPassword = outPassword;
399     }
400 
401     public boolean getActive() {
402         return _active;
403     }
404 
405     public boolean isActive() {
406         return _active;
407     }
408 
409     public void setActive(boolean active) {
410         _active = active;
411     }
412 
413     public MBMailingList toEscapedModel() {
414         if (isEscapedModel()) {
415             return (MBMailingList)this;
416         }
417         else {
418             MBMailingList model = new MBMailingListImpl();
419 
420             model.setNew(isNew());
421             model.setEscapedModel(true);
422 
423             model.setUuid(HtmlUtil.escape(getUuid()));
424             model.setMailingListId(getMailingListId());
425             model.setGroupId(getGroupId());
426             model.setCompanyId(getCompanyId());
427             model.setUserId(getUserId());
428             model.setUserName(HtmlUtil.escape(getUserName()));
429             model.setCreateDate(getCreateDate());
430             model.setModifiedDate(getModifiedDate());
431             model.setCategoryId(getCategoryId());
432             model.setEmailAddress(HtmlUtil.escape(getEmailAddress()));
433             model.setInProtocol(HtmlUtil.escape(getInProtocol()));
434             model.setInServerName(HtmlUtil.escape(getInServerName()));
435             model.setInServerPort(getInServerPort());
436             model.setInUseSSL(getInUseSSL());
437             model.setInUserName(HtmlUtil.escape(getInUserName()));
438             model.setInPassword(HtmlUtil.escape(getInPassword()));
439             model.setInReadInterval(getInReadInterval());
440             model.setOutEmailAddress(HtmlUtil.escape(getOutEmailAddress()));
441             model.setOutCustom(getOutCustom());
442             model.setOutServerName(HtmlUtil.escape(getOutServerName()));
443             model.setOutServerPort(getOutServerPort());
444             model.setOutUseSSL(getOutUseSSL());
445             model.setOutUserName(HtmlUtil.escape(getOutUserName()));
446             model.setOutPassword(HtmlUtil.escape(getOutPassword()));
447             model.setActive(getActive());
448 
449             model = (MBMailingList)Proxy.newProxyInstance(MBMailingList.class.getClassLoader(),
450                     new Class[] { MBMailingList.class },
451                     new ReadOnlyBeanHandler(model));
452 
453             return model;
454         }
455     }
456 
457     public ExpandoBridge getExpandoBridge() {
458         if (_expandoBridge == null) {
459             _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
460                     MBMailingList.class.getName(), getPrimaryKey());
461         }
462 
463         return _expandoBridge;
464     }
465 
466     public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
467         getExpandoBridge().setAttributes(serviceContext);
468     }
469 
470     public Object clone() {
471         MBMailingListImpl clone = new MBMailingListImpl();
472 
473         clone.setUuid(getUuid());
474         clone.setMailingListId(getMailingListId());
475         clone.setGroupId(getGroupId());
476         clone.setCompanyId(getCompanyId());
477         clone.setUserId(getUserId());
478         clone.setUserName(getUserName());
479         clone.setCreateDate(getCreateDate());
480         clone.setModifiedDate(getModifiedDate());
481         clone.setCategoryId(getCategoryId());
482         clone.setEmailAddress(getEmailAddress());
483         clone.setInProtocol(getInProtocol());
484         clone.setInServerName(getInServerName());
485         clone.setInServerPort(getInServerPort());
486         clone.setInUseSSL(getInUseSSL());
487         clone.setInUserName(getInUserName());
488         clone.setInPassword(getInPassword());
489         clone.setInReadInterval(getInReadInterval());
490         clone.setOutEmailAddress(getOutEmailAddress());
491         clone.setOutCustom(getOutCustom());
492         clone.setOutServerName(getOutServerName());
493         clone.setOutServerPort(getOutServerPort());
494         clone.setOutUseSSL(getOutUseSSL());
495         clone.setOutUserName(getOutUserName());
496         clone.setOutPassword(getOutPassword());
497         clone.setActive(getActive());
498 
499         return clone;
500     }
501 
502     public int compareTo(MBMailingList mbMailingList) {
503         long pk = mbMailingList.getPrimaryKey();
504 
505         if (getPrimaryKey() < pk) {
506             return -1;
507         }
508         else if (getPrimaryKey() > pk) {
509             return 1;
510         }
511         else {
512             return 0;
513         }
514     }
515 
516     public boolean equals(Object obj) {
517         if (obj == null) {
518             return false;
519         }
520 
521         MBMailingList mbMailingList = null;
522 
523         try {
524             mbMailingList = (MBMailingList)obj;
525         }
526         catch (ClassCastException cce) {
527             return false;
528         }
529 
530         long pk = mbMailingList.getPrimaryKey();
531 
532         if (getPrimaryKey() == pk) {
533             return true;
534         }
535         else {
536             return false;
537         }
538     }
539 
540     public int hashCode() {
541         return (int)getPrimaryKey();
542     }
543 
544     public String toString() {
545         StringBundler sb = new StringBundler(51);
546 
547         sb.append("{uuid=");
548         sb.append(getUuid());
549         sb.append(", mailingListId=");
550         sb.append(getMailingListId());
551         sb.append(", groupId=");
552         sb.append(getGroupId());
553         sb.append(", companyId=");
554         sb.append(getCompanyId());
555         sb.append(", userId=");
556         sb.append(getUserId());
557         sb.append(", userName=");
558         sb.append(getUserName());
559         sb.append(", createDate=");
560         sb.append(getCreateDate());
561         sb.append(", modifiedDate=");
562         sb.append(getModifiedDate());
563         sb.append(", categoryId=");
564         sb.append(getCategoryId());
565         sb.append(", emailAddress=");
566         sb.append(getEmailAddress());
567         sb.append(", inProtocol=");
568         sb.append(getInProtocol());
569         sb.append(", inServerName=");
570         sb.append(getInServerName());
571         sb.append(", inServerPort=");
572         sb.append(getInServerPort());
573         sb.append(", inUseSSL=");
574         sb.append(getInUseSSL());
575         sb.append(", inUserName=");
576         sb.append(getInUserName());
577         sb.append(", inPassword=");
578         sb.append(getInPassword());
579         sb.append(", inReadInterval=");
580         sb.append(getInReadInterval());
581         sb.append(", outEmailAddress=");
582         sb.append(getOutEmailAddress());
583         sb.append(", outCustom=");
584         sb.append(getOutCustom());
585         sb.append(", outServerName=");
586         sb.append(getOutServerName());
587         sb.append(", outServerPort=");
588         sb.append(getOutServerPort());
589         sb.append(", outUseSSL=");
590         sb.append(getOutUseSSL());
591         sb.append(", outUserName=");
592         sb.append(getOutUserName());
593         sb.append(", outPassword=");
594         sb.append(getOutPassword());
595         sb.append(", active=");
596         sb.append(getActive());
597         sb.append("}");
598 
599         return sb.toString();
600     }
601 
602     public String toXmlString() {
603         StringBundler sb = new StringBundler(79);
604 
605         sb.append("<model><model-name>");
606         sb.append("com.liferay.portlet.messageboards.model.MBMailingList");
607         sb.append("</model-name>");
608 
609         sb.append(
610             "<column><column-name>uuid</column-name><column-value><![CDATA[");
611         sb.append(getUuid());
612         sb.append("]]></column-value></column>");
613         sb.append(
614             "<column><column-name>mailingListId</column-name><column-value><![CDATA[");
615         sb.append(getMailingListId());
616         sb.append("]]></column-value></column>");
617         sb.append(
618             "<column><column-name>groupId</column-name><column-value><![CDATA[");
619         sb.append(getGroupId());
620         sb.append("]]></column-value></column>");
621         sb.append(
622             "<column><column-name>companyId</column-name><column-value><![CDATA[");
623         sb.append(getCompanyId());
624         sb.append("]]></column-value></column>");
625         sb.append(
626             "<column><column-name>userId</column-name><column-value><![CDATA[");
627         sb.append(getUserId());
628         sb.append("]]></column-value></column>");
629         sb.append(
630             "<column><column-name>userName</column-name><column-value><![CDATA[");
631         sb.append(getUserName());
632         sb.append("]]></column-value></column>");
633         sb.append(
634             "<column><column-name>createDate</column-name><column-value><![CDATA[");
635         sb.append(getCreateDate());
636         sb.append("]]></column-value></column>");
637         sb.append(
638             "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
639         sb.append(getModifiedDate());
640         sb.append("]]></column-value></column>");
641         sb.append(
642             "<column><column-name>categoryId</column-name><column-value><![CDATA[");
643         sb.append(getCategoryId());
644         sb.append("]]></column-value></column>");
645         sb.append(
646             "<column><column-name>emailAddress</column-name><column-value><![CDATA[");
647         sb.append(getEmailAddress());
648         sb.append("]]></column-value></column>");
649         sb.append(
650             "<column><column-name>inProtocol</column-name><column-value><![CDATA[");
651         sb.append(getInProtocol());
652         sb.append("]]></column-value></column>");
653         sb.append(
654             "<column><column-name>inServerName</column-name><column-value><![CDATA[");
655         sb.append(getInServerName());
656         sb.append("]]></column-value></column>");
657         sb.append(
658             "<column><column-name>inServerPort</column-name><column-value><![CDATA[");
659         sb.append(getInServerPort());
660         sb.append("]]></column-value></column>");
661         sb.append(
662             "<column><column-name>inUseSSL</column-name><column-value><![CDATA[");
663         sb.append(getInUseSSL());
664         sb.append("]]></column-value></column>");
665         sb.append(
666             "<column><column-name>inUserName</column-name><column-value><![CDATA[");
667         sb.append(getInUserName());
668         sb.append("]]></column-value></column>");
669         sb.append(
670             "<column><column-name>inPassword</column-name><column-value><![CDATA[");
671         sb.append(getInPassword());
672         sb.append("]]></column-value></column>");
673         sb.append(
674             "<column><column-name>inReadInterval</column-name><column-value><![CDATA[");
675         sb.append(getInReadInterval());
676         sb.append("]]></column-value></column>");
677         sb.append(
678             "<column><column-name>outEmailAddress</column-name><column-value><![CDATA[");
679         sb.append(getOutEmailAddress());
680         sb.append("]]></column-value></column>");
681         sb.append(
682             "<column><column-name>outCustom</column-name><column-value><![CDATA[");
683         sb.append(getOutCustom());
684         sb.append("]]></column-value></column>");
685         sb.append(
686             "<column><column-name>outServerName</column-name><column-value><![CDATA[");
687         sb.append(getOutServerName());
688         sb.append("]]></column-value></column>");
689         sb.append(
690             "<column><column-name>outServerPort</column-name><column-value><![CDATA[");
691         sb.append(getOutServerPort());
692         sb.append("]]></column-value></column>");
693         sb.append(
694             "<column><column-name>outUseSSL</column-name><column-value><![CDATA[");
695         sb.append(getOutUseSSL());
696         sb.append("]]></column-value></column>");
697         sb.append(
698             "<column><column-name>outUserName</column-name><column-value><![CDATA[");
699         sb.append(getOutUserName());
700         sb.append("]]></column-value></column>");
701         sb.append(
702             "<column><column-name>outPassword</column-name><column-value><![CDATA[");
703         sb.append(getOutPassword());
704         sb.append("]]></column-value></column>");
705         sb.append(
706             "<column><column-name>active</column-name><column-value><![CDATA[");
707         sb.append(getActive());
708         sb.append("]]></column-value></column>");
709 
710         sb.append("</model>");
711 
712         return sb.toString();
713     }
714 
715     private String _uuid;
716     private String _originalUuid;
717     private long _mailingListId;
718     private long _groupId;
719     private long _originalGroupId;
720     private boolean _setOriginalGroupId;
721     private long _companyId;
722     private long _userId;
723     private String _userUuid;
724     private String _userName;
725     private Date _createDate;
726     private Date _modifiedDate;
727     private long _categoryId;
728     private long _originalCategoryId;
729     private boolean _setOriginalCategoryId;
730     private String _emailAddress;
731     private String _inProtocol;
732     private String _inServerName;
733     private int _inServerPort;
734     private boolean _inUseSSL;
735     private String _inUserName;
736     private String _inPassword;
737     private int _inReadInterval;
738     private String _outEmailAddress;
739     private boolean _outCustom;
740     private String _outServerName;
741     private int _outServerPort;
742     private boolean _outUseSSL;
743     private String _outUserName;
744     private String _outPassword;
745     private boolean _active;
746     private transient ExpandoBridge _expandoBridge;
747 }