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.List;
21  
22  /**
23   * <a href="SocialEquityAssetEntrySoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.social.service.http.SocialEquityAssetEntryServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.social.service.http.SocialEquityAssetEntryServiceSoap
37   * @generated
38   */
39  public class SocialEquityAssetEntrySoap implements Serializable {
40      public static SocialEquityAssetEntrySoap toSoapModel(
41          SocialEquityAssetEntry model) {
42          SocialEquityAssetEntrySoap soapModel = new SocialEquityAssetEntrySoap();
43  
44          soapModel.setEquityAssetEntryId(model.getEquityAssetEntryId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setAssetEntryId(model.getAssetEntryId());
49          soapModel.setInformationK(model.getInformationK());
50          soapModel.setInformationB(model.getInformationB());
51          soapModel.setInformationEquity(model.getInformationEquity());
52  
53          return soapModel;
54      }
55  
56      public static SocialEquityAssetEntrySoap[] toSoapModels(
57          SocialEquityAssetEntry[] models) {
58          SocialEquityAssetEntrySoap[] soapModels = new SocialEquityAssetEntrySoap[models.length];
59  
60          for (int i = 0; i < models.length; i++) {
61              soapModels[i] = toSoapModel(models[i]);
62          }
63  
64          return soapModels;
65      }
66  
67      public static SocialEquityAssetEntrySoap[][] toSoapModels(
68          SocialEquityAssetEntry[][] models) {
69          SocialEquityAssetEntrySoap[][] soapModels = null;
70  
71          if (models.length > 0) {
72              soapModels = new SocialEquityAssetEntrySoap[models.length][models[0].length];
73          }
74          else {
75              soapModels = new SocialEquityAssetEntrySoap[0][0];
76          }
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModels(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static SocialEquityAssetEntrySoap[] toSoapModels(
86          List<SocialEquityAssetEntry> models) {
87          List<SocialEquityAssetEntrySoap> soapModels = new ArrayList<SocialEquityAssetEntrySoap>(models.size());
88  
89          for (SocialEquityAssetEntry model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new SocialEquityAssetEntrySoap[soapModels.size()]);
94      }
95  
96      public SocialEquityAssetEntrySoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _equityAssetEntryId;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setEquityAssetEntryId(pk);
105     }
106 
107     public long getEquityAssetEntryId() {
108         return _equityAssetEntryId;
109     }
110 
111     public void setEquityAssetEntryId(long equityAssetEntryId) {
112         _equityAssetEntryId = equityAssetEntryId;
113     }
114 
115     public long getGroupId() {
116         return _groupId;
117     }
118 
119     public void setGroupId(long groupId) {
120         _groupId = groupId;
121     }
122 
123     public long getCompanyId() {
124         return _companyId;
125     }
126 
127     public void setCompanyId(long companyId) {
128         _companyId = companyId;
129     }
130 
131     public long getUserId() {
132         return _userId;
133     }
134 
135     public void setUserId(long userId) {
136         _userId = userId;
137     }
138 
139     public long getAssetEntryId() {
140         return _assetEntryId;
141     }
142 
143     public void setAssetEntryId(long assetEntryId) {
144         _assetEntryId = assetEntryId;
145     }
146 
147     public double getInformationK() {
148         return _informationK;
149     }
150 
151     public void setInformationK(double informationK) {
152         _informationK = informationK;
153     }
154 
155     public double getInformationB() {
156         return _informationB;
157     }
158 
159     public void setInformationB(double informationB) {
160         _informationB = informationB;
161     }
162 
163     public double getInformationEquity() {
164         return _informationEquity;
165     }
166 
167     public void setInformationEquity(double informationEquity) {
168         _informationEquity = informationEquity;
169     }
170 
171     private long _equityAssetEntryId;
172     private long _groupId;
173     private long _companyId;
174     private long _userId;
175     private long _assetEntryId;
176     private double _informationK;
177     private double _informationB;
178     private double _informationEquity;
179 }