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 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            /**
032            * Gets the primary key of this polls vote.
033            *
034            * @return the primary key of this polls vote
035            */
036            public long getPrimaryKey() {
037                    return _pollsVote.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this polls vote
042            *
043            * @param pk the primary key of this polls vote
044            */
045            public void setPrimaryKey(long pk) {
046                    _pollsVote.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the vote id of this polls vote.
051            *
052            * @return the vote id of this polls vote
053            */
054            public long getVoteId() {
055                    return _pollsVote.getVoteId();
056            }
057    
058            /**
059            * Sets the vote id of this polls vote.
060            *
061            * @param voteId the vote id of this polls vote
062            */
063            public void setVoteId(long voteId) {
064                    _pollsVote.setVoteId(voteId);
065            }
066    
067            /**
068            * Gets the user id of this polls vote.
069            *
070            * @return the user id of this polls vote
071            */
072            public long getUserId() {
073                    return _pollsVote.getUserId();
074            }
075    
076            /**
077            * Sets the user id of this polls vote.
078            *
079            * @param userId the user id of this polls vote
080            */
081            public void setUserId(long userId) {
082                    _pollsVote.setUserId(userId);
083            }
084    
085            /**
086            * Gets the user uuid of this polls vote.
087            *
088            * @return the user uuid of this polls vote
089            * @throws SystemException if a system exception occurred
090            */
091            public java.lang.String getUserUuid()
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _pollsVote.getUserUuid();
094            }
095    
096            /**
097            * Sets the user uuid of this polls vote.
098            *
099            * @param userUuid the user uuid of this polls vote
100            */
101            public void setUserUuid(java.lang.String userUuid) {
102                    _pollsVote.setUserUuid(userUuid);
103            }
104    
105            /**
106            * Gets the question id of this polls vote.
107            *
108            * @return the question id of this polls vote
109            */
110            public long getQuestionId() {
111                    return _pollsVote.getQuestionId();
112            }
113    
114            /**
115            * Sets the question id of this polls vote.
116            *
117            * @param questionId the question id of this polls vote
118            */
119            public void setQuestionId(long questionId) {
120                    _pollsVote.setQuestionId(questionId);
121            }
122    
123            /**
124            * Gets the choice id of this polls vote.
125            *
126            * @return the choice id of this polls vote
127            */
128            public long getChoiceId() {
129                    return _pollsVote.getChoiceId();
130            }
131    
132            /**
133            * Sets the choice id of this polls vote.
134            *
135            * @param choiceId the choice id of this polls vote
136            */
137            public void setChoiceId(long choiceId) {
138                    _pollsVote.setChoiceId(choiceId);
139            }
140    
141            /**
142            * Gets the vote date of this polls vote.
143            *
144            * @return the vote date of this polls vote
145            */
146            public java.util.Date getVoteDate() {
147                    return _pollsVote.getVoteDate();
148            }
149    
150            /**
151            * Sets the vote date of this polls vote.
152            *
153            * @param voteDate the vote date of this polls vote
154            */
155            public void setVoteDate(java.util.Date voteDate) {
156                    _pollsVote.setVoteDate(voteDate);
157            }
158    
159            public boolean isNew() {
160                    return _pollsVote.isNew();
161            }
162    
163            public void setNew(boolean n) {
164                    _pollsVote.setNew(n);
165            }
166    
167            public boolean isCachedModel() {
168                    return _pollsVote.isCachedModel();
169            }
170    
171            public void setCachedModel(boolean cachedModel) {
172                    _pollsVote.setCachedModel(cachedModel);
173            }
174    
175            public boolean isEscapedModel() {
176                    return _pollsVote.isEscapedModel();
177            }
178    
179            public void setEscapedModel(boolean escapedModel) {
180                    _pollsVote.setEscapedModel(escapedModel);
181            }
182    
183            public java.io.Serializable getPrimaryKeyObj() {
184                    return _pollsVote.getPrimaryKeyObj();
185            }
186    
187            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
188                    return _pollsVote.getExpandoBridge();
189            }
190    
191            public void setExpandoBridgeAttributes(
192                    com.liferay.portal.service.ServiceContext serviceContext) {
193                    _pollsVote.setExpandoBridgeAttributes(serviceContext);
194            }
195    
196            public java.lang.Object clone() {
197                    return _pollsVote.clone();
198            }
199    
200            public int compareTo(com.liferay.portlet.polls.model.PollsVote pollsVote) {
201                    return _pollsVote.compareTo(pollsVote);
202            }
203    
204            public int hashCode() {
205                    return _pollsVote.hashCode();
206            }
207    
208            public com.liferay.portlet.polls.model.PollsVote toEscapedModel() {
209                    return _pollsVote.toEscapedModel();
210            }
211    
212            public java.lang.String toString() {
213                    return _pollsVote.toString();
214            }
215    
216            public java.lang.String toXmlString() {
217                    return _pollsVote.toXmlString();
218            }
219    
220            public com.liferay.portlet.polls.model.PollsChoice getChoice()
221                    throws com.liferay.portal.kernel.exception.PortalException,
222                            com.liferay.portal.kernel.exception.SystemException {
223                    return _pollsVote.getChoice();
224            }
225    
226            public PollsVote getWrappedPollsVote() {
227                    return _pollsVote;
228            }
229    
230            private PollsVote _pollsVote;
231    }