1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  /**
18   * <a href="PollsVoteLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link PollsVoteLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsVoteLocalService
31   * @generated
32   */
33  public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService {
34      public PollsVoteLocalServiceWrapper(
35          PollsVoteLocalService pollsVoteLocalService) {
36          _pollsVoteLocalService = pollsVoteLocalService;
37      }
38  
39      public com.liferay.portlet.polls.model.PollsVote addPollsVote(
40          com.liferay.portlet.polls.model.PollsVote pollsVote)
41          throws com.liferay.portal.SystemException {
42          return _pollsVoteLocalService.addPollsVote(pollsVote);
43      }
44  
45      public com.liferay.portlet.polls.model.PollsVote createPollsVote(
46          long voteId) {
47          return _pollsVoteLocalService.createPollsVote(voteId);
48      }
49  
50      public void deletePollsVote(long voteId)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          _pollsVoteLocalService.deletePollsVote(voteId);
54      }
55  
56      public void deletePollsVote(
57          com.liferay.portlet.polls.model.PollsVote pollsVote)
58          throws com.liferay.portal.SystemException {
59          _pollsVoteLocalService.deletePollsVote(pollsVote);
60      }
61  
62      @SuppressWarnings("rawtypes")
63      public java.util.List dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return _pollsVoteLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      @SuppressWarnings("rawtypes")
70      public java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException {
73          return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      @SuppressWarnings("rawtypes")
77      public java.util.List dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException {
82          return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end,
83              orderByComparator);
84      }
85  
86      public int dynamicQueryCount(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
88          throws com.liferay.portal.SystemException {
89          return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery);
90      }
91  
92      public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
93          throws com.liferay.portal.PortalException,
94              com.liferay.portal.SystemException {
95          return _pollsVoteLocalService.getPollsVote(voteId);
96      }
97  
98      public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
99          int start, int end) throws com.liferay.portal.SystemException {
100         return _pollsVoteLocalService.getPollsVotes(start, end);
101     }
102 
103     public int getPollsVotesCount() throws com.liferay.portal.SystemException {
104         return _pollsVoteLocalService.getPollsVotesCount();
105     }
106 
107     public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
108         com.liferay.portlet.polls.model.PollsVote pollsVote)
109         throws com.liferay.portal.SystemException {
110         return _pollsVoteLocalService.updatePollsVote(pollsVote);
111     }
112 
113     public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
114         com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
115         throws com.liferay.portal.SystemException {
116         return _pollsVoteLocalService.updatePollsVote(pollsVote, merge);
117     }
118 
119     /**
120     * @deprecated
121     */
122     public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
123         long questionId, long choiceId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         return _pollsVoteLocalService.addVote(userId, questionId, choiceId);
127     }
128 
129     public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
130         long questionId, long choiceId,
131         com.liferay.portal.service.ServiceContext serviceContext)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return _pollsVoteLocalService.addVote(userId, questionId, choiceId,
135             serviceContext);
136     }
137 
138     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
139         long choiceId, int start, int end)
140         throws com.liferay.portal.SystemException {
141         return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end);
142     }
143 
144     public int getChoiceVotesCount(long choiceId)
145         throws com.liferay.portal.SystemException {
146         return _pollsVoteLocalService.getChoiceVotesCount(choiceId);
147     }
148 
149     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
150         long questionId, int start, int end)
151         throws com.liferay.portal.SystemException {
152         return _pollsVoteLocalService.getQuestionVotes(questionId, start, end);
153     }
154 
155     public int getQuestionVotesCount(long questionId)
156         throws com.liferay.portal.SystemException {
157         return _pollsVoteLocalService.getQuestionVotesCount(questionId);
158     }
159 
160     public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
161         long userId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         return _pollsVoteLocalService.getVote(questionId, userId);
165     }
166 
167     public PollsVoteLocalService getWrappedPollsVoteLocalService() {
168         return _pollsVoteLocalService;
169     }
170 
171     private PollsVoteLocalService _pollsVoteLocalService;
172 }