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="PollsChoiceLocalServiceUtil.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 PollsChoiceLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsChoiceLocalService
31   * @generated
32   */
33  public class PollsChoiceLocalServiceWrapper implements PollsChoiceLocalService {
34      public PollsChoiceLocalServiceWrapper(
35          PollsChoiceLocalService pollsChoiceLocalService) {
36          _pollsChoiceLocalService = pollsChoiceLocalService;
37      }
38  
39      public com.liferay.portlet.polls.model.PollsChoice addPollsChoice(
40          com.liferay.portlet.polls.model.PollsChoice pollsChoice)
41          throws com.liferay.portal.SystemException {
42          return _pollsChoiceLocalService.addPollsChoice(pollsChoice);
43      }
44  
45      public com.liferay.portlet.polls.model.PollsChoice createPollsChoice(
46          long choiceId) {
47          return _pollsChoiceLocalService.createPollsChoice(choiceId);
48      }
49  
50      public void deletePollsChoice(long choiceId)
51          throws com.liferay.portal.PortalException,
52              com.liferay.portal.SystemException {
53          _pollsChoiceLocalService.deletePollsChoice(choiceId);
54      }
55  
56      public void deletePollsChoice(
57          com.liferay.portlet.polls.model.PollsChoice pollsChoice)
58          throws com.liferay.portal.SystemException {
59          _pollsChoiceLocalService.deletePollsChoice(pollsChoice);
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 _pollsChoiceLocalService.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 _pollsChoiceLocalService.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 _pollsChoiceLocalService.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 _pollsChoiceLocalService.dynamicQueryCount(dynamicQuery);
90      }
91  
92      public com.liferay.portlet.polls.model.PollsChoice getPollsChoice(
93          long choiceId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException {
96          return _pollsChoiceLocalService.getPollsChoice(choiceId);
97      }
98  
99      public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getPollsChoices(
100         int start, int end) throws com.liferay.portal.SystemException {
101         return _pollsChoiceLocalService.getPollsChoices(start, end);
102     }
103 
104     public int getPollsChoicesCount() throws com.liferay.portal.SystemException {
105         return _pollsChoiceLocalService.getPollsChoicesCount();
106     }
107 
108     public com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
109         com.liferay.portlet.polls.model.PollsChoice pollsChoice)
110         throws com.liferay.portal.SystemException {
111         return _pollsChoiceLocalService.updatePollsChoice(pollsChoice);
112     }
113 
114     public com.liferay.portlet.polls.model.PollsChoice updatePollsChoice(
115         com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
116         throws com.liferay.portal.SystemException {
117         return _pollsChoiceLocalService.updatePollsChoice(pollsChoice, merge);
118     }
119 
120     public com.liferay.portlet.polls.model.PollsChoice addChoice(
121         long questionId, java.lang.String name, java.lang.String description)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         return _pollsChoiceLocalService.addChoice(questionId, name, description);
125     }
126 
127     public com.liferay.portlet.polls.model.PollsChoice addChoice(
128         java.lang.String uuid, long questionId, java.lang.String name,
129         java.lang.String description)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return _pollsChoiceLocalService.addChoice(uuid, questionId, name,
133             description);
134     }
135 
136     public com.liferay.portlet.polls.model.PollsChoice getChoice(long choiceId)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return _pollsChoiceLocalService.getChoice(choiceId);
140     }
141 
142     public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices(
143         long questionId) throws com.liferay.portal.SystemException {
144         return _pollsChoiceLocalService.getChoices(questionId);
145     }
146 
147     public int getChoicesCount(long questionId)
148         throws com.liferay.portal.SystemException {
149         return _pollsChoiceLocalService.getChoicesCount(questionId);
150     }
151 
152     public com.liferay.portlet.polls.model.PollsChoice updateChoice(
153         long choiceId, long questionId, java.lang.String name,
154         java.lang.String description)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         return _pollsChoiceLocalService.updateChoice(choiceId, questionId,
158             name, description);
159     }
160 
161     public PollsChoiceLocalService getWrappedPollsChoiceLocalService() {
162         return _pollsChoiceLocalService;
163     }
164 
165     private PollsChoiceLocalService _pollsChoiceLocalService;
166 }