001
014
015 package com.liferay.portlet.polls.model;
016
017
026 public class PollsChoiceWrapper implements PollsChoice {
027 public PollsChoiceWrapper(PollsChoice pollsChoice) {
028 _pollsChoice = pollsChoice;
029 }
030
031 public Class<?> getModelClass() {
032 return PollsChoice.class;
033 }
034
035 public String getModelClassName() {
036 return PollsChoice.class.getName();
037 }
038
039
044 public long getPrimaryKey() {
045 return _pollsChoice.getPrimaryKey();
046 }
047
048
053 public void setPrimaryKey(long primaryKey) {
054 _pollsChoice.setPrimaryKey(primaryKey);
055 }
056
057
062 public java.lang.String getUuid() {
063 return _pollsChoice.getUuid();
064 }
065
066
071 public void setUuid(java.lang.String uuid) {
072 _pollsChoice.setUuid(uuid);
073 }
074
075
080 public long getChoiceId() {
081 return _pollsChoice.getChoiceId();
082 }
083
084
089 public void setChoiceId(long choiceId) {
090 _pollsChoice.setChoiceId(choiceId);
091 }
092
093
098 public long getQuestionId() {
099 return _pollsChoice.getQuestionId();
100 }
101
102
107 public void setQuestionId(long questionId) {
108 _pollsChoice.setQuestionId(questionId);
109 }
110
111
116 public java.lang.String getName() {
117 return _pollsChoice.getName();
118 }
119
120
125 public void setName(java.lang.String name) {
126 _pollsChoice.setName(name);
127 }
128
129
134 public java.lang.String getDescription() {
135 return _pollsChoice.getDescription();
136 }
137
138
144 public java.lang.String getDescription(java.util.Locale locale) {
145 return _pollsChoice.getDescription(locale);
146 }
147
148
155 public java.lang.String getDescription(java.util.Locale locale,
156 boolean useDefault) {
157 return _pollsChoice.getDescription(locale, useDefault);
158 }
159
160
166 public java.lang.String getDescription(java.lang.String languageId) {
167 return _pollsChoice.getDescription(languageId);
168 }
169
170
177 public java.lang.String getDescription(java.lang.String languageId,
178 boolean useDefault) {
179 return _pollsChoice.getDescription(languageId, useDefault);
180 }
181
182
187 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
188 return _pollsChoice.getDescriptionMap();
189 }
190
191
196 public void setDescription(java.lang.String description) {
197 _pollsChoice.setDescription(description);
198 }
199
200
206 public void setDescription(java.util.Locale locale,
207 java.lang.String description) {
208 _pollsChoice.setDescription(locale, description);
209 }
210
211
216 public void setDescriptionMap(
217 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
218 _pollsChoice.setDescriptionMap(descriptionMap);
219 }
220
221 public boolean isNew() {
222 return _pollsChoice.isNew();
223 }
224
225 public void setNew(boolean n) {
226 _pollsChoice.setNew(n);
227 }
228
229 public boolean isCachedModel() {
230 return _pollsChoice.isCachedModel();
231 }
232
233 public void setCachedModel(boolean cachedModel) {
234 _pollsChoice.setCachedModel(cachedModel);
235 }
236
237 public boolean isEscapedModel() {
238 return _pollsChoice.isEscapedModel();
239 }
240
241 public void setEscapedModel(boolean escapedModel) {
242 _pollsChoice.setEscapedModel(escapedModel);
243 }
244
245 public java.io.Serializable getPrimaryKeyObj() {
246 return _pollsChoice.getPrimaryKeyObj();
247 }
248
249 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
250 _pollsChoice.setPrimaryKeyObj(primaryKeyObj);
251 }
252
253 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
254 return _pollsChoice.getExpandoBridge();
255 }
256
257 public void setExpandoBridgeAttributes(
258 com.liferay.portal.service.ServiceContext serviceContext) {
259 _pollsChoice.setExpandoBridgeAttributes(serviceContext);
260 }
261
262 @Override
263 public java.lang.Object clone() {
264 return new PollsChoiceWrapper((PollsChoice)_pollsChoice.clone());
265 }
266
267 public int compareTo(
268 com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
269 return _pollsChoice.compareTo(pollsChoice);
270 }
271
272 @Override
273 public int hashCode() {
274 return _pollsChoice.hashCode();
275 }
276
277 public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsChoice> toCacheModel() {
278 return _pollsChoice.toCacheModel();
279 }
280
281 public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
282 return new PollsChoiceWrapper(_pollsChoice.toEscapedModel());
283 }
284
285 @Override
286 public java.lang.String toString() {
287 return _pollsChoice.toString();
288 }
289
290 public java.lang.String toXmlString() {
291 return _pollsChoice.toXmlString();
292 }
293
294 public void persist()
295 throws com.liferay.portal.kernel.exception.SystemException {
296 _pollsChoice.persist();
297 }
298
299 public int getVotesCount()
300 throws com.liferay.portal.kernel.exception.SystemException {
301 return _pollsChoice.getVotesCount();
302 }
303
304 public PollsChoice getWrappedPollsChoice() {
305 return _pollsChoice;
306 }
307
308 public void resetOriginalValues() {
309 _pollsChoice.resetOriginalValues();
310 }
311
312 private PollsChoice _pollsChoice;
313 }