1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.polls.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="PollsQuestionSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap
44   *
45   */
46  public class PollsQuestionSoap implements Serializable {
47      public static PollsQuestionSoap toSoapModel(PollsQuestion model) {
48          PollsQuestionSoap soapModel = new PollsQuestionSoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setQuestionId(model.getQuestionId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setTitle(model.getTitle());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setExpirationDate(model.getExpirationDate());
61          soapModel.setLastVoteDate(model.getLastVoteDate());
62  
63          return soapModel;
64      }
65  
66      public static PollsQuestionSoap[] toSoapModels(List<PollsQuestion> models) {
67          List<PollsQuestionSoap> soapModels = new ArrayList<PollsQuestionSoap>(models.size());
68  
69          for (PollsQuestion model : models) {
70              soapModels.add(toSoapModel(model));
71          }
72  
73          return soapModels.toArray(new PollsQuestionSoap[soapModels.size()]);
74      }
75  
76      public PollsQuestionSoap() {
77      }
78  
79      public long getPrimaryKey() {
80          return _questionId;
81      }
82  
83      public void setPrimaryKey(long pk) {
84          setQuestionId(pk);
85      }
86  
87      public String getUuid() {
88          return _uuid;
89      }
90  
91      public void setUuid(String uuid) {
92          _uuid = uuid;
93      }
94  
95      public long getQuestionId() {
96          return _questionId;
97      }
98  
99      public void setQuestionId(long questionId) {
100         _questionId = questionId;
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 String getUserName() {
128         return _userName;
129     }
130 
131     public void setUserName(String userName) {
132         _userName = userName;
133     }
134 
135     public Date getCreateDate() {
136         return _createDate;
137     }
138 
139     public void setCreateDate(Date createDate) {
140         _createDate = createDate;
141     }
142 
143     public Date getModifiedDate() {
144         return _modifiedDate;
145     }
146 
147     public void setModifiedDate(Date modifiedDate) {
148         _modifiedDate = modifiedDate;
149     }
150 
151     public String getTitle() {
152         return _title;
153     }
154 
155     public void setTitle(String title) {
156         _title = title;
157     }
158 
159     public String getDescription() {
160         return _description;
161     }
162 
163     public void setDescription(String description) {
164         _description = description;
165     }
166 
167     public Date getExpirationDate() {
168         return _expirationDate;
169     }
170 
171     public void setExpirationDate(Date expirationDate) {
172         _expirationDate = expirationDate;
173     }
174 
175     public Date getLastVoteDate() {
176         return _lastVoteDate;
177     }
178 
179     public void setLastVoteDate(Date lastVoteDate) {
180         _lastVoteDate = lastVoteDate;
181     }
182 
183     private String _uuid;
184     private long _questionId;
185     private long _groupId;
186     private long _companyId;
187     private long _userId;
188     private String _userName;
189     private Date _createDate;
190     private Date _modifiedDate;
191     private String _title;
192     private String _description;
193     private Date _expirationDate;
194     private Date _lastVoteDate;
195 }