1
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
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 }