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 PollsChoice}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PollsChoice
024     * @generated
025     */
026    public class PollsChoiceWrapper implements PollsChoice {
027            public PollsChoiceWrapper(PollsChoice pollsChoice) {
028                    _pollsChoice = pollsChoice;
029            }
030    
031            public Class<?> getModelClass() {
032                    return PollsChoice.class;
033            }
034    
035            public String getModelClassName() {
036                    return PollsChoice.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this polls choice.
041            *
042            * @return the primary key of this polls choice
043            */
044            public long getPrimaryKey() {
045                    return _pollsChoice.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this polls choice.
050            *
051            * @param primaryKey the primary key of this polls choice
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _pollsChoice.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this polls choice.
059            *
060            * @return the uuid of this polls choice
061            */
062            public java.lang.String getUuid() {
063                    return _pollsChoice.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this polls choice.
068            *
069            * @param uuid the uuid of this polls choice
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _pollsChoice.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the choice ID of this polls choice.
077            *
078            * @return the choice ID of this polls choice
079            */
080            public long getChoiceId() {
081                    return _pollsChoice.getChoiceId();
082            }
083    
084            /**
085            * Sets the choice ID of this polls choice.
086            *
087            * @param choiceId the choice ID of this polls choice
088            */
089            public void setChoiceId(long choiceId) {
090                    _pollsChoice.setChoiceId(choiceId);
091            }
092    
093            /**
094            * Returns the question ID of this polls choice.
095            *
096            * @return the question ID of this polls choice
097            */
098            public long getQuestionId() {
099                    return _pollsChoice.getQuestionId();
100            }
101    
102            /**
103            * Sets the question ID of this polls choice.
104            *
105            * @param questionId the question ID of this polls choice
106            */
107            public void setQuestionId(long questionId) {
108                    _pollsChoice.setQuestionId(questionId);
109            }
110    
111            /**
112            * Returns the name of this polls choice.
113            *
114            * @return the name of this polls choice
115            */
116            public java.lang.String getName() {
117                    return _pollsChoice.getName();
118            }
119    
120            /**
121            * Sets the name of this polls choice.
122            *
123            * @param name the name of this polls choice
124            */
125            public void setName(java.lang.String name) {
126                    _pollsChoice.setName(name);
127            }
128    
129            /**
130            * Returns the description of this polls choice.
131            *
132            * @return the description of this polls choice
133            */
134            public java.lang.String getDescription() {
135                    return _pollsChoice.getDescription();
136            }
137    
138            /**
139            * Returns the localized description of this polls choice in the language. Uses the default language if no localization exists for the requested language.
140            *
141            * @param locale the locale of the language
142            * @return the localized description of this polls choice
143            */
144            public java.lang.String getDescription(java.util.Locale locale) {
145                    return _pollsChoice.getDescription(locale);
146            }
147    
148            /**
149            * Returns the localized description of this polls choice in the language, optionally using the default language if no localization exists for the requested language.
150            *
151            * @param locale the local of the language
152            * @param useDefault whether to use the default language if no localization exists for the requested language
153            * @return the localized description of this polls choice. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
154            */
155            public java.lang.String getDescription(java.util.Locale locale,
156                    boolean useDefault) {
157                    return _pollsChoice.getDescription(locale, useDefault);
158            }
159    
160            /**
161            * Returns the localized description of this polls choice in the language. Uses the default language if no localization exists for the requested language.
162            *
163            * @param languageId the ID of the language
164            * @return the localized description of this polls choice
165            */
166            public java.lang.String getDescription(java.lang.String languageId) {
167                    return _pollsChoice.getDescription(languageId);
168            }
169    
170            /**
171            * Returns the localized description of this polls choice in the language, optionally using the default language if no localization exists for the requested language.
172            *
173            * @param languageId the ID of the language
174            * @param useDefault whether to use the default language if no localization exists for the requested language
175            * @return the localized description of this polls choice
176            */
177            public java.lang.String getDescription(java.lang.String languageId,
178                    boolean useDefault) {
179                    return _pollsChoice.getDescription(languageId, useDefault);
180            }
181    
182            public java.lang.String getDescriptionCurrentLanguageId() {
183                    return _pollsChoice.getDescriptionCurrentLanguageId();
184            }
185    
186            public java.lang.String getDescriptionCurrentValue() {
187                    return _pollsChoice.getDescriptionCurrentValue();
188            }
189    
190            /**
191            * Returns a map of the locales and localized descriptions of this polls choice.
192            *
193            * @return the locales and localized descriptions of this polls choice
194            */
195            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
196                    return _pollsChoice.getDescriptionMap();
197            }
198    
199            /**
200            * Sets the description of this polls choice.
201            *
202            * @param description the description of this polls choice
203            */
204            public void setDescription(java.lang.String description) {
205                    _pollsChoice.setDescription(description);
206            }
207    
208            /**
209            * Sets the localized description of this polls choice in the language.
210            *
211            * @param description the localized description of this polls choice
212            * @param locale the locale of the language
213            */
214            public void setDescription(java.lang.String description,
215                    java.util.Locale locale) {
216                    _pollsChoice.setDescription(description, locale);
217            }
218    
219            /**
220            * Sets the localized description of this polls choice in the language, and sets the default locale.
221            *
222            * @param description the localized description of this polls choice
223            * @param locale the locale of the language
224            * @param defaultLocale the default locale
225            */
226            public void setDescription(java.lang.String description,
227                    java.util.Locale locale, java.util.Locale defaultLocale) {
228                    _pollsChoice.setDescription(description, locale, defaultLocale);
229            }
230    
231            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
232                    _pollsChoice.setDescriptionCurrentLanguageId(languageId);
233            }
234    
235            /**
236            * Sets the localized descriptions of this polls choice from the map of locales and localized descriptions.
237            *
238            * @param descriptionMap the locales and localized descriptions of this polls choice
239            */
240            public void setDescriptionMap(
241                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
242                    _pollsChoice.setDescriptionMap(descriptionMap);
243            }
244    
245            /**
246            * Sets the localized descriptions of this polls choice from the map of locales and localized descriptions, and sets the default locale.
247            *
248            * @param descriptionMap the locales and localized descriptions of this polls choice
249            * @param defaultLocale the default locale
250            */
251            public void setDescriptionMap(
252                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
253                    java.util.Locale defaultLocale) {
254                    _pollsChoice.setDescriptionMap(descriptionMap, defaultLocale);
255            }
256    
257            public boolean isNew() {
258                    return _pollsChoice.isNew();
259            }
260    
261            public void setNew(boolean n) {
262                    _pollsChoice.setNew(n);
263            }
264    
265            public boolean isCachedModel() {
266                    return _pollsChoice.isCachedModel();
267            }
268    
269            public void setCachedModel(boolean cachedModel) {
270                    _pollsChoice.setCachedModel(cachedModel);
271            }
272    
273            public boolean isEscapedModel() {
274                    return _pollsChoice.isEscapedModel();
275            }
276    
277            public java.io.Serializable getPrimaryKeyObj() {
278                    return _pollsChoice.getPrimaryKeyObj();
279            }
280    
281            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
282                    _pollsChoice.setPrimaryKeyObj(primaryKeyObj);
283            }
284    
285            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
286                    return _pollsChoice.getExpandoBridge();
287            }
288    
289            public void setExpandoBridgeAttributes(
290                    com.liferay.portal.service.ServiceContext serviceContext) {
291                    _pollsChoice.setExpandoBridgeAttributes(serviceContext);
292            }
293    
294            @Override
295            public java.lang.Object clone() {
296                    return new PollsChoiceWrapper((PollsChoice)_pollsChoice.clone());
297            }
298    
299            public int compareTo(
300                    com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
301                    return _pollsChoice.compareTo(pollsChoice);
302            }
303    
304            @Override
305            public int hashCode() {
306                    return _pollsChoice.hashCode();
307            }
308    
309            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsChoice> toCacheModel() {
310                    return _pollsChoice.toCacheModel();
311            }
312    
313            public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
314                    return new PollsChoiceWrapper(_pollsChoice.toEscapedModel());
315            }
316    
317            @Override
318            public java.lang.String toString() {
319                    return _pollsChoice.toString();
320            }
321    
322            public java.lang.String toXmlString() {
323                    return _pollsChoice.toXmlString();
324            }
325    
326            public void persist()
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    _pollsChoice.persist();
329            }
330    
331            public int getVotesCount()
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _pollsChoice.getVotesCount();
334            }
335    
336            public PollsChoice getWrappedPollsChoice() {
337                    return _pollsChoice;
338            }
339    
340            public void resetOriginalValues() {
341                    _pollsChoice.resetOriginalValues();
342            }
343    
344            private PollsChoice _pollsChoice;
345    }