001
014
015 package com.liferay.portlet.social.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.List;
021
022
028 public class SocialEquityAssetEntrySoap implements Serializable {
029 public static SocialEquityAssetEntrySoap toSoapModel(
030 SocialEquityAssetEntry model) {
031 SocialEquityAssetEntrySoap soapModel = new SocialEquityAssetEntrySoap();
032
033 soapModel.setEquityAssetEntryId(model.getEquityAssetEntryId());
034 soapModel.setGroupId(model.getGroupId());
035 soapModel.setCompanyId(model.getCompanyId());
036 soapModel.setUserId(model.getUserId());
037 soapModel.setAssetEntryId(model.getAssetEntryId());
038 soapModel.setInformationK(model.getInformationK());
039 soapModel.setInformationB(model.getInformationB());
040
041 return soapModel;
042 }
043
044 public static SocialEquityAssetEntrySoap[] toSoapModels(
045 SocialEquityAssetEntry[] models) {
046 SocialEquityAssetEntrySoap[] soapModels = new SocialEquityAssetEntrySoap[models.length];
047
048 for (int i = 0; i < models.length; i++) {
049 soapModels[i] = toSoapModel(models[i]);
050 }
051
052 return soapModels;
053 }
054
055 public static SocialEquityAssetEntrySoap[][] toSoapModels(
056 SocialEquityAssetEntry[][] models) {
057 SocialEquityAssetEntrySoap[][] soapModels = null;
058
059 if (models.length > 0) {
060 soapModels = new SocialEquityAssetEntrySoap[models.length][models[0].length];
061 }
062 else {
063 soapModels = new SocialEquityAssetEntrySoap[0][0];
064 }
065
066 for (int i = 0; i < models.length; i++) {
067 soapModels[i] = toSoapModels(models[i]);
068 }
069
070 return soapModels;
071 }
072
073 public static SocialEquityAssetEntrySoap[] toSoapModels(
074 List<SocialEquityAssetEntry> models) {
075 List<SocialEquityAssetEntrySoap> soapModels = new ArrayList<SocialEquityAssetEntrySoap>(models.size());
076
077 for (SocialEquityAssetEntry model : models) {
078 soapModels.add(toSoapModel(model));
079 }
080
081 return soapModels.toArray(new SocialEquityAssetEntrySoap[soapModels.size()]);
082 }
083
084 public SocialEquityAssetEntrySoap() {
085 }
086
087 public long getPrimaryKey() {
088 return _equityAssetEntryId;
089 }
090
091 public void setPrimaryKey(long pk) {
092 setEquityAssetEntryId(pk);
093 }
094
095 public long getEquityAssetEntryId() {
096 return _equityAssetEntryId;
097 }
098
099 public void setEquityAssetEntryId(long equityAssetEntryId) {
100 _equityAssetEntryId = equityAssetEntryId;
101 }
102
103 public long getGroupId() {
104 return _groupId;
105 }
106
107 public void setGroupId(long groupId) {
108 _groupId = groupId;
109 }
110
111 public long getCompanyId() {
112 return _companyId;
113 }
114
115 public void setCompanyId(long companyId) {
116 _companyId = companyId;
117 }
118
119 public long getUserId() {
120 return _userId;
121 }
122
123 public void setUserId(long userId) {
124 _userId = userId;
125 }
126
127 public long getAssetEntryId() {
128 return _assetEntryId;
129 }
130
131 public void setAssetEntryId(long assetEntryId) {
132 _assetEntryId = assetEntryId;
133 }
134
135 public double getInformationK() {
136 return _informationK;
137 }
138
139 public void setInformationK(double informationK) {
140 _informationK = informationK;
141 }
142
143 public double getInformationB() {
144 return _informationB;
145 }
146
147 public void setInformationB(double informationB) {
148 _informationB = informationB;
149 }
150
151 private long _equityAssetEntryId;
152 private long _groupId;
153 private long _companyId;
154 private long _userId;
155 private long _assetEntryId;
156 private double _informationK;
157 private double _informationB;
158 }