001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="EmailAddressSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.EmailAddressServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.EmailAddressServiceSoap
045: *
046: */
047: public class EmailAddressSoap implements Serializable {
048: public static EmailAddressSoap toSoapModel(EmailAddress model) {
049: EmailAddressSoap soapModel = new EmailAddressSoap();
050:
051: soapModel.setEmailAddressId(model.getEmailAddressId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setClassNameId(model.getClassNameId());
058: soapModel.setClassPK(model.getClassPK());
059: soapModel.setAddress(model.getAddress());
060: soapModel.setTypeId(model.getTypeId());
061: soapModel.setPrimary(model.getPrimary());
062:
063: return soapModel;
064: }
065:
066: public static EmailAddressSoap[] toSoapModels(List models) {
067: List soapModels = new ArrayList(models.size());
068:
069: for (int i = 0; i < models.size(); i++) {
070: EmailAddress model = (EmailAddress) models.get(i);
071:
072: soapModels.add(toSoapModel(model));
073: }
074:
075: return (EmailAddressSoap[]) soapModels
076: .toArray(new EmailAddressSoap[0]);
077: }
078:
079: public EmailAddressSoap() {
080: }
081:
082: public long getPrimaryKey() {
083: return _emailAddressId;
084: }
085:
086: public void setPrimaryKey(long pk) {
087: setEmailAddressId(pk);
088: }
089:
090: public long getEmailAddressId() {
091: return _emailAddressId;
092: }
093:
094: public void setEmailAddressId(long emailAddressId) {
095: _emailAddressId = emailAddressId;
096: }
097:
098: public long getCompanyId() {
099: return _companyId;
100: }
101:
102: public void setCompanyId(long companyId) {
103: _companyId = companyId;
104: }
105:
106: public long getUserId() {
107: return _userId;
108: }
109:
110: public void setUserId(long userId) {
111: _userId = userId;
112: }
113:
114: public String getUserName() {
115: return _userName;
116: }
117:
118: public void setUserName(String userName) {
119: _userName = userName;
120: }
121:
122: public Date getCreateDate() {
123: return _createDate;
124: }
125:
126: public void setCreateDate(Date createDate) {
127: _createDate = createDate;
128: }
129:
130: public Date getModifiedDate() {
131: return _modifiedDate;
132: }
133:
134: public void setModifiedDate(Date modifiedDate) {
135: _modifiedDate = modifiedDate;
136: }
137:
138: public long getClassNameId() {
139: return _classNameId;
140: }
141:
142: public void setClassNameId(long classNameId) {
143: _classNameId = classNameId;
144: }
145:
146: public long getClassPK() {
147: return _classPK;
148: }
149:
150: public void setClassPK(long classPK) {
151: _classPK = classPK;
152: }
153:
154: public String getAddress() {
155: return _address;
156: }
157:
158: public void setAddress(String address) {
159: _address = address;
160: }
161:
162: public int getTypeId() {
163: return _typeId;
164: }
165:
166: public void setTypeId(int typeId) {
167: _typeId = typeId;
168: }
169:
170: public boolean getPrimary() {
171: return _primary;
172: }
173:
174: public boolean isPrimary() {
175: return _primary;
176: }
177:
178: public void setPrimary(boolean primary) {
179: _primary = primary;
180: }
181:
182: private long _emailAddressId;
183: private long _companyId;
184: private long _userId;
185: private String _userName;
186: private Date _createDate;
187: private Date _modifiedDate;
188: private long _classNameId;
189: private long _classPK;
190: private String _address;
191: private int _typeId;
192: private boolean _primary;
193: }
|