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="PhoneSoap.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.PhoneServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.PhoneServiceSoap
045: *
046: */
047: public class PhoneSoap implements Serializable {
048: public static PhoneSoap toSoapModel(Phone model) {
049: PhoneSoap soapModel = new PhoneSoap();
050:
051: soapModel.setPhoneId(model.getPhoneId());
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.setNumber(model.getNumber());
060: soapModel.setExtension(model.getExtension());
061: soapModel.setTypeId(model.getTypeId());
062: soapModel.setPrimary(model.getPrimary());
063:
064: return soapModel;
065: }
066:
067: public static PhoneSoap[] toSoapModels(List models) {
068: List soapModels = new ArrayList(models.size());
069:
070: for (int i = 0; i < models.size(); i++) {
071: Phone model = (Phone) models.get(i);
072:
073: soapModels.add(toSoapModel(model));
074: }
075:
076: return (PhoneSoap[]) soapModels.toArray(new PhoneSoap[0]);
077: }
078:
079: public PhoneSoap() {
080: }
081:
082: public long getPrimaryKey() {
083: return _phoneId;
084: }
085:
086: public void setPrimaryKey(long pk) {
087: setPhoneId(pk);
088: }
089:
090: public long getPhoneId() {
091: return _phoneId;
092: }
093:
094: public void setPhoneId(long phoneId) {
095: _phoneId = phoneId;
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 getNumber() {
155: return _number;
156: }
157:
158: public void setNumber(String number) {
159: _number = number;
160: }
161:
162: public String getExtension() {
163: return _extension;
164: }
165:
166: public void setExtension(String extension) {
167: _extension = extension;
168: }
169:
170: public int getTypeId() {
171: return _typeId;
172: }
173:
174: public void setTypeId(int typeId) {
175: _typeId = typeId;
176: }
177:
178: public boolean getPrimary() {
179: return _primary;
180: }
181:
182: public boolean isPrimary() {
183: return _primary;
184: }
185:
186: public void setPrimary(boolean primary) {
187: _primary = primary;
188: }
189:
190: private long _phoneId;
191: private long _companyId;
192: private long _userId;
193: private String _userName;
194: private Date _createDate;
195: private Date _modifiedDate;
196: private long _classNameId;
197: private long _classPK;
198: private String _number;
199: private String _extension;
200: private int _typeId;
201: private boolean _primary;
202: }
|