001    /**
002     * Copyright (c) 2000-2013 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.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link PollsQuestion}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see PollsQuestion
032     * @generated
033     */
034    public class PollsQuestionWrapper implements PollsQuestion,
035            ModelWrapper<PollsQuestion> {
036            public PollsQuestionWrapper(PollsQuestion pollsQuestion) {
037                    _pollsQuestion = pollsQuestion;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return PollsQuestion.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return PollsQuestion.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("questionId", getQuestionId());
056                    attributes.put("groupId", getGroupId());
057                    attributes.put("companyId", getCompanyId());
058                    attributes.put("userId", getUserId());
059                    attributes.put("userName", getUserName());
060                    attributes.put("createDate", getCreateDate());
061                    attributes.put("modifiedDate", getModifiedDate());
062                    attributes.put("title", getTitle());
063                    attributes.put("description", getDescription());
064                    attributes.put("expirationDate", getExpirationDate());
065                    attributes.put("lastVoteDate", getLastVoteDate());
066    
067                    return attributes;
068            }
069    
070            @Override
071            public void setModelAttributes(Map<String, Object> attributes) {
072                    String uuid = (String)attributes.get("uuid");
073    
074                    if (uuid != null) {
075                            setUuid(uuid);
076                    }
077    
078                    Long questionId = (Long)attributes.get("questionId");
079    
080                    if (questionId != null) {
081                            setQuestionId(questionId);
082                    }
083    
084                    Long groupId = (Long)attributes.get("groupId");
085    
086                    if (groupId != null) {
087                            setGroupId(groupId);
088                    }
089    
090                    Long companyId = (Long)attributes.get("companyId");
091    
092                    if (companyId != null) {
093                            setCompanyId(companyId);
094                    }
095    
096                    Long userId = (Long)attributes.get("userId");
097    
098                    if (userId != null) {
099                            setUserId(userId);
100                    }
101    
102                    String userName = (String)attributes.get("userName");
103    
104                    if (userName != null) {
105                            setUserName(userName);
106                    }
107    
108                    Date createDate = (Date)attributes.get("createDate");
109    
110                    if (createDate != null) {
111                            setCreateDate(createDate);
112                    }
113    
114                    Date modifiedDate = (Date)attributes.get("modifiedDate");
115    
116                    if (modifiedDate != null) {
117                            setModifiedDate(modifiedDate);
118                    }
119    
120                    String title = (String)attributes.get("title");
121    
122                    if (title != null) {
123                            setTitle(title);
124                    }
125    
126                    String description = (String)attributes.get("description");
127    
128                    if (description != null) {
129                            setDescription(description);
130                    }
131    
132                    Date expirationDate = (Date)attributes.get("expirationDate");
133    
134                    if (expirationDate != null) {
135                            setExpirationDate(expirationDate);
136                    }
137    
138                    Date lastVoteDate = (Date)attributes.get("lastVoteDate");
139    
140                    if (lastVoteDate != null) {
141                            setLastVoteDate(lastVoteDate);
142                    }
143            }
144    
145            /**
146            * Returns the primary key of this polls question.
147            *
148            * @return the primary key of this polls question
149            */
150            @Override
151            public long getPrimaryKey() {
152                    return _pollsQuestion.getPrimaryKey();
153            }
154    
155            /**
156            * Sets the primary key of this polls question.
157            *
158            * @param primaryKey the primary key of this polls question
159            */
160            @Override
161            public void setPrimaryKey(long primaryKey) {
162                    _pollsQuestion.setPrimaryKey(primaryKey);
163            }
164    
165            /**
166            * Returns the uuid of this polls question.
167            *
168            * @return the uuid of this polls question
169            */
170            @Override
171            public java.lang.String getUuid() {
172                    return _pollsQuestion.getUuid();
173            }
174    
175            /**
176            * Sets the uuid of this polls question.
177            *
178            * @param uuid the uuid of this polls question
179            */
180            @Override
181            public void setUuid(java.lang.String uuid) {
182                    _pollsQuestion.setUuid(uuid);
183            }
184    
185            /**
186            * Returns the question ID of this polls question.
187            *
188            * @return the question ID of this polls question
189            */
190            @Override
191            public long getQuestionId() {
192                    return _pollsQuestion.getQuestionId();
193            }
194    
195            /**
196            * Sets the question ID of this polls question.
197            *
198            * @param questionId the question ID of this polls question
199            */
200            @Override
201            public void setQuestionId(long questionId) {
202                    _pollsQuestion.setQuestionId(questionId);
203            }
204    
205            /**
206            * Returns the group ID of this polls question.
207            *
208            * @return the group ID of this polls question
209            */
210            @Override
211            public long getGroupId() {
212                    return _pollsQuestion.getGroupId();
213            }
214    
215            /**
216            * Sets the group ID of this polls question.
217            *
218            * @param groupId the group ID of this polls question
219            */
220            @Override
221            public void setGroupId(long groupId) {
222                    _pollsQuestion.setGroupId(groupId);
223            }
224    
225            /**
226            * Returns the company ID of this polls question.
227            *
228            * @return the company ID of this polls question
229            */
230            @Override
231            public long getCompanyId() {
232                    return _pollsQuestion.getCompanyId();
233            }
234    
235            /**
236            * Sets the company ID of this polls question.
237            *
238            * @param companyId the company ID of this polls question
239            */
240            @Override
241            public void setCompanyId(long companyId) {
242                    _pollsQuestion.setCompanyId(companyId);
243            }
244    
245            /**
246            * Returns the user ID of this polls question.
247            *
248            * @return the user ID of this polls question
249            */
250            @Override
251            public long getUserId() {
252                    return _pollsQuestion.getUserId();
253            }
254    
255            /**
256            * Sets the user ID of this polls question.
257            *
258            * @param userId the user ID of this polls question
259            */
260            @Override
261            public void setUserId(long userId) {
262                    _pollsQuestion.setUserId(userId);
263            }
264    
265            /**
266            * Returns the user uuid of this polls question.
267            *
268            * @return the user uuid of this polls question
269            * @throws SystemException if a system exception occurred
270            */
271            @Override
272            public java.lang.String getUserUuid()
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _pollsQuestion.getUserUuid();
275            }
276    
277            /**
278            * Sets the user uuid of this polls question.
279            *
280            * @param userUuid the user uuid of this polls question
281            */
282            @Override
283            public void setUserUuid(java.lang.String userUuid) {
284                    _pollsQuestion.setUserUuid(userUuid);
285            }
286    
287            /**
288            * Returns the user name of this polls question.
289            *
290            * @return the user name of this polls question
291            */
292            @Override
293            public java.lang.String getUserName() {
294                    return _pollsQuestion.getUserName();
295            }
296    
297            /**
298            * Sets the user name of this polls question.
299            *
300            * @param userName the user name of this polls question
301            */
302            @Override
303            public void setUserName(java.lang.String userName) {
304                    _pollsQuestion.setUserName(userName);
305            }
306    
307            /**
308            * Returns the create date of this polls question.
309            *
310            * @return the create date of this polls question
311            */
312            @Override
313            public java.util.Date getCreateDate() {
314                    return _pollsQuestion.getCreateDate();
315            }
316    
317            /**
318            * Sets the create date of this polls question.
319            *
320            * @param createDate the create date of this polls question
321            */
322            @Override
323            public void setCreateDate(java.util.Date createDate) {
324                    _pollsQuestion.setCreateDate(createDate);
325            }
326    
327            /**
328            * Returns the modified date of this polls question.
329            *
330            * @return the modified date of this polls question
331            */
332            @Override
333            public java.util.Date getModifiedDate() {
334                    return _pollsQuestion.getModifiedDate();
335            }
336    
337            /**
338            * Sets the modified date of this polls question.
339            *
340            * @param modifiedDate the modified date of this polls question
341            */
342            @Override
343            public void setModifiedDate(java.util.Date modifiedDate) {
344                    _pollsQuestion.setModifiedDate(modifiedDate);
345            }
346    
347            /**
348            * Returns the title of this polls question.
349            *
350            * @return the title of this polls question
351            */
352            @Override
353            public java.lang.String getTitle() {
354                    return _pollsQuestion.getTitle();
355            }
356    
357            /**
358            * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
359            *
360            * @param locale the locale of the language
361            * @return the localized title of this polls question
362            */
363            @Override
364            public java.lang.String getTitle(java.util.Locale locale) {
365                    return _pollsQuestion.getTitle(locale);
366            }
367    
368            /**
369            * Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language.
370            *
371            * @param locale the local of the language
372            * @param useDefault whether to use the default language if no localization exists for the requested language
373            * @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.
374            */
375            @Override
376            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
377                    return _pollsQuestion.getTitle(locale, useDefault);
378            }
379    
380            /**
381            * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
382            *
383            * @param languageId the ID of the language
384            * @return the localized title of this polls question
385            */
386            @Override
387            public java.lang.String getTitle(java.lang.String languageId) {
388                    return _pollsQuestion.getTitle(languageId);
389            }
390    
391            /**
392            * Returns the localized title 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 title of this polls question
397            */
398            @Override
399            public java.lang.String getTitle(java.lang.String languageId,
400                    boolean useDefault) {
401                    return _pollsQuestion.getTitle(languageId, useDefault);
402            }
403    
404            @Override
405            public java.lang.String getTitleCurrentLanguageId() {
406                    return _pollsQuestion.getTitleCurrentLanguageId();
407            }
408    
409            @Override
410            public java.lang.String getTitleCurrentValue() {
411                    return _pollsQuestion.getTitleCurrentValue();
412            }
413    
414            /**
415            * Returns a map of the locales and localized titles of this polls question.
416            *
417            * @return the locales and localized titles of this polls question
418            */
419            @Override
420            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
421                    return _pollsQuestion.getTitleMap();
422            }
423    
424            /**
425            * Sets the title of this polls question.
426            *
427            * @param title the title of this polls question
428            */
429            @Override
430            public void setTitle(java.lang.String title) {
431                    _pollsQuestion.setTitle(title);
432            }
433    
434            /**
435            * Sets the localized title of this polls question in the language.
436            *
437            * @param title the localized title of this polls question
438            * @param locale the locale of the language
439            */
440            @Override
441            public void setTitle(java.lang.String title, java.util.Locale locale) {
442                    _pollsQuestion.setTitle(title, locale);
443            }
444    
445            /**
446            * Sets the localized title of this polls question in the language, and sets the default locale.
447            *
448            * @param title the localized title of this polls question
449            * @param locale the locale of the language
450            * @param defaultLocale the default locale
451            */
452            @Override
453            public void setTitle(java.lang.String title, java.util.Locale locale,
454                    java.util.Locale defaultLocale) {
455                    _pollsQuestion.setTitle(title, locale, defaultLocale);
456            }
457    
458            @Override
459            public void setTitleCurrentLanguageId(java.lang.String languageId) {
460                    _pollsQuestion.setTitleCurrentLanguageId(languageId);
461            }
462    
463            /**
464            * Sets the localized titles of this polls question from the map of locales and localized titles.
465            *
466            * @param titleMap the locales and localized titles of this polls question
467            */
468            @Override
469            public void setTitleMap(
470                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
471                    _pollsQuestion.setTitleMap(titleMap);
472            }
473    
474            /**
475            * Sets the localized titles of this polls question from the map of locales and localized titles, and sets the default locale.
476            *
477            * @param titleMap the locales and localized titles of this polls question
478            * @param defaultLocale the default locale
479            */
480            @Override
481            public void setTitleMap(
482                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
483                    java.util.Locale defaultLocale) {
484                    _pollsQuestion.setTitleMap(titleMap, defaultLocale);
485            }
486    
487            /**
488            * Returns the description of this polls question.
489            *
490            * @return the description of this polls question
491            */
492            @Override
493            public java.lang.String getDescription() {
494                    return _pollsQuestion.getDescription();
495            }
496    
497            /**
498            * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
499            *
500            * @param locale the locale of the language
501            * @return the localized description of this polls question
502            */
503            @Override
504            public java.lang.String getDescription(java.util.Locale locale) {
505                    return _pollsQuestion.getDescription(locale);
506            }
507    
508            /**
509            * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
510            *
511            * @param locale the local of the language
512            * @param useDefault whether to use the default language if no localization exists for the requested language
513            * @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.
514            */
515            @Override
516            public java.lang.String getDescription(java.util.Locale locale,
517                    boolean useDefault) {
518                    return _pollsQuestion.getDescription(locale, useDefault);
519            }
520    
521            /**
522            * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
523            *
524            * @param languageId the ID of the language
525            * @return the localized description of this polls question
526            */
527            @Override
528            public java.lang.String getDescription(java.lang.String languageId) {
529                    return _pollsQuestion.getDescription(languageId);
530            }
531    
532            /**
533            * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
534            *
535            * @param languageId the ID of the language
536            * @param useDefault whether to use the default language if no localization exists for the requested language
537            * @return the localized description of this polls question
538            */
539            @Override
540            public java.lang.String getDescription(java.lang.String languageId,
541                    boolean useDefault) {
542                    return _pollsQuestion.getDescription(languageId, useDefault);
543            }
544    
545            @Override
546            public java.lang.String getDescriptionCurrentLanguageId() {
547                    return _pollsQuestion.getDescriptionCurrentLanguageId();
548            }
549    
550            @Override
551            public java.lang.String getDescriptionCurrentValue() {
552                    return _pollsQuestion.getDescriptionCurrentValue();
553            }
554    
555            /**
556            * Returns a map of the locales and localized descriptions of this polls question.
557            *
558            * @return the locales and localized descriptions of this polls question
559            */
560            @Override
561            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
562                    return _pollsQuestion.getDescriptionMap();
563            }
564    
565            /**
566            * Sets the description of this polls question.
567            *
568            * @param description the description of this polls question
569            */
570            @Override
571            public void setDescription(java.lang.String description) {
572                    _pollsQuestion.setDescription(description);
573            }
574    
575            /**
576            * Sets the localized description of this polls question in the language.
577            *
578            * @param description the localized description of this polls question
579            * @param locale the locale of the language
580            */
581            @Override
582            public void setDescription(java.lang.String description,
583                    java.util.Locale locale) {
584                    _pollsQuestion.setDescription(description, locale);
585            }
586    
587            /**
588            * Sets the localized description of this polls question in the language, and sets the default locale.
589            *
590            * @param description the localized description of this polls question
591            * @param locale the locale of the language
592            * @param defaultLocale the default locale
593            */
594            @Override
595            public void setDescription(java.lang.String description,
596                    java.util.Locale locale, java.util.Locale defaultLocale) {
597                    _pollsQuestion.setDescription(description, locale, defaultLocale);
598            }
599    
600            @Override
601            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
602                    _pollsQuestion.setDescriptionCurrentLanguageId(languageId);
603            }
604    
605            /**
606            * Sets the localized descriptions of this polls question from the map of locales and localized descriptions.
607            *
608            * @param descriptionMap the locales and localized descriptions of this polls question
609            */
610            @Override
611            public void setDescriptionMap(
612                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
613                    _pollsQuestion.setDescriptionMap(descriptionMap);
614            }
615    
616            /**
617            * Sets the localized descriptions of this polls question from the map of locales and localized descriptions, and sets the default locale.
618            *
619            * @param descriptionMap the locales and localized descriptions of this polls question
620            * @param defaultLocale the default locale
621            */
622            @Override
623            public void setDescriptionMap(
624                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
625                    java.util.Locale defaultLocale) {
626                    _pollsQuestion.setDescriptionMap(descriptionMap, defaultLocale);
627            }
628    
629            /**
630            * Returns the expiration date of this polls question.
631            *
632            * @return the expiration date of this polls question
633            */
634            @Override
635            public java.util.Date getExpirationDate() {
636                    return _pollsQuestion.getExpirationDate();
637            }
638    
639            /**
640            * Sets the expiration date of this polls question.
641            *
642            * @param expirationDate the expiration date of this polls question
643            */
644            @Override
645            public void setExpirationDate(java.util.Date expirationDate) {
646                    _pollsQuestion.setExpirationDate(expirationDate);
647            }
648    
649            /**
650            * Returns the last vote date of this polls question.
651            *
652            * @return the last vote date of this polls question
653            */
654            @Override
655            public java.util.Date getLastVoteDate() {
656                    return _pollsQuestion.getLastVoteDate();
657            }
658    
659            /**
660            * Sets the last vote date of this polls question.
661            *
662            * @param lastVoteDate the last vote date of this polls question
663            */
664            @Override
665            public void setLastVoteDate(java.util.Date lastVoteDate) {
666                    _pollsQuestion.setLastVoteDate(lastVoteDate);
667            }
668    
669            @Override
670            public boolean isNew() {
671                    return _pollsQuestion.isNew();
672            }
673    
674            @Override
675            public void setNew(boolean n) {
676                    _pollsQuestion.setNew(n);
677            }
678    
679            @Override
680            public boolean isCachedModel() {
681                    return _pollsQuestion.isCachedModel();
682            }
683    
684            @Override
685            public void setCachedModel(boolean cachedModel) {
686                    _pollsQuestion.setCachedModel(cachedModel);
687            }
688    
689            @Override
690            public boolean isEscapedModel() {
691                    return _pollsQuestion.isEscapedModel();
692            }
693    
694            @Override
695            public java.io.Serializable getPrimaryKeyObj() {
696                    return _pollsQuestion.getPrimaryKeyObj();
697            }
698    
699            @Override
700            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
701                    _pollsQuestion.setPrimaryKeyObj(primaryKeyObj);
702            }
703    
704            @Override
705            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
706                    return _pollsQuestion.getExpandoBridge();
707            }
708    
709            @Override
710            public void setExpandoBridgeAttributes(
711                    com.liferay.portal.model.BaseModel<?> baseModel) {
712                    _pollsQuestion.setExpandoBridgeAttributes(baseModel);
713            }
714    
715            @Override
716            public void setExpandoBridgeAttributes(
717                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
718                    _pollsQuestion.setExpandoBridgeAttributes(expandoBridge);
719            }
720    
721            @Override
722            public void setExpandoBridgeAttributes(
723                    com.liferay.portal.service.ServiceContext serviceContext) {
724                    _pollsQuestion.setExpandoBridgeAttributes(serviceContext);
725            }
726    
727            @Override
728            public java.lang.String[] getAvailableLanguageIds() {
729                    return _pollsQuestion.getAvailableLanguageIds();
730            }
731    
732            @Override
733            public java.lang.String getDefaultLanguageId() {
734                    return _pollsQuestion.getDefaultLanguageId();
735            }
736    
737            @Override
738            public void prepareLocalizedFieldsForImport()
739                    throws com.liferay.portal.LocaleException {
740                    _pollsQuestion.prepareLocalizedFieldsForImport();
741            }
742    
743            @Override
744            public void prepareLocalizedFieldsForImport(
745                    java.util.Locale defaultImportLocale)
746                    throws com.liferay.portal.LocaleException {
747                    _pollsQuestion.prepareLocalizedFieldsForImport(defaultImportLocale);
748            }
749    
750            @Override
751            public java.lang.Object clone() {
752                    return new PollsQuestionWrapper((PollsQuestion)_pollsQuestion.clone());
753            }
754    
755            @Override
756            public int compareTo(
757                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
758                    return _pollsQuestion.compareTo(pollsQuestion);
759            }
760    
761            @Override
762            public int hashCode() {
763                    return _pollsQuestion.hashCode();
764            }
765    
766            @Override
767            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsQuestion> toCacheModel() {
768                    return _pollsQuestion.toCacheModel();
769            }
770    
771            @Override
772            public com.liferay.portlet.polls.model.PollsQuestion toEscapedModel() {
773                    return new PollsQuestionWrapper(_pollsQuestion.toEscapedModel());
774            }
775    
776            @Override
777            public com.liferay.portlet.polls.model.PollsQuestion toUnescapedModel() {
778                    return new PollsQuestionWrapper(_pollsQuestion.toUnescapedModel());
779            }
780    
781            @Override
782            public java.lang.String toString() {
783                    return _pollsQuestion.toString();
784            }
785    
786            @Override
787            public java.lang.String toXmlString() {
788                    return _pollsQuestion.toXmlString();
789            }
790    
791            @Override
792            public void persist()
793                    throws com.liferay.portal.kernel.exception.SystemException {
794                    _pollsQuestion.persist();
795            }
796    
797            @Override
798            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices()
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    return _pollsQuestion.getChoices();
801            }
802    
803            @Override
804            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getVotes()
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    return _pollsQuestion.getVotes();
807            }
808    
809            @Override
810            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getVotes(
811                    int start, int end)
812                    throws com.liferay.portal.kernel.exception.SystemException {
813                    return _pollsQuestion.getVotes(start, end);
814            }
815    
816            @Override
817            public int getVotesCount()
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    return _pollsQuestion.getVotesCount();
820            }
821    
822            @Override
823            public boolean isExpired() {
824                    return _pollsQuestion.isExpired();
825            }
826    
827            @Override
828            public boolean isExpired(
829                    com.liferay.portal.service.ServiceContext serviceContext,
830                    java.util.Date defaultCreateDate) {
831                    return _pollsQuestion.isExpired(serviceContext, defaultCreateDate);
832            }
833    
834            @Override
835            public boolean equals(Object obj) {
836                    if (this == obj) {
837                            return true;
838                    }
839    
840                    if (!(obj instanceof PollsQuestionWrapper)) {
841                            return false;
842                    }
843    
844                    PollsQuestionWrapper pollsQuestionWrapper = (PollsQuestionWrapper)obj;
845    
846                    if (Validator.equals(_pollsQuestion, pollsQuestionWrapper._pollsQuestion)) {
847                            return true;
848                    }
849    
850                    return false;
851            }
852    
853            @Override
854            public StagedModelType getStagedModelType() {
855                    return _pollsQuestion.getStagedModelType();
856            }
857    
858            /**
859             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
860             */
861            public PollsQuestion getWrappedPollsQuestion() {
862                    return _pollsQuestion;
863            }
864    
865            @Override
866            public PollsQuestion getWrappedModel() {
867                    return _pollsQuestion;
868            }
869    
870            @Override
871            public void resetOriginalValues() {
872                    _pollsQuestion.resetOriginalValues();
873            }
874    
875            private PollsQuestion _pollsQuestion;
876    }