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