1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.polls.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="PollsQuestionSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.polls.service.http.PollsQuestionServiceSoap
38   * @generated
39   */
40  public class PollsQuestionSoap implements Serializable {
41      public static PollsQuestionSoap toSoapModel(PollsQuestion model) {
42          PollsQuestionSoap soapModel = new PollsQuestionSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setQuestionId(model.getQuestionId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setTitle(model.getTitle());
53          soapModel.setDescription(model.getDescription());
54          soapModel.setExpirationDate(model.getExpirationDate());
55          soapModel.setLastVoteDate(model.getLastVoteDate());
56  
57          return soapModel;
58      }
59  
60      public static PollsQuestionSoap[] toSoapModels(PollsQuestion[] models) {
61          PollsQuestionSoap[] soapModels = new PollsQuestionSoap[models.length];
62  
63          for (int i = 0; i < models.length; i++) {
64              soapModels[i] = toSoapModel(models[i]);
65          }
66  
67          return soapModels;
68      }
69  
70      public static PollsQuestionSoap[][] toSoapModels(PollsQuestion[][] models) {
71          PollsQuestionSoap[][] soapModels = null;
72  
73          if (models.length > 0) {
74              soapModels = new PollsQuestionSoap[models.length][models[0].length];
75          }
76          else {
77              soapModels = new PollsQuestionSoap[0][0];
78          }
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModels(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static PollsQuestionSoap[] toSoapModels(List<PollsQuestion> models) {
88          List<PollsQuestionSoap> soapModels = new ArrayList<PollsQuestionSoap>(models.size());
89  
90          for (PollsQuestion model : models) {
91              soapModels.add(toSoapModel(model));
92          }
93  
94          return soapModels.toArray(new PollsQuestionSoap[soapModels.size()]);
95      }
96  
97      public PollsQuestionSoap() {
98      }
99  
100     public long getPrimaryKey() {
101         return _questionId;
102     }
103 
104     public void setPrimaryKey(long pk) {
105         setQuestionId(pk);
106     }
107 
108     public String getUuid() {
109         return _uuid;
110     }
111 
112     public void setUuid(String uuid) {
113         _uuid = uuid;
114     }
115 
116     public long getQuestionId() {
117         return _questionId;
118     }
119 
120     public void setQuestionId(long questionId) {
121         _questionId = questionId;
122     }
123 
124     public long getGroupId() {
125         return _groupId;
126     }
127 
128     public void setGroupId(long groupId) {
129         _groupId = groupId;
130     }
131 
132     public long getCompanyId() {
133         return _companyId;
134     }
135 
136     public void setCompanyId(long companyId) {
137         _companyId = companyId;
138     }
139 
140     public long getUserId() {
141         return _userId;
142     }
143 
144     public void setUserId(long userId) {
145         _userId = userId;
146     }
147 
148     public String getUserName() {
149         return _userName;
150     }
151 
152     public void setUserName(String userName) {
153         _userName = userName;
154     }
155 
156     public Date getCreateDate() {
157         return _createDate;
158     }
159 
160     public void setCreateDate(Date createDate) {
161         _createDate = createDate;
162     }
163 
164     public Date getModifiedDate() {
165         return _modifiedDate;
166     }
167 
168     public void setModifiedDate(Date modifiedDate) {
169         _modifiedDate = modifiedDate;
170     }
171 
172     public String getTitle() {
173         return _title;
174     }
175 
176     public void setTitle(String title) {
177         _title = title;
178     }
179 
180     public String getDescription() {
181         return _description;
182     }
183 
184     public void setDescription(String description) {
185         _description = description;
186     }
187 
188     public Date getExpirationDate() {
189         return _expirationDate;
190     }
191 
192     public void setExpirationDate(Date expirationDate) {
193         _expirationDate = expirationDate;
194     }
195 
196     public Date getLastVoteDate() {
197         return _lastVoteDate;
198     }
199 
200     public void setLastVoteDate(Date lastVoteDate) {
201         _lastVoteDate = lastVoteDate;
202     }
203 
204     private String _uuid;
205     private long _questionId;
206     private long _groupId;
207     private long _companyId;
208     private long _userId;
209     private String _userName;
210     private Date _createDate;
211     private Date _modifiedDate;
212     private String _title;
213     private String _description;
214     private Date _expirationDate;
215     private Date _lastVoteDate;
216 }