001    /**
002     * Copyright (c) 2000-2013 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 SocialActivityCounterSoap implements Serializable {
029            public static SocialActivityCounterSoap toSoapModel(
030                    SocialActivityCounter model) {
031                    SocialActivityCounterSoap soapModel = new SocialActivityCounterSoap();
032    
033                    soapModel.setActivityCounterId(model.getActivityCounterId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setClassNameId(model.getClassNameId());
037                    soapModel.setClassPK(model.getClassPK());
038                    soapModel.setName(model.getName());
039                    soapModel.setOwnerType(model.getOwnerType());
040                    soapModel.setCurrentValue(model.getCurrentValue());
041                    soapModel.setTotalValue(model.getTotalValue());
042                    soapModel.setGraceValue(model.getGraceValue());
043                    soapModel.setStartPeriod(model.getStartPeriod());
044                    soapModel.setEndPeriod(model.getEndPeriod());
045    
046                    return soapModel;
047            }
048    
049            public static SocialActivityCounterSoap[] toSoapModels(
050                    SocialActivityCounter[] models) {
051                    SocialActivityCounterSoap[] soapModels = new SocialActivityCounterSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static SocialActivityCounterSoap[][] toSoapModels(
061                    SocialActivityCounter[][] models) {
062                    SocialActivityCounterSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new SocialActivityCounterSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new SocialActivityCounterSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static SocialActivityCounterSoap[] toSoapModels(
079                    List<SocialActivityCounter> models) {
080                    List<SocialActivityCounterSoap> soapModels = new ArrayList<SocialActivityCounterSoap>(models.size());
081    
082                    for (SocialActivityCounter model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new SocialActivityCounterSoap[soapModels.size()]);
087            }
088    
089            public SocialActivityCounterSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _activityCounterId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setActivityCounterId(pk);
098            }
099    
100            public long getActivityCounterId() {
101                    return _activityCounterId;
102            }
103    
104            public void setActivityCounterId(long activityCounterId) {
105                    _activityCounterId = activityCounterId;
106            }
107    
108            public long getGroupId() {
109                    return _groupId;
110            }
111    
112            public void setGroupId(long groupId) {
113                    _groupId = groupId;
114            }
115    
116            public long getCompanyId() {
117                    return _companyId;
118            }
119    
120            public void setCompanyId(long companyId) {
121                    _companyId = companyId;
122            }
123    
124            public long getClassNameId() {
125                    return _classNameId;
126            }
127    
128            public void setClassNameId(long classNameId) {
129                    _classNameId = classNameId;
130            }
131    
132            public long getClassPK() {
133                    return _classPK;
134            }
135    
136            public void setClassPK(long classPK) {
137                    _classPK = classPK;
138            }
139    
140            public String getName() {
141                    return _name;
142            }
143    
144            public void setName(String name) {
145                    _name = name;
146            }
147    
148            public int getOwnerType() {
149                    return _ownerType;
150            }
151    
152            public void setOwnerType(int ownerType) {
153                    _ownerType = ownerType;
154            }
155    
156            public int getCurrentValue() {
157                    return _currentValue;
158            }
159    
160            public void setCurrentValue(int currentValue) {
161                    _currentValue = currentValue;
162            }
163    
164            public int getTotalValue() {
165                    return _totalValue;
166            }
167    
168            public void setTotalValue(int totalValue) {
169                    _totalValue = totalValue;
170            }
171    
172            public int getGraceValue() {
173                    return _graceValue;
174            }
175    
176            public void setGraceValue(int graceValue) {
177                    _graceValue = graceValue;
178            }
179    
180            public int getStartPeriod() {
181                    return _startPeriod;
182            }
183    
184            public void setStartPeriod(int startPeriod) {
185                    _startPeriod = startPeriod;
186            }
187    
188            public int getEndPeriod() {
189                    return _endPeriod;
190            }
191    
192            public void setEndPeriod(int endPeriod) {
193                    _endPeriod = endPeriod;
194            }
195    
196            private long _activityCounterId;
197            private long _groupId;
198            private long _companyId;
199            private long _classNameId;
200            private long _classPK;
201            private String _name;
202            private int _ownerType;
203            private int _currentValue;
204            private int _totalValue;
205            private int _graceValue;
206            private int _startPeriod;
207            private int _endPeriod;
208    }