001    /**
002     * Copyright (c) 2000-2013 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.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link PollsVoteLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see PollsVoteLocalService
026     * @generated
027     */
028    @ProviderType
029    public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService,
030            ServiceWrapper<PollsVoteLocalService> {
031            public PollsVoteLocalServiceWrapper(
032                    PollsVoteLocalService pollsVoteLocalService) {
033                    _pollsVoteLocalService = pollsVoteLocalService;
034            }
035    
036            /**
037            * Adds the polls vote to the database. Also notifies the appropriate model listeners.
038            *
039            * @param pollsVote the polls vote
040            * @return the polls vote that was added
041            * @throws SystemException if a system exception occurred
042            */
043            @Override
044            public com.liferay.portlet.polls.model.PollsVote addPollsVote(
045                    com.liferay.portlet.polls.model.PollsVote pollsVote)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return _pollsVoteLocalService.addPollsVote(pollsVote);
048            }
049    
050            /**
051            * Creates a new polls vote with the primary key. Does not add the polls vote to the database.
052            *
053            * @param voteId the primary key for the new polls vote
054            * @return the new polls vote
055            */
056            @Override
057            public com.liferay.portlet.polls.model.PollsVote createPollsVote(
058                    long voteId) {
059                    return _pollsVoteLocalService.createPollsVote(voteId);
060            }
061    
062            /**
063            * Deletes the polls vote with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param voteId the primary key of the polls vote
066            * @return the polls vote that was removed
067            * @throws PortalException if a polls vote with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            @Override
071            public com.liferay.portlet.polls.model.PollsVote deletePollsVote(
072                    long voteId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return _pollsVoteLocalService.deletePollsVote(voteId);
076            }
077    
078            /**
079            * Deletes the polls vote from the database. Also notifies the appropriate model listeners.
080            *
081            * @param pollsVote the polls vote
082            * @return the polls vote that was removed
083            * @throws SystemException if a system exception occurred
084            */
085            @Override
086            public com.liferay.portlet.polls.model.PollsVote deletePollsVote(
087                    com.liferay.portlet.polls.model.PollsVote pollsVote)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return _pollsVoteLocalService.deletePollsVote(pollsVote);
090            }
091    
092            @Override
093            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return _pollsVoteLocalService.dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @Override
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery);
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns a range of the matching rows.
114            *
115            * <p>
116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query
120            * @param start the lower bound of the range of model instances
121            * @param end the upper bound of the range of model instances (not inclusive)
122            * @return the range of matching rows
123            * @throws SystemException if a system exception occurred
124            */
125            @Override
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) throws com.liferay.portal.kernel.exception.SystemException {
130                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end);
131            }
132    
133            /**
134            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
138            * </p>
139            *
140            * @param dynamicQuery the dynamic query
141            * @param start the lower bound of the range of model instances
142            * @param end the upper bound of the range of model instances (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching rows
145            * @throws SystemException if a system exception occurred
146            */
147            @Override
148            @SuppressWarnings("rawtypes")
149            public java.util.List dynamicQuery(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151                    int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end,
155                            orderByComparator);
156            }
157    
158            /**
159            * Returns the number of rows that match the dynamic query.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the number of rows that match the dynamic query
163            * @throws SystemException if a system exception occurred
164            */
165            @Override
166            public long dynamicQueryCount(
167                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery);
170            }
171    
172            /**
173            * Returns the number of rows that match the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @param projection the projection to apply to the query
177            * @return the number of rows that match the dynamic query
178            * @throws SystemException if a system exception occurred
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery, projection);
186            }
187    
188            @Override
189            public com.liferay.portlet.polls.model.PollsVote fetchPollsVote(long voteId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _pollsVoteLocalService.fetchPollsVote(voteId);
192            }
193    
194            /**
195            * Returns the polls vote with the matching UUID and company.
196            *
197            * @param uuid the polls vote's UUID
198            * @param companyId the primary key of the company
199            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            @Override
203            public com.liferay.portlet.polls.model.PollsVote fetchPollsVoteByUuidAndCompanyId(
204                    java.lang.String uuid, long companyId)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _pollsVoteLocalService.fetchPollsVoteByUuidAndCompanyId(uuid,
207                            companyId);
208            }
209    
210            /**
211            * Returns the polls vote matching the UUID and group.
212            *
213            * @param uuid the polls vote's UUID
214            * @param groupId the primary key of the group
215            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            @Override
219            public com.liferay.portlet.polls.model.PollsVote fetchPollsVoteByUuidAndGroupId(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _pollsVoteLocalService.fetchPollsVoteByUuidAndGroupId(uuid,
223                            groupId);
224            }
225    
226            /**
227            * Returns the polls vote with the primary key.
228            *
229            * @param voteId the primary key of the polls vote
230            * @return the polls vote
231            * @throws PortalException if a polls vote with the primary key could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            @Override
235            public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _pollsVoteLocalService.getPollsVote(voteId);
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _pollsVoteLocalService.getPersistedModel(primaryKeyObj);
247            }
248    
249            /**
250            * Returns the polls vote with the matching UUID and company.
251            *
252            * @param uuid the polls vote's UUID
253            * @param companyId the primary key of the company
254            * @return the matching polls vote
255            * @throws PortalException if a matching polls vote could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            @Override
259            public com.liferay.portlet.polls.model.PollsVote getPollsVoteByUuidAndCompanyId(
260                    java.lang.String uuid, long companyId)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _pollsVoteLocalService.getPollsVoteByUuidAndCompanyId(uuid,
264                            companyId);
265            }
266    
267            /**
268            * Returns the polls vote matching the UUID and group.
269            *
270            * @param uuid the polls vote's UUID
271            * @param groupId the primary key of the group
272            * @return the matching polls vote
273            * @throws PortalException if a matching polls vote could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            @Override
277            public com.liferay.portlet.polls.model.PollsVote getPollsVoteByUuidAndGroupId(
278                    java.lang.String uuid, long groupId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _pollsVoteLocalService.getPollsVoteByUuidAndGroupId(uuid, groupId);
282            }
283    
284            /**
285            * Returns a range of all the polls votes.
286            *
287            * <p>
288            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
289            * </p>
290            *
291            * @param start the lower bound of the range of polls votes
292            * @param end the upper bound of the range of polls votes (not inclusive)
293            * @return the range of polls votes
294            * @throws SystemException if a system exception occurred
295            */
296            @Override
297            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
298                    int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _pollsVoteLocalService.getPollsVotes(start, end);
301            }
302    
303            /**
304            * Returns the number of polls votes.
305            *
306            * @return the number of polls votes
307            * @throws SystemException if a system exception occurred
308            */
309            @Override
310            public int getPollsVotesCount()
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _pollsVoteLocalService.getPollsVotesCount();
313            }
314    
315            /**
316            * Updates the polls vote in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
317            *
318            * @param pollsVote the polls vote
319            * @return the polls vote that was updated
320            * @throws SystemException if a system exception occurred
321            */
322            @Override
323            public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
324                    com.liferay.portlet.polls.model.PollsVote pollsVote)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _pollsVoteLocalService.updatePollsVote(pollsVote);
327            }
328    
329            /**
330            * Returns the Spring bean ID for this bean.
331            *
332            * @return the Spring bean ID for this bean
333            */
334            @Override
335            public java.lang.String getBeanIdentifier() {
336                    return _pollsVoteLocalService.getBeanIdentifier();
337            }
338    
339            /**
340            * Sets the Spring bean ID for this bean.
341            *
342            * @param beanIdentifier the Spring bean ID for this bean
343            */
344            @Override
345            public void setBeanIdentifier(java.lang.String beanIdentifier) {
346                    _pollsVoteLocalService.setBeanIdentifier(beanIdentifier);
347            }
348    
349            @Override
350            public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
351                    long questionId, long choiceId,
352                    com.liferay.portal.service.ServiceContext serviceContext)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _pollsVoteLocalService.addVote(userId, questionId, choiceId,
356                            serviceContext);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
361                    long choiceId, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end);
364            }
365    
366            @Override
367            public int getChoiceVotesCount(long choiceId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _pollsVoteLocalService.getChoiceVotesCount(choiceId);
370            }
371    
372            @Override
373            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
374                    long questionId, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _pollsVoteLocalService.getQuestionVotes(questionId, start, end);
377            }
378    
379            @Override
380            public int getQuestionVotesCount(long questionId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _pollsVoteLocalService.getQuestionVotesCount(questionId);
383            }
384    
385            @Override
386            public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
387                    long userId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _pollsVoteLocalService.getVote(questionId, userId);
391            }
392    
393            /**
394             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
395             */
396            public PollsVoteLocalService getWrappedPollsVoteLocalService() {
397                    return _pollsVoteLocalService;
398            }
399    
400            /**
401             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
402             */
403            public void setWrappedPollsVoteLocalService(
404                    PollsVoteLocalService pollsVoteLocalService) {
405                    _pollsVoteLocalService = pollsVoteLocalService;
406            }
407    
408            @Override
409            public PollsVoteLocalService getWrappedService() {
410                    return _pollsVoteLocalService;
411            }
412    
413            @Override
414            public void setWrappedService(PollsVoteLocalService pollsVoteLocalService) {
415                    _pollsVoteLocalService = pollsVoteLocalService;
416            }
417    
418            private PollsVoteLocalService _pollsVoteLocalService;
419    }