001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link PollsVote}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       PollsVote
026     * @generated
027     */
028    public class PollsVoteWrapper implements PollsVote, ModelWrapper<PollsVote> {
029            public PollsVoteWrapper(PollsVote pollsVote) {
030                    _pollsVote = pollsVote;
031            }
032    
033            public Class<?> getModelClass() {
034                    return PollsVote.class;
035            }
036    
037            public String getModelClassName() {
038                    return PollsVote.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this polls vote.
043            *
044            * @return the primary key of this polls vote
045            */
046            public long getPrimaryKey() {
047                    return _pollsVote.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this polls vote.
052            *
053            * @param primaryKey the primary key of this polls vote
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _pollsVote.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the vote ID of this polls vote.
061            *
062            * @return the vote ID of this polls vote
063            */
064            public long getVoteId() {
065                    return _pollsVote.getVoteId();
066            }
067    
068            /**
069            * Sets the vote ID of this polls vote.
070            *
071            * @param voteId the vote ID of this polls vote
072            */
073            public void setVoteId(long voteId) {
074                    _pollsVote.setVoteId(voteId);
075            }
076    
077            /**
078            * Returns the company ID of this polls vote.
079            *
080            * @return the company ID of this polls vote
081            */
082            public long getCompanyId() {
083                    return _pollsVote.getCompanyId();
084            }
085    
086            /**
087            * Sets the company ID of this polls vote.
088            *
089            * @param companyId the company ID of this polls vote
090            */
091            public void setCompanyId(long companyId) {
092                    _pollsVote.setCompanyId(companyId);
093            }
094    
095            /**
096            * Returns the user ID of this polls vote.
097            *
098            * @return the user ID of this polls vote
099            */
100            public long getUserId() {
101                    return _pollsVote.getUserId();
102            }
103    
104            /**
105            * Sets the user ID of this polls vote.
106            *
107            * @param userId the user ID of this polls vote
108            */
109            public void setUserId(long userId) {
110                    _pollsVote.setUserId(userId);
111            }
112    
113            /**
114            * Returns the user uuid of this polls vote.
115            *
116            * @return the user uuid of this polls vote
117            * @throws SystemException if a system exception occurred
118            */
119            public java.lang.String getUserUuid()
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return _pollsVote.getUserUuid();
122            }
123    
124            /**
125            * Sets the user uuid of this polls vote.
126            *
127            * @param userUuid the user uuid of this polls vote
128            */
129            public void setUserUuid(java.lang.String userUuid) {
130                    _pollsVote.setUserUuid(userUuid);
131            }
132    
133            /**
134            * Returns the user name of this polls vote.
135            *
136            * @return the user name of this polls vote
137            */
138            public java.lang.String getUserName() {
139                    return _pollsVote.getUserName();
140            }
141    
142            /**
143            * Sets the user name of this polls vote.
144            *
145            * @param userName the user name of this polls vote
146            */
147            public void setUserName(java.lang.String userName) {
148                    _pollsVote.setUserName(userName);
149            }
150    
151            /**
152            * Returns the create date of this polls vote.
153            *
154            * @return the create date of this polls vote
155            */
156            public java.util.Date getCreateDate() {
157                    return _pollsVote.getCreateDate();
158            }
159    
160            /**
161            * Sets the create date of this polls vote.
162            *
163            * @param createDate the create date of this polls vote
164            */
165            public void setCreateDate(java.util.Date createDate) {
166                    _pollsVote.setCreateDate(createDate);
167            }
168    
169            /**
170            * Returns the modified date of this polls vote.
171            *
172            * @return the modified date of this polls vote
173            */
174            public java.util.Date getModifiedDate() {
175                    return _pollsVote.getModifiedDate();
176            }
177    
178            /**
179            * Sets the modified date of this polls vote.
180            *
181            * @param modifiedDate the modified date of this polls vote
182            */
183            public void setModifiedDate(java.util.Date modifiedDate) {
184                    _pollsVote.setModifiedDate(modifiedDate);
185            }
186    
187            /**
188            * Returns the question ID of this polls vote.
189            *
190            * @return the question ID of this polls vote
191            */
192            public long getQuestionId() {
193                    return _pollsVote.getQuestionId();
194            }
195    
196            /**
197            * Sets the question ID of this polls vote.
198            *
199            * @param questionId the question ID of this polls vote
200            */
201            public void setQuestionId(long questionId) {
202                    _pollsVote.setQuestionId(questionId);
203            }
204    
205            /**
206            * Returns the choice ID of this polls vote.
207            *
208            * @return the choice ID of this polls vote
209            */
210            public long getChoiceId() {
211                    return _pollsVote.getChoiceId();
212            }
213    
214            /**
215            * Sets the choice ID of this polls vote.
216            *
217            * @param choiceId the choice ID of this polls vote
218            */
219            public void setChoiceId(long choiceId) {
220                    _pollsVote.setChoiceId(choiceId);
221            }
222    
223            /**
224            * Returns the vote date of this polls vote.
225            *
226            * @return the vote date of this polls vote
227            */
228            public java.util.Date getVoteDate() {
229                    return _pollsVote.getVoteDate();
230            }
231    
232            /**
233            * Sets the vote date of this polls vote.
234            *
235            * @param voteDate the vote date of this polls vote
236            */
237            public void setVoteDate(java.util.Date voteDate) {
238                    _pollsVote.setVoteDate(voteDate);
239            }
240    
241            public boolean isNew() {
242                    return _pollsVote.isNew();
243            }
244    
245            public void setNew(boolean n) {
246                    _pollsVote.setNew(n);
247            }
248    
249            public boolean isCachedModel() {
250                    return _pollsVote.isCachedModel();
251            }
252    
253            public void setCachedModel(boolean cachedModel) {
254                    _pollsVote.setCachedModel(cachedModel);
255            }
256    
257            public boolean isEscapedModel() {
258                    return _pollsVote.isEscapedModel();
259            }
260    
261            public java.io.Serializable getPrimaryKeyObj() {
262                    return _pollsVote.getPrimaryKeyObj();
263            }
264    
265            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
266                    _pollsVote.setPrimaryKeyObj(primaryKeyObj);
267            }
268    
269            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
270                    return _pollsVote.getExpandoBridge();
271            }
272    
273            public void setExpandoBridgeAttributes(
274                    com.liferay.portal.service.ServiceContext serviceContext) {
275                    _pollsVote.setExpandoBridgeAttributes(serviceContext);
276            }
277    
278            @Override
279            public java.lang.Object clone() {
280                    return new PollsVoteWrapper((PollsVote)_pollsVote.clone());
281            }
282    
283            public int compareTo(com.liferay.portlet.polls.model.PollsVote pollsVote) {
284                    return _pollsVote.compareTo(pollsVote);
285            }
286    
287            @Override
288            public int hashCode() {
289                    return _pollsVote.hashCode();
290            }
291    
292            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsVote> toCacheModel() {
293                    return _pollsVote.toCacheModel();
294            }
295    
296            public com.liferay.portlet.polls.model.PollsVote toEscapedModel() {
297                    return new PollsVoteWrapper(_pollsVote.toEscapedModel());
298            }
299    
300            @Override
301            public java.lang.String toString() {
302                    return _pollsVote.toString();
303            }
304    
305            public java.lang.String toXmlString() {
306                    return _pollsVote.toXmlString();
307            }
308    
309            public void persist()
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    _pollsVote.persist();
312            }
313    
314            public com.liferay.portlet.polls.model.PollsChoice getChoice()
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return _pollsVote.getChoice();
318            }
319    
320            /**
321             * @deprecated Renamed to {@link #getWrappedModel}
322             */
323            public PollsVote getWrappedPollsVote() {
324                    return _pollsVote;
325            }
326    
327            public PollsVote getWrappedModel() {
328                    return _pollsVote;
329            }
330    
331            public void resetOriginalValues() {
332                    _pollsVote.resetOriginalValues();
333            }
334    
335            private PollsVote _pollsVote;
336    }