001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the localized title of this polls question. Uses the default language if no localization exists for the requested language.
232            *
233            * @param locale the locale to get the localized title for
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            * Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language.
242            *
243            * @param locale the local to get the localized title for
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            * Gets the localized title of this polls question. Uses the default language if no localization exists for the requested language.
253            *
254            * @param languageId the id of the language to get the localized title for
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            * Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language.
263            *
264            * @param languageId the id of the language to get the localized title for
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            /**
274            * Gets a map of the locales and localized title of this polls question.
275            *
276            * @return the locales and localized title
277            */
278            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
279                    return _pollsQuestion.getTitleMap();
280            }
281    
282            /**
283            * Sets the title of this polls question.
284            *
285            * @param title the title of this polls question
286            */
287            public void setTitle(java.lang.String title) {
288                    _pollsQuestion.setTitle(title);
289            }
290    
291            /**
292            * Sets the localized title of this polls question.
293            *
294            * @param locale the locale to set the localized title for
295            * @param title the localized title of this polls question
296            */
297            public void setTitle(java.util.Locale locale, java.lang.String title) {
298                    _pollsQuestion.setTitle(locale, title);
299            }
300    
301            /**
302            * Sets the localized titles of this polls question from the map of locales and localized titles.
303            *
304            * @param titleMap the locales and localized titles of this polls question
305            */
306            public void setTitleMap(
307                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
308                    _pollsQuestion.setTitleMap(titleMap);
309            }
310    
311            /**
312            * Gets the description of this polls question.
313            *
314            * @return the description of this polls question
315            */
316            public java.lang.String getDescription() {
317                    return _pollsQuestion.getDescription();
318            }
319    
320            /**
321            * Gets the localized description of this polls question. Uses the default language if no localization exists for the requested language.
322            *
323            * @param locale the locale to get the localized description for
324            * @return the localized description of this polls question
325            */
326            public java.lang.String getDescription(java.util.Locale locale) {
327                    return _pollsQuestion.getDescription(locale);
328            }
329    
330            /**
331            * Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language.
332            *
333            * @param locale the local to get the localized description for
334            * @param useDefault whether to use the default language if no localization exists for the requested language
335            * @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.
336            */
337            public java.lang.String getDescription(java.util.Locale locale,
338                    boolean useDefault) {
339                    return _pollsQuestion.getDescription(locale, useDefault);
340            }
341    
342            /**
343            * Gets the localized description of this polls question. Uses the default language if no localization exists for the requested language.
344            *
345            * @param languageId the id of the language to get the localized description for
346            * @return the localized description of this polls question
347            */
348            public java.lang.String getDescription(java.lang.String languageId) {
349                    return _pollsQuestion.getDescription(languageId);
350            }
351    
352            /**
353            * Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language.
354            *
355            * @param languageId the id of the language to get the localized description for
356            * @param useDefault whether to use the default language if no localization exists for the requested language
357            * @return the localized description of this polls question
358            */
359            public java.lang.String getDescription(java.lang.String languageId,
360                    boolean useDefault) {
361                    return _pollsQuestion.getDescription(languageId, useDefault);
362            }
363    
364            /**
365            * Gets a map of the locales and localized description of this polls question.
366            *
367            * @return the locales and localized description
368            */
369            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
370                    return _pollsQuestion.getDescriptionMap();
371            }
372    
373            /**
374            * Sets the description of this polls question.
375            *
376            * @param description the description of this polls question
377            */
378            public void setDescription(java.lang.String description) {
379                    _pollsQuestion.setDescription(description);
380            }
381    
382            /**
383            * Sets the localized description of this polls question.
384            *
385            * @param locale the locale to set the localized description for
386            * @param description the localized description of this polls question
387            */
388            public void setDescription(java.util.Locale locale,
389                    java.lang.String description) {
390                    _pollsQuestion.setDescription(locale, description);
391            }
392    
393            /**
394            * Sets the localized descriptions of this polls question from the map of locales and localized descriptions.
395            *
396            * @param descriptionMap the locales and localized descriptions of this polls question
397            */
398            public void setDescriptionMap(
399                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
400                    _pollsQuestion.setDescriptionMap(descriptionMap);
401            }
402    
403            /**
404            * Gets the expiration date of this polls question.
405            *
406            * @return the expiration date of this polls question
407            */
408            public java.util.Date getExpirationDate() {
409                    return _pollsQuestion.getExpirationDate();
410            }
411    
412            /**
413            * Sets the expiration date of this polls question.
414            *
415            * @param expirationDate the expiration date of this polls question
416            */
417            public void setExpirationDate(java.util.Date expirationDate) {
418                    _pollsQuestion.setExpirationDate(expirationDate);
419            }
420    
421            /**
422            * Gets the last vote date of this polls question.
423            *
424            * @return the last vote date of this polls question
425            */
426            public java.util.Date getLastVoteDate() {
427                    return _pollsQuestion.getLastVoteDate();
428            }
429    
430            /**
431            * Sets the last vote date of this polls question.
432            *
433            * @param lastVoteDate the last vote date of this polls question
434            */
435            public void setLastVoteDate(java.util.Date lastVoteDate) {
436                    _pollsQuestion.setLastVoteDate(lastVoteDate);
437            }
438    
439            public boolean isNew() {
440                    return _pollsQuestion.isNew();
441            }
442    
443            public void setNew(boolean n) {
444                    _pollsQuestion.setNew(n);
445            }
446    
447            public boolean isCachedModel() {
448                    return _pollsQuestion.isCachedModel();
449            }
450    
451            public void setCachedModel(boolean cachedModel) {
452                    _pollsQuestion.setCachedModel(cachedModel);
453            }
454    
455            public boolean isEscapedModel() {
456                    return _pollsQuestion.isEscapedModel();
457            }
458    
459            public void setEscapedModel(boolean escapedModel) {
460                    _pollsQuestion.setEscapedModel(escapedModel);
461            }
462    
463            public java.io.Serializable getPrimaryKeyObj() {
464                    return _pollsQuestion.getPrimaryKeyObj();
465            }
466    
467            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
468                    _pollsQuestion.setPrimaryKeyObj(primaryKeyObj);
469            }
470    
471            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
472                    return _pollsQuestion.getExpandoBridge();
473            }
474    
475            public void setExpandoBridgeAttributes(
476                    com.liferay.portal.service.ServiceContext serviceContext) {
477                    _pollsQuestion.setExpandoBridgeAttributes(serviceContext);
478            }
479    
480            @Override
481            public java.lang.Object clone() {
482                    return new PollsQuestionWrapper((PollsQuestion)_pollsQuestion.clone());
483            }
484    
485            public int compareTo(
486                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
487                    return _pollsQuestion.compareTo(pollsQuestion);
488            }
489    
490            @Override
491            public int hashCode() {
492                    return _pollsQuestion.hashCode();
493            }
494    
495            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsQuestion> toCacheModel() {
496                    return _pollsQuestion.toCacheModel();
497            }
498    
499            public com.liferay.portlet.polls.model.PollsQuestion toEscapedModel() {
500                    return new PollsQuestionWrapper(_pollsQuestion.toEscapedModel());
501            }
502    
503            @Override
504            public java.lang.String toString() {
505                    return _pollsQuestion.toString();
506            }
507    
508            public java.lang.String toXmlString() {
509                    return _pollsQuestion.toXmlString();
510            }
511    
512            public void persist()
513                    throws com.liferay.portal.kernel.exception.SystemException {
514                    _pollsQuestion.persist();
515            }
516    
517            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices()
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return _pollsQuestion.getChoices();
520            }
521    
522            public int getVotesCount()
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return _pollsQuestion.getVotesCount();
525            }
526    
527            public boolean isExpired() {
528                    return _pollsQuestion.isExpired();
529            }
530    
531            public boolean isExpired(
532                    com.liferay.portal.service.ServiceContext serviceContext,
533                    java.util.Date defaultCreateDate) {
534                    return _pollsQuestion.isExpired(serviceContext, defaultCreateDate);
535            }
536    
537            public PollsQuestion getWrappedPollsQuestion() {
538                    return _pollsQuestion;
539            }
540    
541            public void resetOriginalValues() {
542                    _pollsQuestion.resetOriginalValues();
543            }
544    
545            private PollsQuestion _pollsQuestion;
546    }