001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author    Brian Wing Shun Chan
027     * @generated
028     */
029    public class SocialEquityHistorySoap implements Serializable {
030            public static SocialEquityHistorySoap toSoapModel(SocialEquityHistory model) {
031                    SocialEquityHistorySoap soapModel = new SocialEquityHistorySoap();
032    
033                    soapModel.setEquityHistoryId(model.getEquityHistoryId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setPersonalEquity(model.getPersonalEquity());
039    
040                    return soapModel;
041            }
042    
043            public static SocialEquityHistorySoap[] toSoapModels(
044                    SocialEquityHistory[] models) {
045                    SocialEquityHistorySoap[] soapModels = new SocialEquityHistorySoap[models.length];
046    
047                    for (int i = 0; i < models.length; i++) {
048                            soapModels[i] = toSoapModel(models[i]);
049                    }
050    
051                    return soapModels;
052            }
053    
054            public static SocialEquityHistorySoap[][] toSoapModels(
055                    SocialEquityHistory[][] models) {
056                    SocialEquityHistorySoap[][] soapModels = null;
057    
058                    if (models.length > 0) {
059                            soapModels = new SocialEquityHistorySoap[models.length][models[0].length];
060                    }
061                    else {
062                            soapModels = new SocialEquityHistorySoap[0][0];
063                    }
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModels(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static SocialEquityHistorySoap[] toSoapModels(
073                    List<SocialEquityHistory> models) {
074                    List<SocialEquityHistorySoap> soapModels = new ArrayList<SocialEquityHistorySoap>(models.size());
075    
076                    for (SocialEquityHistory model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new SocialEquityHistorySoap[soapModels.size()]);
081            }
082    
083            public SocialEquityHistorySoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _equityHistoryId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setEquityHistoryId(pk);
092            }
093    
094            public long getEquityHistoryId() {
095                    return _equityHistoryId;
096            }
097    
098            public void setEquityHistoryId(long equityHistoryId) {
099                    _equityHistoryId = equityHistoryId;
100            }
101    
102            public long getGroupId() {
103                    return _groupId;
104            }
105    
106            public void setGroupId(long groupId) {
107                    _groupId = groupId;
108            }
109    
110            public long getCompanyId() {
111                    return _companyId;
112            }
113    
114            public void setCompanyId(long companyId) {
115                    _companyId = companyId;
116            }
117    
118            public long getUserId() {
119                    return _userId;
120            }
121    
122            public void setUserId(long userId) {
123                    _userId = userId;
124            }
125    
126            public Date getCreateDate() {
127                    return _createDate;
128            }
129    
130            public void setCreateDate(Date createDate) {
131                    _createDate = createDate;
132            }
133    
134            public int getPersonalEquity() {
135                    return _personalEquity;
136            }
137    
138            public void setPersonalEquity(int personalEquity) {
139                    _personalEquity = personalEquity;
140            }
141    
142            private long _equityHistoryId;
143            private long _groupId;
144            private long _companyId;
145            private long _userId;
146            private Date _createDate;
147            private int _personalEquity;
148    }