001    /**
002     * Copyright (c) 2000-2010 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 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            /**
032            * Gets the primary key of this polls choice.
033            *
034            * @return the primary key of this polls choice
035            */
036            public long getPrimaryKey() {
037                    return _pollsChoice.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this polls choice
042            *
043            * @param pk the primary key of this polls choice
044            */
045            public void setPrimaryKey(long pk) {
046                    _pollsChoice.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the uuid of this polls choice.
051            *
052            * @return the uuid of this polls choice
053            */
054            public java.lang.String getUuid() {
055                    return _pollsChoice.getUuid();
056            }
057    
058            /**
059            * Sets the uuid of this polls choice.
060            *
061            * @param uuid the uuid of this polls choice
062            */
063            public void setUuid(java.lang.String uuid) {
064                    _pollsChoice.setUuid(uuid);
065            }
066    
067            /**
068            * Gets the choice id of this polls choice.
069            *
070            * @return the choice id of this polls choice
071            */
072            public long getChoiceId() {
073                    return _pollsChoice.getChoiceId();
074            }
075    
076            /**
077            * Sets the choice id of this polls choice.
078            *
079            * @param choiceId the choice id of this polls choice
080            */
081            public void setChoiceId(long choiceId) {
082                    _pollsChoice.setChoiceId(choiceId);
083            }
084    
085            /**
086            * Gets the question id of this polls choice.
087            *
088            * @return the question id of this polls choice
089            */
090            public long getQuestionId() {
091                    return _pollsChoice.getQuestionId();
092            }
093    
094            /**
095            * Sets the question id of this polls choice.
096            *
097            * @param questionId the question id of this polls choice
098            */
099            public void setQuestionId(long questionId) {
100                    _pollsChoice.setQuestionId(questionId);
101            }
102    
103            /**
104            * Gets the name of this polls choice.
105            *
106            * @return the name of this polls choice
107            */
108            public java.lang.String getName() {
109                    return _pollsChoice.getName();
110            }
111    
112            /**
113            * Sets the name of this polls choice.
114            *
115            * @param name the name of this polls choice
116            */
117            public void setName(java.lang.String name) {
118                    _pollsChoice.setName(name);
119            }
120    
121            /**
122            * Gets the description of this polls choice.
123            *
124            * @return the description of this polls choice
125            */
126            public java.lang.String getDescription() {
127                    return _pollsChoice.getDescription();
128            }
129    
130            /**
131            * Gets the localized description of this polls choice. Uses the default language if no localization exists for the requested language.
132            *
133            * @param locale the locale to get the localized description for
134            * @return the localized description of this polls choice
135            */
136            public java.lang.String getDescription(java.util.Locale locale) {
137                    return _pollsChoice.getDescription(locale);
138            }
139    
140            /**
141            * Gets the localized description of this polls choice, optionally using the default language if no localization exists for the requested language.
142            *
143            * @param locale the local to get the localized description for
144            * @param useDefault whether to use the default language if no localization exists for the requested language
145            * @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.
146            */
147            public java.lang.String getDescription(java.util.Locale locale,
148                    boolean useDefault) {
149                    return _pollsChoice.getDescription(locale, useDefault);
150            }
151    
152            /**
153            * Gets the localized description of this polls choice. Uses the default language if no localization exists for the requested language.
154            *
155            * @param languageId the id of the language to get the localized description for
156            * @return the localized description of this polls choice
157            */
158            public java.lang.String getDescription(java.lang.String languageId) {
159                    return _pollsChoice.getDescription(languageId);
160            }
161    
162            /**
163            * Gets the localized description of this polls choice, optionally using the default language if no localization exists for the requested language.
164            *
165            * @param languageId the id of the language to get the localized description for
166            * @param useDefault whether to use the default language if no localization exists for the requested language
167            * @return the localized description of this polls choice
168            */
169            public java.lang.String getDescription(java.lang.String languageId,
170                    boolean useDefault) {
171                    return _pollsChoice.getDescription(languageId, useDefault);
172            }
173    
174            /**
175            * Gets a map of the locales and localized description of this polls choice.
176            *
177            * @return the locales and localized description
178            */
179            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
180                    return _pollsChoice.getDescriptionMap();
181            }
182    
183            /**
184            * Sets the description of this polls choice.
185            *
186            * @param description the description of this polls choice
187            */
188            public void setDescription(java.lang.String description) {
189                    _pollsChoice.setDescription(description);
190            }
191    
192            /**
193            * Sets the localized description of this polls choice.
194            *
195            * @param locale the locale to set the localized description for
196            * @param description the localized description of this polls choice
197            */
198            public void setDescription(java.util.Locale locale,
199                    java.lang.String description) {
200                    _pollsChoice.setDescription(locale, description);
201            }
202    
203            /**
204            * Sets the localized descriptions of this polls choice from the map of locales and localized descriptions.
205            *
206            * @param descriptionMap the locales and localized descriptions of this polls choice
207            */
208            public void setDescriptionMap(
209                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
210                    _pollsChoice.setDescriptionMap(descriptionMap);
211            }
212    
213            public boolean isNew() {
214                    return _pollsChoice.isNew();
215            }
216    
217            public void setNew(boolean n) {
218                    _pollsChoice.setNew(n);
219            }
220    
221            public boolean isCachedModel() {
222                    return _pollsChoice.isCachedModel();
223            }
224    
225            public void setCachedModel(boolean cachedModel) {
226                    _pollsChoice.setCachedModel(cachedModel);
227            }
228    
229            public boolean isEscapedModel() {
230                    return _pollsChoice.isEscapedModel();
231            }
232    
233            public void setEscapedModel(boolean escapedModel) {
234                    _pollsChoice.setEscapedModel(escapedModel);
235            }
236    
237            public java.io.Serializable getPrimaryKeyObj() {
238                    return _pollsChoice.getPrimaryKeyObj();
239            }
240    
241            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
242                    return _pollsChoice.getExpandoBridge();
243            }
244    
245            public void setExpandoBridgeAttributes(
246                    com.liferay.portal.service.ServiceContext serviceContext) {
247                    _pollsChoice.setExpandoBridgeAttributes(serviceContext);
248            }
249    
250            public java.lang.Object clone() {
251                    return _pollsChoice.clone();
252            }
253    
254            public int compareTo(
255                    com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
256                    return _pollsChoice.compareTo(pollsChoice);
257            }
258    
259            public int hashCode() {
260                    return _pollsChoice.hashCode();
261            }
262    
263            public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
264                    return _pollsChoice.toEscapedModel();
265            }
266    
267            public java.lang.String toString() {
268                    return _pollsChoice.toString();
269            }
270    
271            public java.lang.String toXmlString() {
272                    return _pollsChoice.toXmlString();
273            }
274    
275            public int getVotesCount()
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return _pollsChoice.getVotesCount();
278            }
279    
280            public PollsChoice getWrappedPollsChoice() {
281                    return _pollsChoice;
282            }
283    
284            private PollsChoice _pollsChoice;
285    }