1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.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="SocialEquityHistorySoap.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.portlet.social.service.http.SocialEquityHistoryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.social.service.http.SocialEquityHistoryServiceSoap
38   * @generated
39   */
40  public class SocialEquityHistorySoap implements Serializable {
41      public static SocialEquityHistorySoap toSoapModel(SocialEquityHistory model) {
42          SocialEquityHistorySoap soapModel = new SocialEquityHistorySoap();
43  
44          soapModel.setEquityHistoryId(model.getEquityHistoryId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setCreateDate(model.getCreateDate());
49          soapModel.setPersonalEquity(model.getPersonalEquity());
50  
51          return soapModel;
52      }
53  
54      public static SocialEquityHistorySoap[] toSoapModels(
55          SocialEquityHistory[] models) {
56          SocialEquityHistorySoap[] soapModels = new SocialEquityHistorySoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static SocialEquityHistorySoap[][] toSoapModels(
66          SocialEquityHistory[][] models) {
67          SocialEquityHistorySoap[][] soapModels = null;
68  
69          if (models.length > 0) {
70              soapModels = new SocialEquityHistorySoap[models.length][models[0].length];
71          }
72          else {
73              soapModels = new SocialEquityHistorySoap[0][0];
74          }
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModels(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static SocialEquityHistorySoap[] toSoapModels(
84          List<SocialEquityHistory> models) {
85          List<SocialEquityHistorySoap> soapModels = new ArrayList<SocialEquityHistorySoap>(models.size());
86  
87          for (SocialEquityHistory model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new SocialEquityHistorySoap[soapModels.size()]);
92      }
93  
94      public SocialEquityHistorySoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _equityHistoryId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setEquityHistoryId(pk);
103     }
104 
105     public long getEquityHistoryId() {
106         return _equityHistoryId;
107     }
108 
109     public void setEquityHistoryId(long equityHistoryId) {
110         _equityHistoryId = equityHistoryId;
111     }
112 
113     public long getGroupId() {
114         return _groupId;
115     }
116 
117     public void setGroupId(long groupId) {
118         _groupId = groupId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public long getUserId() {
130         return _userId;
131     }
132 
133     public void setUserId(long userId) {
134         _userId = userId;
135     }
136 
137     public Date getCreateDate() {
138         return _createDate;
139     }
140 
141     public void setCreateDate(Date createDate) {
142         _createDate = createDate;
143     }
144 
145     public int getPersonalEquity() {
146         return _personalEquity;
147     }
148 
149     public void setPersonalEquity(int personalEquity) {
150         _personalEquity = personalEquity;
151     }
152 
153     private long _equityHistoryId;
154     private long _groupId;
155     private long _companyId;
156     private long _userId;
157     private Date _createDate;
158     private int _personalEquity;
159 }