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="AccountSoap.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.AccountServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.AccountServiceSoap
045: *
046: */
047: public class AccountSoap implements Serializable {
048: public static AccountSoap toSoapModel(Account model) {
049: AccountSoap soapModel = new AccountSoap();
050:
051: soapModel.setAccountId(model.getAccountId());
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.setParentAccountId(model.getParentAccountId());
058: soapModel.setName(model.getName());
059: soapModel.setLegalName(model.getLegalName());
060: soapModel.setLegalId(model.getLegalId());
061: soapModel.setLegalType(model.getLegalType());
062: soapModel.setSicCode(model.getSicCode());
063: soapModel.setTickerSymbol(model.getTickerSymbol());
064: soapModel.setIndustry(model.getIndustry());
065: soapModel.setType(model.getType());
066: soapModel.setSize(model.getSize());
067:
068: return soapModel;
069: }
070:
071: public static AccountSoap[] toSoapModels(List models) {
072: List soapModels = new ArrayList(models.size());
073:
074: for (int i = 0; i < models.size(); i++) {
075: Account model = (Account) models.get(i);
076:
077: soapModels.add(toSoapModel(model));
078: }
079:
080: return (AccountSoap[]) soapModels.toArray(new AccountSoap[0]);
081: }
082:
083: public AccountSoap() {
084: }
085:
086: public long getPrimaryKey() {
087: return _accountId;
088: }
089:
090: public void setPrimaryKey(long pk) {
091: setAccountId(pk);
092: }
093:
094: public long getAccountId() {
095: return _accountId;
096: }
097:
098: public void setAccountId(long accountId) {
099: _accountId = accountId;
100: }
101:
102: public long getCompanyId() {
103: return _companyId;
104: }
105:
106: public void setCompanyId(long companyId) {
107: _companyId = companyId;
108: }
109:
110: public long getUserId() {
111: return _userId;
112: }
113:
114: public void setUserId(long userId) {
115: _userId = userId;
116: }
117:
118: public String getUserName() {
119: return _userName;
120: }
121:
122: public void setUserName(String userName) {
123: _userName = userName;
124: }
125:
126: public Date getCreateDate() {
127: return _createDate;
128: }
129:
130: public void setCreateDate(Date createDate) {
131: _createDate = createDate;
132: }
133:
134: public Date getModifiedDate() {
135: return _modifiedDate;
136: }
137:
138: public void setModifiedDate(Date modifiedDate) {
139: _modifiedDate = modifiedDate;
140: }
141:
142: public long getParentAccountId() {
143: return _parentAccountId;
144: }
145:
146: public void setParentAccountId(long parentAccountId) {
147: _parentAccountId = parentAccountId;
148: }
149:
150: public String getName() {
151: return _name;
152: }
153:
154: public void setName(String name) {
155: _name = name;
156: }
157:
158: public String getLegalName() {
159: return _legalName;
160: }
161:
162: public void setLegalName(String legalName) {
163: _legalName = legalName;
164: }
165:
166: public String getLegalId() {
167: return _legalId;
168: }
169:
170: public void setLegalId(String legalId) {
171: _legalId = legalId;
172: }
173:
174: public String getLegalType() {
175: return _legalType;
176: }
177:
178: public void setLegalType(String legalType) {
179: _legalType = legalType;
180: }
181:
182: public String getSicCode() {
183: return _sicCode;
184: }
185:
186: public void setSicCode(String sicCode) {
187: _sicCode = sicCode;
188: }
189:
190: public String getTickerSymbol() {
191: return _tickerSymbol;
192: }
193:
194: public void setTickerSymbol(String tickerSymbol) {
195: _tickerSymbol = tickerSymbol;
196: }
197:
198: public String getIndustry() {
199: return _industry;
200: }
201:
202: public void setIndustry(String industry) {
203: _industry = industry;
204: }
205:
206: public String getType() {
207: return _type;
208: }
209:
210: public void setType(String type) {
211: _type = type;
212: }
213:
214: public String getSize() {
215: return _size;
216: }
217:
218: public void setSize(String size) {
219: _size = size;
220: }
221:
222: private long _accountId;
223: private long _companyId;
224: private long _userId;
225: private String _userName;
226: private Date _createDate;
227: private Date _modifiedDate;
228: private long _parentAccountId;
229: private String _name;
230: private String _legalName;
231: private String _legalId;
232: private String _legalType;
233: private String _sicCode;
234: private String _tickerSymbol;
235: private String _industry;
236: private String _type;
237: private String _size;
238: }
|