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