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.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class SocialEquityLogSoap implements Serializable {
029            public static SocialEquityLogSoap toSoapModel(SocialEquityLog model) {
030                    SocialEquityLogSoap soapModel = new SocialEquityLogSoap();
031    
032                    soapModel.setEquityLogId(model.getEquityLogId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setAssetEntryId(model.getAssetEntryId());
037                    soapModel.setActionId(model.getActionId());
038                    soapModel.setActionDate(model.getActionDate());
039                    soapModel.setActive(model.getActive());
040                    soapModel.setExpiration(model.getExpiration());
041                    soapModel.setType(model.getType());
042                    soapModel.setValue(model.getValue());
043                    soapModel.setExtraData(model.getExtraData());
044    
045                    return soapModel;
046            }
047    
048            public static SocialEquityLogSoap[] toSoapModels(SocialEquityLog[] models) {
049                    SocialEquityLogSoap[] soapModels = new SocialEquityLogSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static SocialEquityLogSoap[][] toSoapModels(
059                    SocialEquityLog[][] models) {
060                    SocialEquityLogSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new SocialEquityLogSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new SocialEquityLogSoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static SocialEquityLogSoap[] toSoapModels(
077                    List<SocialEquityLog> models) {
078                    List<SocialEquityLogSoap> soapModels = new ArrayList<SocialEquityLogSoap>(models.size());
079    
080                    for (SocialEquityLog model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new SocialEquityLogSoap[soapModels.size()]);
085            }
086    
087            public SocialEquityLogSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _equityLogId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setEquityLogId(pk);
096            }
097    
098            public long getEquityLogId() {
099                    return _equityLogId;
100            }
101    
102            public void setEquityLogId(long equityLogId) {
103                    _equityLogId = equityLogId;
104            }
105    
106            public long getGroupId() {
107                    return _groupId;
108            }
109    
110            public void setGroupId(long groupId) {
111                    _groupId = groupId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public long getUserId() {
123                    return _userId;
124            }
125    
126            public void setUserId(long userId) {
127                    _userId = userId;
128            }
129    
130            public long getAssetEntryId() {
131                    return _assetEntryId;
132            }
133    
134            public void setAssetEntryId(long assetEntryId) {
135                    _assetEntryId = assetEntryId;
136            }
137    
138            public String getActionId() {
139                    return _actionId;
140            }
141    
142            public void setActionId(String actionId) {
143                    _actionId = actionId;
144            }
145    
146            public int getActionDate() {
147                    return _actionDate;
148            }
149    
150            public void setActionDate(int actionDate) {
151                    _actionDate = actionDate;
152            }
153    
154            public boolean getActive() {
155                    return _active;
156            }
157    
158            public boolean isActive() {
159                    return _active;
160            }
161    
162            public void setActive(boolean active) {
163                    _active = active;
164            }
165    
166            public int getExpiration() {
167                    return _expiration;
168            }
169    
170            public void setExpiration(int expiration) {
171                    _expiration = expiration;
172            }
173    
174            public int getType() {
175                    return _type;
176            }
177    
178            public void setType(int type) {
179                    _type = type;
180            }
181    
182            public int getValue() {
183                    return _value;
184            }
185    
186            public void setValue(int value) {
187                    _value = value;
188            }
189    
190            public String getExtraData() {
191                    return _extraData;
192            }
193    
194            public void setExtraData(String extraData) {
195                    _extraData = extraData;
196            }
197    
198            private long _equityLogId;
199            private long _groupId;
200            private long _companyId;
201            private long _userId;
202            private long _assetEntryId;
203            private String _actionId;
204            private int _actionDate;
205            private boolean _active;
206            private int _expiration;
207            private int _type;
208            private int _value;
209            private String _extraData;
210    }