1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  
18  /**
19   * <a href="PollsVoteLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link PollsVoteLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       PollsVoteLocalService
32   * @generated
33   */
34  public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService {
35      public PollsVoteLocalServiceWrapper(
36          PollsVoteLocalService pollsVoteLocalService) {
37          _pollsVoteLocalService = pollsVoteLocalService;
38      }
39  
40      public com.liferay.portlet.polls.model.PollsVote addPollsVote(
41          com.liferay.portlet.polls.model.PollsVote pollsVote)
42          throws com.liferay.portal.SystemException {
43          return _pollsVoteLocalService.addPollsVote(pollsVote);
44      }
45  
46      public com.liferay.portlet.polls.model.PollsVote createPollsVote(
47          long voteId) {
48          return _pollsVoteLocalService.createPollsVote(voteId);
49      }
50  
51      public void deletePollsVote(long voteId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _pollsVoteLocalService.deletePollsVote(voteId);
55      }
56  
57      public void deletePollsVote(
58          com.liferay.portlet.polls.model.PollsVote pollsVote)
59          throws com.liferay.portal.SystemException {
60          _pollsVoteLocalService.deletePollsVote(pollsVote);
61      }
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return _pollsVoteLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end,
81              orderByComparator);
82      }
83  
84      public int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery);
88      }
89  
90      public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException {
93          return _pollsVoteLocalService.getPollsVote(voteId);
94      }
95  
96      public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
97          int start, int end) throws com.liferay.portal.SystemException {
98          return _pollsVoteLocalService.getPollsVotes(start, end);
99      }
100 
101     public int getPollsVotesCount() throws com.liferay.portal.SystemException {
102         return _pollsVoteLocalService.getPollsVotesCount();
103     }
104 
105     public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
106         com.liferay.portlet.polls.model.PollsVote pollsVote)
107         throws com.liferay.portal.SystemException {
108         return _pollsVoteLocalService.updatePollsVote(pollsVote);
109     }
110 
111     public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
112         com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
113         throws com.liferay.portal.SystemException {
114         return _pollsVoteLocalService.updatePollsVote(pollsVote, merge);
115     }
116 
117     public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
118         long questionId, long choiceId)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return _pollsVoteLocalService.addVote(userId, questionId, choiceId);
122     }
123 
124     public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
125         long questionId, long choiceId,
126         com.liferay.portal.service.ServiceContext serviceContext)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         return _pollsVoteLocalService.addVote(userId, questionId, choiceId,
130             serviceContext);
131     }
132 
133     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
134         long choiceId, int start, int end)
135         throws com.liferay.portal.SystemException {
136         return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end);
137     }
138 
139     public int getChoiceVotesCount(long choiceId)
140         throws com.liferay.portal.SystemException {
141         return _pollsVoteLocalService.getChoiceVotesCount(choiceId);
142     }
143 
144     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
145         long questionId, int start, int end)
146         throws com.liferay.portal.SystemException {
147         return _pollsVoteLocalService.getQuestionVotes(questionId, start, end);
148     }
149 
150     public int getQuestionVotesCount(long questionId)
151         throws com.liferay.portal.SystemException {
152         return _pollsVoteLocalService.getQuestionVotesCount(questionId);
153     }
154 
155     public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
156         long userId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         return _pollsVoteLocalService.getVote(questionId, userId);
160     }
161 
162     public PollsVoteLocalService getWrappedPollsVoteLocalService() {
163         return _pollsVoteLocalService;
164     }
165 
166     private PollsVoteLocalService _pollsVoteLocalService;
167 }