001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.polls.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link PollsQuestion}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       PollsQuestion
026     * @generated
027     */
028    public class PollsQuestionWrapper implements PollsQuestion,
029            ModelWrapper<PollsQuestion> {
030            public PollsQuestionWrapper(PollsQuestion pollsQuestion) {
031                    _pollsQuestion = pollsQuestion;
032            }
033    
034            public Class<?> getModelClass() {
035                    return PollsQuestion.class;
036            }
037    
038            public String getModelClassName() {
039                    return PollsQuestion.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this polls question.
044            *
045            * @return the primary key of this polls question
046            */
047            public long getPrimaryKey() {
048                    return _pollsQuestion.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this polls question.
053            *
054            * @param primaryKey the primary key of this polls question
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _pollsQuestion.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this polls question.
062            *
063            * @return the uuid of this polls question
064            */
065            public java.lang.String getUuid() {
066                    return _pollsQuestion.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this polls question.
071            *
072            * @param uuid the uuid of this polls question
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _pollsQuestion.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the question ID of this polls question.
080            *
081            * @return the question ID of this polls question
082            */
083            public long getQuestionId() {
084                    return _pollsQuestion.getQuestionId();
085            }
086    
087            /**
088            * Sets the question ID of this polls question.
089            *
090            * @param questionId the question ID of this polls question
091            */
092            public void setQuestionId(long questionId) {
093                    _pollsQuestion.setQuestionId(questionId);
094            }
095    
096            /**
097            * Returns the group ID of this polls question.
098            *
099            * @return the group ID of this polls question
100            */
101            public long getGroupId() {
102                    return _pollsQuestion.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this polls question.
107            *
108            * @param groupId the group ID of this polls question
109            */
110            public void setGroupId(long groupId) {
111                    _pollsQuestion.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this polls question.
116            *
117            * @return the company ID of this polls question
118            */
119            public long getCompanyId() {
120                    return _pollsQuestion.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this polls question.
125            *
126            * @param companyId the company ID of this polls question
127            */
128            public void setCompanyId(long companyId) {
129                    _pollsQuestion.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this polls question.
134            *
135            * @return the user ID of this polls question
136            */
137            public long getUserId() {
138                    return _pollsQuestion.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this polls question.
143            *
144            * @param userId the user ID of this polls question
145            */
146            public void setUserId(long userId) {
147                    _pollsQuestion.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this polls question.
152            *
153            * @return the user uuid of this polls question
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _pollsQuestion.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this polls question.
163            *
164            * @param userUuid the user uuid of this polls question
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _pollsQuestion.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this polls question.
172            *
173            * @return the user name of this polls question
174            */
175            public java.lang.String getUserName() {
176                    return _pollsQuestion.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this polls question.
181            *
182            * @param userName the user name of this polls question
183            */
184            public void setUserName(java.lang.String userName) {
185                    _pollsQuestion.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this polls question.
190            *
191            * @return the create date of this polls question
192            */
193            public java.util.Date getCreateDate() {
194                    return _pollsQuestion.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this polls question.
199            *
200            * @param createDate the create date of this polls question
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _pollsQuestion.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this polls question.
208            *
209            * @return the modified date of this polls question
210            */
211            public java.util.Date getModifiedDate() {
212                    return _pollsQuestion.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this polls question.
217            *
218            * @param modifiedDate the modified date of this polls question
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _pollsQuestion.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the title of this polls question.
226            *
227            * @return the title of this polls question
228            */
229            public java.lang.String getTitle() {
230                    return _pollsQuestion.getTitle();
231            }
232    
233            /**
234            * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
235            *
236            * @param locale the locale of the language
237            * @return the localized title of this polls question
238            */
239            public java.lang.String getTitle(java.util.Locale locale) {
240                    return _pollsQuestion.getTitle(locale);
241            }
242    
243            /**
244            * Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language.
245            *
246            * @param locale the local of the language
247            * @param useDefault whether to use the default language if no localization exists for the requested language
248            * @return the localized title of this polls question. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
249            */
250            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
251                    return _pollsQuestion.getTitle(locale, useDefault);
252            }
253    
254            /**
255            * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
256            *
257            * @param languageId the ID of the language
258            * @return the localized title of this polls question
259            */
260            public java.lang.String getTitle(java.lang.String languageId) {
261                    return _pollsQuestion.getTitle(languageId);
262            }
263    
264            /**
265            * Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language.
266            *
267            * @param languageId the ID of the language
268            * @param useDefault whether to use the default language if no localization exists for the requested language
269            * @return the localized title of this polls question
270            */
271            public java.lang.String getTitle(java.lang.String languageId,
272                    boolean useDefault) {
273                    return _pollsQuestion.getTitle(languageId, useDefault);
274            }
275    
276            public java.lang.String getTitleCurrentLanguageId() {
277                    return _pollsQuestion.getTitleCurrentLanguageId();
278            }
279    
280            public java.lang.String getTitleCurrentValue() {
281                    return _pollsQuestion.getTitleCurrentValue();
282            }
283    
284            /**
285            * Returns a map of the locales and localized titles of this polls question.
286            *
287            * @return the locales and localized titles of this polls question
288            */
289            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
290                    return _pollsQuestion.getTitleMap();
291            }
292    
293            /**
294            * Sets the title of this polls question.
295            *
296            * @param title the title of this polls question
297            */
298            public void setTitle(java.lang.String title) {
299                    _pollsQuestion.setTitle(title);
300            }
301    
302            /**
303            * Sets the localized title of this polls question in the language.
304            *
305            * @param title the localized title of this polls question
306            * @param locale the locale of the language
307            */
308            public void setTitle(java.lang.String title, java.util.Locale locale) {
309                    _pollsQuestion.setTitle(title, locale);
310            }
311    
312            /**
313            * Sets the localized title of this polls question in the language, and sets the default locale.
314            *
315            * @param title the localized title of this polls question
316            * @param locale the locale of the language
317            * @param defaultLocale the default locale
318            */
319            public void setTitle(java.lang.String title, java.util.Locale locale,
320                    java.util.Locale defaultLocale) {
321                    _pollsQuestion.setTitle(title, locale, defaultLocale);
322            }
323    
324            public void setTitleCurrentLanguageId(java.lang.String languageId) {
325                    _pollsQuestion.setTitleCurrentLanguageId(languageId);
326            }
327    
328            /**
329            * Sets the localized titles of this polls question from the map of locales and localized titles.
330            *
331            * @param titleMap the locales and localized titles of this polls question
332            */
333            public void setTitleMap(
334                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
335                    _pollsQuestion.setTitleMap(titleMap);
336            }
337    
338            /**
339            * Sets the localized titles of this polls question from the map of locales and localized titles, and sets the default locale.
340            *
341            * @param titleMap the locales and localized titles of this polls question
342            * @param defaultLocale the default locale
343            */
344            public void setTitleMap(
345                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
346                    java.util.Locale defaultLocale) {
347                    _pollsQuestion.setTitleMap(titleMap, defaultLocale);
348            }
349    
350            /**
351            * Returns the description of this polls question.
352            *
353            * @return the description of this polls question
354            */
355            public java.lang.String getDescription() {
356                    return _pollsQuestion.getDescription();
357            }
358    
359            /**
360            * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
361            *
362            * @param locale the locale of the language
363            * @return the localized description of this polls question
364            */
365            public java.lang.String getDescription(java.util.Locale locale) {
366                    return _pollsQuestion.getDescription(locale);
367            }
368    
369            /**
370            * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
371            *
372            * @param locale the local of the language
373            * @param useDefault whether to use the default language if no localization exists for the requested language
374            * @return the localized description of this polls question. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
375            */
376            public java.lang.String getDescription(java.util.Locale locale,
377                    boolean useDefault) {
378                    return _pollsQuestion.getDescription(locale, useDefault);
379            }
380    
381            /**
382            * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
383            *
384            * @param languageId the ID of the language
385            * @return the localized description of this polls question
386            */
387            public java.lang.String getDescription(java.lang.String languageId) {
388                    return _pollsQuestion.getDescription(languageId);
389            }
390    
391            /**
392            * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
393            *
394            * @param languageId the ID of the language
395            * @param useDefault whether to use the default language if no localization exists for the requested language
396            * @return the localized description of this polls question
397            */
398            public java.lang.String getDescription(java.lang.String languageId,
399                    boolean useDefault) {
400                    return _pollsQuestion.getDescription(languageId, useDefault);
401            }
402    
403            public java.lang.String getDescriptionCurrentLanguageId() {
404                    return _pollsQuestion.getDescriptionCurrentLanguageId();
405            }
406    
407            public java.lang.String getDescriptionCurrentValue() {
408                    return _pollsQuestion.getDescriptionCurrentValue();
409            }
410    
411            /**
412            * Returns a map of the locales and localized descriptions of this polls question.
413            *
414            * @return the locales and localized descriptions of this polls question
415            */
416            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
417                    return _pollsQuestion.getDescriptionMap();
418            }
419    
420            /**
421            * Sets the description of this polls question.
422            *
423            * @param description the description of this polls question
424            */
425            public void setDescription(java.lang.String description) {
426                    _pollsQuestion.setDescription(description);
427            }
428    
429            /**
430            * Sets the localized description of this polls question in the language.
431            *
432            * @param description the localized description of this polls question
433            * @param locale the locale of the language
434            */
435            public void setDescription(java.lang.String description,
436                    java.util.Locale locale) {
437                    _pollsQuestion.setDescription(description, locale);
438            }
439    
440            /**
441            * Sets the localized description of this polls question in the language, and sets the default locale.
442            *
443            * @param description the localized description of this polls question
444            * @param locale the locale of the language
445            * @param defaultLocale the default locale
446            */
447            public void setDescription(java.lang.String description,
448                    java.util.Locale locale, java.util.Locale defaultLocale) {
449                    _pollsQuestion.setDescription(description, locale, defaultLocale);
450            }
451    
452            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
453                    _pollsQuestion.setDescriptionCurrentLanguageId(languageId);
454            }
455    
456            /**
457            * Sets the localized descriptions of this polls question from the map of locales and localized descriptions.
458            *
459            * @param descriptionMap the locales and localized descriptions of this polls question
460            */
461            public void setDescriptionMap(
462                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
463                    _pollsQuestion.setDescriptionMap(descriptionMap);
464            }
465    
466            /**
467            * Sets the localized descriptions of this polls question from the map of locales and localized descriptions, and sets the default locale.
468            *
469            * @param descriptionMap the locales and localized descriptions of this polls question
470            * @param defaultLocale the default locale
471            */
472            public void setDescriptionMap(
473                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
474                    java.util.Locale defaultLocale) {
475                    _pollsQuestion.setDescriptionMap(descriptionMap, defaultLocale);
476            }
477    
478            /**
479            * Returns the expiration date of this polls question.
480            *
481            * @return the expiration date of this polls question
482            */
483            public java.util.Date getExpirationDate() {
484                    return _pollsQuestion.getExpirationDate();
485            }
486    
487            /**
488            * Sets the expiration date of this polls question.
489            *
490            * @param expirationDate the expiration date of this polls question
491            */
492            public void setExpirationDate(java.util.Date expirationDate) {
493                    _pollsQuestion.setExpirationDate(expirationDate);
494            }
495    
496            /**
497            * Returns the last vote date of this polls question.
498            *
499            * @return the last vote date of this polls question
500            */
501            public java.util.Date getLastVoteDate() {
502                    return _pollsQuestion.getLastVoteDate();
503            }
504    
505            /**
506            * Sets the last vote date of this polls question.
507            *
508            * @param lastVoteDate the last vote date of this polls question
509            */
510            public void setLastVoteDate(java.util.Date lastVoteDate) {
511                    _pollsQuestion.setLastVoteDate(lastVoteDate);
512            }
513    
514            public boolean isNew() {
515                    return _pollsQuestion.isNew();
516            }
517    
518            public void setNew(boolean n) {
519                    _pollsQuestion.setNew(n);
520            }
521    
522            public boolean isCachedModel() {
523                    return _pollsQuestion.isCachedModel();
524            }
525    
526            public void setCachedModel(boolean cachedModel) {
527                    _pollsQuestion.setCachedModel(cachedModel);
528            }
529    
530            public boolean isEscapedModel() {
531                    return _pollsQuestion.isEscapedModel();
532            }
533    
534            public java.io.Serializable getPrimaryKeyObj() {
535                    return _pollsQuestion.getPrimaryKeyObj();
536            }
537    
538            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
539                    _pollsQuestion.setPrimaryKeyObj(primaryKeyObj);
540            }
541    
542            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
543                    return _pollsQuestion.getExpandoBridge();
544            }
545    
546            public void setExpandoBridgeAttributes(
547                    com.liferay.portal.service.ServiceContext serviceContext) {
548                    _pollsQuestion.setExpandoBridgeAttributes(serviceContext);
549            }
550    
551            @Override
552            public java.lang.Object clone() {
553                    return new PollsQuestionWrapper((PollsQuestion)_pollsQuestion.clone());
554            }
555    
556            public int compareTo(
557                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
558                    return _pollsQuestion.compareTo(pollsQuestion);
559            }
560    
561            @Override
562            public int hashCode() {
563                    return _pollsQuestion.hashCode();
564            }
565    
566            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsQuestion> toCacheModel() {
567                    return _pollsQuestion.toCacheModel();
568            }
569    
570            public com.liferay.portlet.polls.model.PollsQuestion toEscapedModel() {
571                    return new PollsQuestionWrapper(_pollsQuestion.toEscapedModel());
572            }
573    
574            @Override
575            public java.lang.String toString() {
576                    return _pollsQuestion.toString();
577            }
578    
579            public java.lang.String toXmlString() {
580                    return _pollsQuestion.toXmlString();
581            }
582    
583            public void persist()
584                    throws com.liferay.portal.kernel.exception.SystemException {
585                    _pollsQuestion.persist();
586            }
587    
588            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices()
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return _pollsQuestion.getChoices();
591            }
592    
593            public int getVotesCount()
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return _pollsQuestion.getVotesCount();
596            }
597    
598            public boolean isExpired() {
599                    return _pollsQuestion.isExpired();
600            }
601    
602            public boolean isExpired(
603                    com.liferay.portal.service.ServiceContext serviceContext,
604                    java.util.Date defaultCreateDate) {
605                    return _pollsQuestion.isExpired(serviceContext, defaultCreateDate);
606            }
607    
608            /**
609             * @deprecated Renamed to {@link #getWrappedModel}
610             */
611            public PollsQuestion getWrappedPollsQuestion() {
612                    return _pollsQuestion;
613            }
614    
615            public PollsQuestion getWrappedModel() {
616                    return _pollsQuestion;
617            }
618    
619            public void resetOriginalValues() {
620                    _pollsQuestion.resetOriginalValues();
621            }
622    
623            private PollsQuestion _pollsQuestion;
624    }