001
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
030 public class PollsQuestionSoap implements Serializable {
031 public static PollsQuestionSoap toSoapModel(PollsQuestion model) {
032 PollsQuestionSoap soapModel = new PollsQuestionSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setQuestionId(model.getQuestionId());
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.setTitle(model.getTitle());
043 soapModel.setDescription(model.getDescription());
044 soapModel.setExpirationDate(model.getExpirationDate());
045 soapModel.setLastVoteDate(model.getLastVoteDate());
046
047 return soapModel;
048 }
049
050 public static PollsQuestionSoap[] toSoapModels(PollsQuestion[] models) {
051 PollsQuestionSoap[] soapModels = new PollsQuestionSoap[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 PollsQuestionSoap[][] toSoapModels(PollsQuestion[][] models) {
061 PollsQuestionSoap[][] soapModels = null;
062
063 if (models.length > 0) {
064 soapModels = new PollsQuestionSoap[models.length][models[0].length];
065 }
066 else {
067 soapModels = new PollsQuestionSoap[0][0];
068 }
069
070 for (int i = 0; i < models.length; i++) {
071 soapModels[i] = toSoapModels(models[i]);
072 }
073
074 return soapModels;
075 }
076
077 public static PollsQuestionSoap[] toSoapModels(List<PollsQuestion> models) {
078 List<PollsQuestionSoap> soapModels = new ArrayList<PollsQuestionSoap>(models.size());
079
080 for (PollsQuestion model : models) {
081 soapModels.add(toSoapModel(model));
082 }
083
084 return soapModels.toArray(new PollsQuestionSoap[soapModels.size()]);
085 }
086
087 public PollsQuestionSoap() {
088 }
089
090 public long getPrimaryKey() {
091 return _questionId;
092 }
093
094 public void setPrimaryKey(long pk) {
095 setQuestionId(pk);
096 }
097
098 public String getUuid() {
099 return _uuid;
100 }
101
102 public void setUuid(String uuid) {
103 _uuid = uuid;
104 }
105
106 public long getQuestionId() {
107 return _questionId;
108 }
109
110 public void setQuestionId(long questionId) {
111 _questionId = questionId;
112 }
113
114 public long getGroupId() {
115 return _groupId;
116 }
117
118 public void setGroupId(long groupId) {
119 _groupId = groupId;
120 }
121
122 public long getCompanyId() {
123 return _companyId;
124 }
125
126 public void setCompanyId(long companyId) {
127 _companyId = companyId;
128 }
129
130 public long getUserId() {
131 return _userId;
132 }
133
134 public void setUserId(long userId) {
135 _userId = userId;
136 }
137
138 public String getUserName() {
139 return _userName;
140 }
141
142 public void setUserName(String userName) {
143 _userName = userName;
144 }
145
146 public Date getCreateDate() {
147 return _createDate;
148 }
149
150 public void setCreateDate(Date createDate) {
151 _createDate = createDate;
152 }
153
154 public Date getModifiedDate() {
155 return _modifiedDate;
156 }
157
158 public void setModifiedDate(Date modifiedDate) {
159 _modifiedDate = modifiedDate;
160 }
161
162 public String getTitle() {
163 return _title;
164 }
165
166 public void setTitle(String title) {
167 _title = title;
168 }
169
170 public String getDescription() {
171 return _description;
172 }
173
174 public void setDescription(String description) {
175 _description = description;
176 }
177
178 public Date getExpirationDate() {
179 return _expirationDate;
180 }
181
182 public void setExpirationDate(Date expirationDate) {
183 _expirationDate = expirationDate;
184 }
185
186 public Date getLastVoteDate() {
187 return _lastVoteDate;
188 }
189
190 public void setLastVoteDate(Date lastVoteDate) {
191 _lastVoteDate = lastVoteDate;
192 }
193
194 private String _uuid;
195 private long _questionId;
196 private long _groupId;
197 private long _companyId;
198 private long _userId;
199 private String _userName;
200 private Date _createDate;
201 private Date _modifiedDate;
202 private String _title;
203 private String _description;
204 private Date _expirationDate;
205 private Date _lastVoteDate;
206 }