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 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            * Gets 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            * Gets 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            * Gets the user ID of this polls vote.
077            *
078            * @return the user ID of this polls vote
079            */
080            public long getUserId() {
081                    return _pollsVote.getUserId();
082            }
083    
084            /**
085            * Sets the user ID of this polls vote.
086            *
087            * @param userId the user ID of this polls vote
088            */
089            public void setUserId(long userId) {
090                    _pollsVote.setUserId(userId);
091            }
092    
093            /**
094            * Gets the user uuid of this polls vote.
095            *
096            * @return the user uuid of this polls vote
097            * @throws SystemException if a system exception occurred
098            */
099            public java.lang.String getUserUuid()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _pollsVote.getUserUuid();
102            }
103    
104            /**
105            * Sets the user uuid of this polls vote.
106            *
107            * @param userUuid the user uuid of this polls vote
108            */
109            public void setUserUuid(java.lang.String userUuid) {
110                    _pollsVote.setUserUuid(userUuid);
111            }
112    
113            /**
114            * Gets the question ID of this polls vote.
115            *
116            * @return the question ID of this polls vote
117            */
118            public long getQuestionId() {
119                    return _pollsVote.getQuestionId();
120            }
121    
122            /**
123            * Sets the question ID of this polls vote.
124            *
125            * @param questionId the question ID of this polls vote
126            */
127            public void setQuestionId(long questionId) {
128                    _pollsVote.setQuestionId(questionId);
129            }
130    
131            /**
132            * Gets the choice ID of this polls vote.
133            *
134            * @return the choice ID of this polls vote
135            */
136            public long getChoiceId() {
137                    return _pollsVote.getChoiceId();
138            }
139    
140            /**
141            * Sets the choice ID of this polls vote.
142            *
143            * @param choiceId the choice ID of this polls vote
144            */
145            public void setChoiceId(long choiceId) {
146                    _pollsVote.setChoiceId(choiceId);
147            }
148    
149            /**
150            * Gets the vote date of this polls vote.
151            *
152            * @return the vote date of this polls vote
153            */
154            public java.util.Date getVoteDate() {
155                    return _pollsVote.getVoteDate();
156            }
157    
158            /**
159            * Sets the vote date of this polls vote.
160            *
161            * @param voteDate the vote date of this polls vote
162            */
163            public void setVoteDate(java.util.Date voteDate) {
164                    _pollsVote.setVoteDate(voteDate);
165            }
166    
167            public boolean isNew() {
168                    return _pollsVote.isNew();
169            }
170    
171            public void setNew(boolean n) {
172                    _pollsVote.setNew(n);
173            }
174    
175            public boolean isCachedModel() {
176                    return _pollsVote.isCachedModel();
177            }
178    
179            public void setCachedModel(boolean cachedModel) {
180                    _pollsVote.setCachedModel(cachedModel);
181            }
182    
183            public boolean isEscapedModel() {
184                    return _pollsVote.isEscapedModel();
185            }
186    
187            public void setEscapedModel(boolean escapedModel) {
188                    _pollsVote.setEscapedModel(escapedModel);
189            }
190    
191            public java.io.Serializable getPrimaryKeyObj() {
192                    return _pollsVote.getPrimaryKeyObj();
193            }
194    
195            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
196                    _pollsVote.setPrimaryKeyObj(primaryKeyObj);
197            }
198    
199            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
200                    return _pollsVote.getExpandoBridge();
201            }
202    
203            public void setExpandoBridgeAttributes(
204                    com.liferay.portal.service.ServiceContext serviceContext) {
205                    _pollsVote.setExpandoBridgeAttributes(serviceContext);
206            }
207    
208            @Override
209            public java.lang.Object clone() {
210                    return new PollsVoteWrapper((PollsVote)_pollsVote.clone());
211            }
212    
213            public int compareTo(com.liferay.portlet.polls.model.PollsVote pollsVote) {
214                    return _pollsVote.compareTo(pollsVote);
215            }
216    
217            @Override
218            public int hashCode() {
219                    return _pollsVote.hashCode();
220            }
221    
222            public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsVote> toCacheModel() {
223                    return _pollsVote.toCacheModel();
224            }
225    
226            public com.liferay.portlet.polls.model.PollsVote toEscapedModel() {
227                    return new PollsVoteWrapper(_pollsVote.toEscapedModel());
228            }
229    
230            @Override
231            public java.lang.String toString() {
232                    return _pollsVote.toString();
233            }
234    
235            public java.lang.String toXmlString() {
236                    return _pollsVote.toXmlString();
237            }
238    
239            public void persist()
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    _pollsVote.persist();
242            }
243    
244            public com.liferay.portlet.polls.model.PollsChoice getChoice()
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    return _pollsVote.getChoice();
248            }
249    
250            public PollsVote getWrappedPollsVote() {
251                    return _pollsVote;
252            }
253    
254            public void resetOriginalValues() {
255                    _pollsVote.resetOriginalValues();
256            }
257    
258            private PollsVote _pollsVote;
259    }