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