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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the localized description of this polls choice. Uses the default language if no localization exists for the requested language.
140            *
141            * @param locale the locale to get the localized description for
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            * Gets the localized description of this polls choice, optionally using the default language if no localization exists for the requested language.
150            *
151            * @param locale the local to get the localized description for
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            * Gets the localized description of this polls choice. Uses the default language if no localization exists for the requested language.
162            *
163            * @param languageId the id of the language to get the localized description for
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            * Gets the localized description of this polls choice, optionally using the default language if no localization exists for the requested language.
172            *
173            * @param languageId the id of the language to get the localized description for
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            /**
183            * Gets a map of the locales and localized description of this polls choice.
184            *
185            * @return the locales and localized description
186            */
187            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
188                    return _pollsChoice.getDescriptionMap();
189            }
190    
191            /**
192            * Sets the description of this polls choice.
193            *
194            * @param description the description of this polls choice
195            */
196            public void setDescription(java.lang.String description) {
197                    _pollsChoice.setDescription(description);
198            }
199    
200            /**
201            * Sets the localized description of this polls choice.
202            *
203            * @param locale the locale to set the localized description for
204            * @param description the localized description of this polls choice
205            */
206            public void setDescription(java.util.Locale locale,
207                    java.lang.String description) {
208                    _pollsChoice.setDescription(locale, description);
209            }
210    
211            /**
212            * Sets the localized descriptions of this polls choice from the map of locales and localized descriptions.
213            *
214            * @param descriptionMap the locales and localized descriptions of this polls choice
215            */
216            public void setDescriptionMap(
217                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
218                    _pollsChoice.setDescriptionMap(descriptionMap);
219            }
220    
221            public boolean isNew() {
222                    return _pollsChoice.isNew();
223            }
224    
225            public void setNew(boolean n) {
226                    _pollsChoice.setNew(n);
227            }
228    
229            public boolean isCachedModel() {
230                    return _pollsChoice.isCachedModel();
231            }
232    
233            public void setCachedModel(boolean cachedModel) {
234                    _pollsChoice.setCachedModel(cachedModel);
235            }
236    
237            public boolean isEscapedModel() {
238                    return _pollsChoice.isEscapedModel();
239            }
240    
241            public void setEscapedModel(boolean escapedModel) {
242                    _pollsChoice.setEscapedModel(escapedModel);
243            }
244    
245            public java.io.Serializable getPrimaryKeyObj() {
246                    return _pollsChoice.getPrimaryKeyObj();
247            }
248    
249            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
250                    _pollsChoice.setPrimaryKeyObj(primaryKeyObj);
251            }
252    
253            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
254                    return _pollsChoice.getExpandoBridge();
255            }
256    
257            public void setExpandoBridgeAttributes(
258                    com.liferay.portal.service.ServiceContext serviceContext) {
259                    _pollsChoice.setExpandoBridgeAttributes(serviceContext);
260            }
261    
262            @Override
263            public java.lang.Object clone() {
264                    return new PollsChoiceWrapper((PollsChoice)_pollsChoice.clone());
265            }
266    
267            public int compareTo(
268                    com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
269                    return _pollsChoice.compareTo(pollsChoice);
270            }
271    
272            @Override
273            public int hashCode() {
274                    return _pollsChoice.hashCode();
275            }
276    
277            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsChoice> toCacheModel() {
278                    return _pollsChoice.toCacheModel();
279            }
280    
281            public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
282                    return new PollsChoiceWrapper(_pollsChoice.toEscapedModel());
283            }
284    
285            @Override
286            public java.lang.String toString() {
287                    return _pollsChoice.toString();
288            }
289    
290            public java.lang.String toXmlString() {
291                    return _pollsChoice.toXmlString();
292            }
293    
294            public void persist()
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    _pollsChoice.persist();
297            }
298    
299            public int getVotesCount()
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return _pollsChoice.getVotesCount();
302            }
303    
304            public PollsChoice getWrappedPollsChoice() {
305                    return _pollsChoice;
306            }
307    
308            public void resetOriginalValues() {
309                    _pollsChoice.resetOriginalValues();
310            }
311    
312            private PollsChoice _pollsChoice;
313    }