1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="AccountSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portal.service.http.AccountServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portal.service.http.AccountServiceSoap
38   * @generated
39   */
40  public class AccountSoap implements Serializable {
41      public static AccountSoap toSoapModel(Account model) {
42          AccountSoap soapModel = new AccountSoap();
43  
44          soapModel.setAccountId(model.getAccountId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setUserId(model.getUserId());
47          soapModel.setUserName(model.getUserName());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setModifiedDate(model.getModifiedDate());
50          soapModel.setParentAccountId(model.getParentAccountId());
51          soapModel.setName(model.getName());
52          soapModel.setLegalName(model.getLegalName());
53          soapModel.setLegalId(model.getLegalId());
54          soapModel.setLegalType(model.getLegalType());
55          soapModel.setSicCode(model.getSicCode());
56          soapModel.setTickerSymbol(model.getTickerSymbol());
57          soapModel.setIndustry(model.getIndustry());
58          soapModel.setType(model.getType());
59          soapModel.setSize(model.getSize());
60  
61          return soapModel;
62      }
63  
64      public static AccountSoap[] toSoapModels(Account[] models) {
65          AccountSoap[] soapModels = new AccountSoap[models.length];
66  
67          for (int i = 0; i < models.length; i++) {
68              soapModels[i] = toSoapModel(models[i]);
69          }
70  
71          return soapModels;
72      }
73  
74      public static AccountSoap[][] toSoapModels(Account[][] models) {
75          AccountSoap[][] soapModels = null;
76  
77          if (models.length > 0) {
78              soapModels = new AccountSoap[models.length][models[0].length];
79          }
80          else {
81              soapModels = new AccountSoap[0][0];
82          }
83  
84          for (int i = 0; i < models.length; i++) {
85              soapModels[i] = toSoapModels(models[i]);
86          }
87  
88          return soapModels;
89      }
90  
91      public static AccountSoap[] toSoapModels(List<Account> models) {
92          List<AccountSoap> soapModels = new ArrayList<AccountSoap>(models.size());
93  
94          for (Account model : models) {
95              soapModels.add(toSoapModel(model));
96          }
97  
98          return soapModels.toArray(new AccountSoap[soapModels.size()]);
99      }
100 
101     public AccountSoap() {
102     }
103 
104     public long getPrimaryKey() {
105         return _accountId;
106     }
107 
108     public void setPrimaryKey(long pk) {
109         setAccountId(pk);
110     }
111 
112     public long getAccountId() {
113         return _accountId;
114     }
115 
116     public void setAccountId(long accountId) {
117         _accountId = accountId;
118     }
119 
120     public long getCompanyId() {
121         return _companyId;
122     }
123 
124     public void setCompanyId(long companyId) {
125         _companyId = companyId;
126     }
127 
128     public long getUserId() {
129         return _userId;
130     }
131 
132     public void setUserId(long userId) {
133         _userId = userId;
134     }
135 
136     public String getUserName() {
137         return _userName;
138     }
139 
140     public void setUserName(String userName) {
141         _userName = userName;
142     }
143 
144     public Date getCreateDate() {
145         return _createDate;
146     }
147 
148     public void setCreateDate(Date createDate) {
149         _createDate = createDate;
150     }
151 
152     public Date getModifiedDate() {
153         return _modifiedDate;
154     }
155 
156     public void setModifiedDate(Date modifiedDate) {
157         _modifiedDate = modifiedDate;
158     }
159 
160     public long getParentAccountId() {
161         return _parentAccountId;
162     }
163 
164     public void setParentAccountId(long parentAccountId) {
165         _parentAccountId = parentAccountId;
166     }
167 
168     public String getName() {
169         return _name;
170     }
171 
172     public void setName(String name) {
173         _name = name;
174     }
175 
176     public String getLegalName() {
177         return _legalName;
178     }
179 
180     public void setLegalName(String legalName) {
181         _legalName = legalName;
182     }
183 
184     public String getLegalId() {
185         return _legalId;
186     }
187 
188     public void setLegalId(String legalId) {
189         _legalId = legalId;
190     }
191 
192     public String getLegalType() {
193         return _legalType;
194     }
195 
196     public void setLegalType(String legalType) {
197         _legalType = legalType;
198     }
199 
200     public String getSicCode() {
201         return _sicCode;
202     }
203 
204     public void setSicCode(String sicCode) {
205         _sicCode = sicCode;
206     }
207 
208     public String getTickerSymbol() {
209         return _tickerSymbol;
210     }
211 
212     public void setTickerSymbol(String tickerSymbol) {
213         _tickerSymbol = tickerSymbol;
214     }
215 
216     public String getIndustry() {
217         return _industry;
218     }
219 
220     public void setIndustry(String industry) {
221         _industry = industry;
222     }
223 
224     public String getType() {
225         return _type;
226     }
227 
228     public void setType(String type) {
229         _type = type;
230     }
231 
232     public String getSize() {
233         return _size;
234     }
235 
236     public void setSize(String size) {
237         _size = size;
238     }
239 
240     private long _accountId;
241     private long _companyId;
242     private long _userId;
243     private String _userName;
244     private Date _createDate;
245     private Date _modifiedDate;
246     private long _parentAccountId;
247     private String _name;
248     private String _legalName;
249     private String _legalId;
250     private String _legalType;
251     private String _sicCode;
252     private String _tickerSymbol;
253     private String _industry;
254     private String _type;
255     private String _size;
256 }