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.polls.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, specifically {@link com.liferay.portlet.polls.service.http.PollsVoteServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.polls.service.http.PollsVoteServiceSoap
028     * @generated
029     */
030    public class PollsVoteSoap implements Serializable {
031            public static PollsVoteSoap toSoapModel(PollsVote model) {
032                    PollsVoteSoap soapModel = new PollsVoteSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setVoteId(model.getVoteId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setQuestionId(model.getQuestionId());
043                    soapModel.setChoiceId(model.getChoiceId());
044                    soapModel.setVoteDate(model.getVoteDate());
045    
046                    return soapModel;
047            }
048    
049            public static PollsVoteSoap[] toSoapModels(PollsVote[] models) {
050                    PollsVoteSoap[] soapModels = new PollsVoteSoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static PollsVoteSoap[][] toSoapModels(PollsVote[][] models) {
060                    PollsVoteSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new PollsVoteSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new PollsVoteSoap[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 PollsVoteSoap[] toSoapModels(List<PollsVote> models) {
077                    List<PollsVoteSoap> soapModels = new ArrayList<PollsVoteSoap>(models.size());
078    
079                    for (PollsVote model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new PollsVoteSoap[soapModels.size()]);
084            }
085    
086            public PollsVoteSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _voteId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setVoteId(pk);
095            }
096    
097            public String getUuid() {
098                    return _uuid;
099            }
100    
101            public void setUuid(String uuid) {
102                    _uuid = uuid;
103            }
104    
105            public long getVoteId() {
106                    return _voteId;
107            }
108    
109            public void setVoteId(long voteId) {
110                    _voteId = voteId;
111            }
112    
113            public long getGroupId() {
114                    return _groupId;
115            }
116    
117            public void setGroupId(long groupId) {
118                    _groupId = groupId;
119            }
120    
121            public long getCompanyId() {
122                    return _companyId;
123            }
124    
125            public void setCompanyId(long companyId) {
126                    _companyId = companyId;
127            }
128    
129            public long getUserId() {
130                    return _userId;
131            }
132    
133            public void setUserId(long userId) {
134                    _userId = userId;
135            }
136    
137            public String getUserName() {
138                    return _userName;
139            }
140    
141            public void setUserName(String userName) {
142                    _userName = userName;
143            }
144    
145            public Date getCreateDate() {
146                    return _createDate;
147            }
148    
149            public void setCreateDate(Date createDate) {
150                    _createDate = createDate;
151            }
152    
153            public Date getModifiedDate() {
154                    return _modifiedDate;
155            }
156    
157            public void setModifiedDate(Date modifiedDate) {
158                    _modifiedDate = modifiedDate;
159            }
160    
161            public long getQuestionId() {
162                    return _questionId;
163            }
164    
165            public void setQuestionId(long questionId) {
166                    _questionId = questionId;
167            }
168    
169            public long getChoiceId() {
170                    return _choiceId;
171            }
172    
173            public void setChoiceId(long choiceId) {
174                    _choiceId = choiceId;
175            }
176    
177            public Date getVoteDate() {
178                    return _voteDate;
179            }
180    
181            public void setVoteDate(Date voteDate) {
182                    _voteDate = voteDate;
183            }
184    
185            private String _uuid;
186            private long _voteId;
187            private long _groupId;
188            private long _companyId;
189            private long _userId;
190            private String _userName;
191            private Date _createDate;
192            private Date _modifiedDate;
193            private long _questionId;
194            private long _choiceId;
195            private Date _voteDate;
196    }