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 public java.lang.String getDescriptionCurrentLanguageId() {
183 return _pollsChoice.getDescriptionCurrentLanguageId();
184 }
185
186 public java.lang.String getDescriptionCurrentValue() {
187 return _pollsChoice.getDescriptionCurrentValue();
188 }
189
190
195 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
196 return _pollsChoice.getDescriptionMap();
197 }
198
199
204 public void setDescription(java.lang.String description) {
205 _pollsChoice.setDescription(description);
206 }
207
208
214 public void setDescription(java.lang.String description,
215 java.util.Locale locale) {
216 _pollsChoice.setDescription(description, locale);
217 }
218
219
226 public void setDescription(java.lang.String description,
227 java.util.Locale locale, java.util.Locale defaultLocale) {
228 _pollsChoice.setDescription(description, locale, defaultLocale);
229 }
230
231 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
232 _pollsChoice.setDescriptionCurrentLanguageId(languageId);
233 }
234
235
240 public void setDescriptionMap(
241 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
242 _pollsChoice.setDescriptionMap(descriptionMap);
243 }
244
245
251 public void setDescriptionMap(
252 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
253 java.util.Locale defaultLocale) {
254 _pollsChoice.setDescriptionMap(descriptionMap, defaultLocale);
255 }
256
257 public boolean isNew() {
258 return _pollsChoice.isNew();
259 }
260
261 public void setNew(boolean n) {
262 _pollsChoice.setNew(n);
263 }
264
265 public boolean isCachedModel() {
266 return _pollsChoice.isCachedModel();
267 }
268
269 public void setCachedModel(boolean cachedModel) {
270 _pollsChoice.setCachedModel(cachedModel);
271 }
272
273 public boolean isEscapedModel() {
274 return _pollsChoice.isEscapedModel();
275 }
276
277 public java.io.Serializable getPrimaryKeyObj() {
278 return _pollsChoice.getPrimaryKeyObj();
279 }
280
281 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
282 _pollsChoice.setPrimaryKeyObj(primaryKeyObj);
283 }
284
285 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
286 return _pollsChoice.getExpandoBridge();
287 }
288
289 public void setExpandoBridgeAttributes(
290 com.liferay.portal.service.ServiceContext serviceContext) {
291 _pollsChoice.setExpandoBridgeAttributes(serviceContext);
292 }
293
294 @Override
295 public java.lang.Object clone() {
296 return new PollsChoiceWrapper((PollsChoice)_pollsChoice.clone());
297 }
298
299 public int compareTo(
300 com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
301 return _pollsChoice.compareTo(pollsChoice);
302 }
303
304 @Override
305 public int hashCode() {
306 return _pollsChoice.hashCode();
307 }
308
309 public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsChoice> toCacheModel() {
310 return _pollsChoice.toCacheModel();
311 }
312
313 public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
314 return new PollsChoiceWrapper(_pollsChoice.toEscapedModel());
315 }
316
317 @Override
318 public java.lang.String toString() {
319 return _pollsChoice.toString();
320 }
321
322 public java.lang.String toXmlString() {
323 return _pollsChoice.toXmlString();
324 }
325
326 public void persist()
327 throws com.liferay.portal.kernel.exception.SystemException {
328 _pollsChoice.persist();
329 }
330
331 public int getVotesCount()
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return _pollsChoice.getVotesCount();
334 }
335
336 public PollsChoice getWrappedPollsChoice() {
337 return _pollsChoice;
338 }
339
340 public void resetOriginalValues() {
341 _pollsChoice.resetOriginalValues();
342 }
343
344 private PollsChoice _pollsChoice;
345 }