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