1   /**
2    * Copyright (c) 2000-2007 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 overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portal.service.http.AccountServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.AccountServiceSoap
46   *
47   */
48  public class AccountSoap implements Serializable {
49      public static AccountSoap toSoapModel(Account model) {
50          AccountSoap soapModel = new AccountSoap();
51          soapModel.setAccountId(model.getAccountId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setUserName(model.getUserName());
55          soapModel.setCreateDate(model.getCreateDate());
56          soapModel.setModifiedDate(model.getModifiedDate());
57          soapModel.setParentAccountId(model.getParentAccountId());
58          soapModel.setName(model.getName());
59          soapModel.setLegalName(model.getLegalName());
60          soapModel.setLegalId(model.getLegalId());
61          soapModel.setLegalType(model.getLegalType());
62          soapModel.setSicCode(model.getSicCode());
63          soapModel.setTickerSymbol(model.getTickerSymbol());
64          soapModel.setIndustry(model.getIndustry());
65          soapModel.setType(model.getType());
66          soapModel.setSize(model.getSize());
67  
68          return soapModel;
69      }
70  
71      public static AccountSoap[] toSoapModels(List models) {
72          List soapModels = new ArrayList(models.size());
73  
74          for (int i = 0; i < models.size(); i++) {
75              Account model = (Account)models.get(i);
76              soapModels.add(toSoapModel(model));
77          }
78  
79          return (AccountSoap[])soapModels.toArray(new AccountSoap[0]);
80      }
81  
82      public AccountSoap() {
83      }
84  
85      public long getPrimaryKey() {
86          return _accountId;
87      }
88  
89      public void setPrimaryKey(long pk) {
90          setAccountId(pk);
91      }
92  
93      public long getAccountId() {
94          return _accountId;
95      }
96  
97      public void setAccountId(long accountId) {
98          _accountId = accountId;
99      }
100 
101     public long getCompanyId() {
102         return _companyId;
103     }
104 
105     public void setCompanyId(long companyId) {
106         _companyId = companyId;
107     }
108 
109     public long getUserId() {
110         return _userId;
111     }
112 
113     public void setUserId(long userId) {
114         _userId = userId;
115     }
116 
117     public String getUserName() {
118         return _userName;
119     }
120 
121     public void setUserName(String userName) {
122         _userName = userName;
123     }
124 
125     public Date getCreateDate() {
126         return _createDate;
127     }
128 
129     public void setCreateDate(Date createDate) {
130         _createDate = createDate;
131     }
132 
133     public Date getModifiedDate() {
134         return _modifiedDate;
135     }
136 
137     public void setModifiedDate(Date modifiedDate) {
138         _modifiedDate = modifiedDate;
139     }
140 
141     public long getParentAccountId() {
142         return _parentAccountId;
143     }
144 
145     public void setParentAccountId(long parentAccountId) {
146         _parentAccountId = parentAccountId;
147     }
148 
149     public String getName() {
150         return _name;
151     }
152 
153     public void setName(String name) {
154         _name = name;
155     }
156 
157     public String getLegalName() {
158         return _legalName;
159     }
160 
161     public void setLegalName(String legalName) {
162         _legalName = legalName;
163     }
164 
165     public String getLegalId() {
166         return _legalId;
167     }
168 
169     public void setLegalId(String legalId) {
170         _legalId = legalId;
171     }
172 
173     public String getLegalType() {
174         return _legalType;
175     }
176 
177     public void setLegalType(String legalType) {
178         _legalType = legalType;
179     }
180 
181     public String getSicCode() {
182         return _sicCode;
183     }
184 
185     public void setSicCode(String sicCode) {
186         _sicCode = sicCode;
187     }
188 
189     public String getTickerSymbol() {
190         return _tickerSymbol;
191     }
192 
193     public void setTickerSymbol(String tickerSymbol) {
194         _tickerSymbol = tickerSymbol;
195     }
196 
197     public String getIndustry() {
198         return _industry;
199     }
200 
201     public void setIndustry(String industry) {
202         _industry = industry;
203     }
204 
205     public String getType() {
206         return _type;
207     }
208 
209     public void setType(String type) {
210         _type = type;
211     }
212 
213     public String getSize() {
214         return _size;
215     }
216 
217     public void setSize(String size) {
218         _size = size;
219     }
220 
221     private long _accountId;
222     private long _companyId;
223     private long _userId;
224     private String _userName;
225     private Date _createDate;
226     private Date _modifiedDate;
227     private long _parentAccountId;
228     private String _name;
229     private String _legalName;
230     private String _legalId;
231     private String _legalType;
232     private String _sicCode;
233     private String _tickerSymbol;
234     private String _industry;
235     private String _type;
236     private String _size;
237 }