1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="AccountSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portal.service.http.AccountServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portal.service.http.AccountServiceSoap
47   *
48   */
49  public class AccountSoap implements Serializable {
50      public static AccountSoap toSoapModel(Account model) {
51          AccountSoap soapModel = new AccountSoap();
52  
53          soapModel.setAccountId(model.getAccountId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setParentAccountId(model.getParentAccountId());
60          soapModel.setName(model.getName());
61          soapModel.setLegalName(model.getLegalName());
62          soapModel.setLegalId(model.getLegalId());
63          soapModel.setLegalType(model.getLegalType());
64          soapModel.setSicCode(model.getSicCode());
65          soapModel.setTickerSymbol(model.getTickerSymbol());
66          soapModel.setIndustry(model.getIndustry());
67          soapModel.setType(model.getType());
68          soapModel.setSize(model.getSize());
69  
70          return soapModel;
71      }
72  
73      public static AccountSoap[] toSoapModels(List<Account> models) {
74          List<AccountSoap> soapModels = new ArrayList<AccountSoap>(models.size());
75  
76          for (Account model : models) {
77              soapModels.add(toSoapModel(model));
78          }
79  
80          return soapModels.toArray(new AccountSoap[soapModels.size()]);
81      }
82  
83      public AccountSoap() {
84      }
85  
86      public long getPrimaryKey() {
87          return _accountId;
88      }
89  
90      public void setPrimaryKey(long pk) {
91          setAccountId(pk);
92      }
93  
94      public long getAccountId() {
95          return _accountId;
96      }
97  
98      public void setAccountId(long accountId) {
99          _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 }