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 com.liferay.portal.service.ServiceWrapper; 018 019 /** 020 * <p> 021 * This class is a wrapper for {@link PollsVoteLocalService}. 022 * </p> 023 * 024 * @author Brian Wing Shun Chan 025 * @see PollsVoteLocalService 026 * @generated 027 */ 028 public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService, 029 ServiceWrapper<PollsVoteLocalService> { 030 public PollsVoteLocalServiceWrapper( 031 PollsVoteLocalService pollsVoteLocalService) { 032 _pollsVoteLocalService = pollsVoteLocalService; 033 } 034 035 /** 036 * Adds the polls vote to the database. Also notifies the appropriate model listeners. 037 * 038 * @param pollsVote the polls vote 039 * @return the polls vote that was added 040 * @throws SystemException if a system exception occurred 041 */ 042 public com.liferay.portlet.polls.model.PollsVote addPollsVote( 043 com.liferay.portlet.polls.model.PollsVote pollsVote) 044 throws com.liferay.portal.kernel.exception.SystemException { 045 return _pollsVoteLocalService.addPollsVote(pollsVote); 046 } 047 048 /** 049 * Creates a new polls vote with the primary key. Does not add the polls vote to the database. 050 * 051 * @param voteId the primary key for the new polls vote 052 * @return the new polls vote 053 */ 054 public com.liferay.portlet.polls.model.PollsVote createPollsVote( 055 long voteId) { 056 return _pollsVoteLocalService.createPollsVote(voteId); 057 } 058 059 /** 060 * Deletes the polls vote with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param voteId the primary key of the polls vote 063 * @return the polls vote that was removed 064 * @throws PortalException if a polls vote with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.polls.model.PollsVote deletePollsVote( 068 long voteId) 069 throws com.liferay.portal.kernel.exception.PortalException, 070 com.liferay.portal.kernel.exception.SystemException { 071 return _pollsVoteLocalService.deletePollsVote(voteId); 072 } 073 074 /** 075 * Deletes the polls vote from the database. Also notifies the appropriate model listeners. 076 * 077 * @param pollsVote the polls vote 078 * @return the polls vote that was removed 079 * @throws SystemException if a system exception occurred 080 */ 081 public com.liferay.portlet.polls.model.PollsVote deletePollsVote( 082 com.liferay.portlet.polls.model.PollsVote pollsVote) 083 throws com.liferay.portal.kernel.exception.SystemException { 084 return _pollsVoteLocalService.deletePollsVote(pollsVote); 085 } 086 087 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 088 return _pollsVoteLocalService.dynamicQuery(); 089 } 090 091 /** 092 * Performs a dynamic query on the database and returns the matching rows. 093 * 094 * @param dynamicQuery the dynamic query 095 * @return the matching rows 096 * @throws SystemException if a system exception occurred 097 */ 098 @SuppressWarnings("rawtypes") 099 public java.util.List dynamicQuery( 100 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 101 throws com.liferay.portal.kernel.exception.SystemException { 102 return _pollsVoteLocalService.dynamicQuery(dynamicQuery); 103 } 104 105 /** 106 * Performs a dynamic query on the database and returns a range of the matching rows. 107 * 108 * <p> 109 * 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. 110 * </p> 111 * 112 * @param dynamicQuery the dynamic query 113 * @param start the lower bound of the range of model instances 114 * @param end the upper bound of the range of model instances (not inclusive) 115 * @return the range of matching rows 116 * @throws SystemException if a system exception occurred 117 */ 118 @SuppressWarnings("rawtypes") 119 public java.util.List dynamicQuery( 120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 121 int end) throws com.liferay.portal.kernel.exception.SystemException { 122 return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end); 123 } 124 125 /** 126 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 127 * 128 * <p> 129 * 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. 130 * </p> 131 * 132 * @param dynamicQuery the dynamic query 133 * @param start the lower bound of the range of model instances 134 * @param end the upper bound of the range of model instances (not inclusive) 135 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 136 * @return the ordered range of matching rows 137 * @throws SystemException if a system exception occurred 138 */ 139 @SuppressWarnings("rawtypes") 140 public java.util.List dynamicQuery( 141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 142 int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException { 145 return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end, 146 orderByComparator); 147 } 148 149 /** 150 * Returns the number of rows that match the dynamic query. 151 * 152 * @param dynamicQuery the dynamic query 153 * @return the number of rows that match the dynamic query 154 * @throws SystemException if a system exception occurred 155 */ 156 public long dynamicQueryCount( 157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 158 throws com.liferay.portal.kernel.exception.SystemException { 159 return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery); 160 } 161 162 public com.liferay.portlet.polls.model.PollsVote fetchPollsVote(long voteId) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return _pollsVoteLocalService.fetchPollsVote(voteId); 165 } 166 167 /** 168 * Returns the polls vote with the primary key. 169 * 170 * @param voteId the primary key of the polls vote 171 * @return the polls vote 172 * @throws PortalException if a polls vote with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId) 176 throws com.liferay.portal.kernel.exception.PortalException, 177 com.liferay.portal.kernel.exception.SystemException { 178 return _pollsVoteLocalService.getPollsVote(voteId); 179 } 180 181 public com.liferay.portal.model.PersistedModel getPersistedModel( 182 java.io.Serializable primaryKeyObj) 183 throws com.liferay.portal.kernel.exception.PortalException, 184 com.liferay.portal.kernel.exception.SystemException { 185 return _pollsVoteLocalService.getPersistedModel(primaryKeyObj); 186 } 187 188 /** 189 * Returns the polls vote matching the UUID and group. 190 * 191 * @param uuid the polls vote's UUID 192 * @param groupId the primary key of the group 193 * @return the matching polls vote 194 * @throws PortalException if a matching polls vote could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portlet.polls.model.PollsVote getPollsVoteByUuidAndGroupId( 198 java.lang.String uuid, long groupId) 199 throws com.liferay.portal.kernel.exception.PortalException, 200 com.liferay.portal.kernel.exception.SystemException { 201 return _pollsVoteLocalService.getPollsVoteByUuidAndGroupId(uuid, groupId); 202 } 203 204 /** 205 * Returns a range of all the polls votes. 206 * 207 * <p> 208 * 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. 209 * </p> 210 * 211 * @param start the lower bound of the range of polls votes 212 * @param end the upper bound of the range of polls votes (not inclusive) 213 * @return the range of polls votes 214 * @throws SystemException if a system exception occurred 215 */ 216 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes( 217 int start, int end) 218 throws com.liferay.portal.kernel.exception.SystemException { 219 return _pollsVoteLocalService.getPollsVotes(start, end); 220 } 221 222 /** 223 * Returns the number of polls votes. 224 * 225 * @return the number of polls votes 226 * @throws SystemException if a system exception occurred 227 */ 228 public int getPollsVotesCount() 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return _pollsVoteLocalService.getPollsVotesCount(); 231 } 232 233 /** 234 * Updates the polls vote in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 235 * 236 * @param pollsVote the polls vote 237 * @return the polls vote that was updated 238 * @throws SystemException if a system exception occurred 239 */ 240 public com.liferay.portlet.polls.model.PollsVote updatePollsVote( 241 com.liferay.portlet.polls.model.PollsVote pollsVote) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return _pollsVoteLocalService.updatePollsVote(pollsVote); 244 } 245 246 /** 247 * Returns the Spring bean ID for this bean. 248 * 249 * @return the Spring bean ID for this bean 250 */ 251 public java.lang.String getBeanIdentifier() { 252 return _pollsVoteLocalService.getBeanIdentifier(); 253 } 254 255 /** 256 * Sets the Spring bean ID for this bean. 257 * 258 * @param beanIdentifier the Spring bean ID for this bean 259 */ 260 public void setBeanIdentifier(java.lang.String beanIdentifier) { 261 _pollsVoteLocalService.setBeanIdentifier(beanIdentifier); 262 } 263 264 public com.liferay.portlet.polls.model.PollsVote addVote(long userId, 265 long questionId, long choiceId, 266 com.liferay.portal.service.ServiceContext serviceContext) 267 throws com.liferay.portal.kernel.exception.PortalException, 268 com.liferay.portal.kernel.exception.SystemException { 269 return _pollsVoteLocalService.addVote(userId, questionId, choiceId, 270 serviceContext); 271 } 272 273 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes( 274 long choiceId, int start, int end) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end); 277 } 278 279 public int getChoiceVotesCount(long choiceId) 280 throws com.liferay.portal.kernel.exception.SystemException { 281 return _pollsVoteLocalService.getChoiceVotesCount(choiceId); 282 } 283 284 public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes( 285 long questionId, int start, int end) 286 throws com.liferay.portal.kernel.exception.SystemException { 287 return _pollsVoteLocalService.getQuestionVotes(questionId, start, end); 288 } 289 290 public int getQuestionVotesCount(long questionId) 291 throws com.liferay.portal.kernel.exception.SystemException { 292 return _pollsVoteLocalService.getQuestionVotesCount(questionId); 293 } 294 295 public com.liferay.portlet.polls.model.PollsVote getVote(long questionId, 296 long userId) 297 throws com.liferay.portal.kernel.exception.PortalException, 298 com.liferay.portal.kernel.exception.SystemException { 299 return _pollsVoteLocalService.getVote(questionId, userId); 300 } 301 302 /** 303 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 304 */ 305 public PollsVoteLocalService getWrappedPollsVoteLocalService() { 306 return _pollsVoteLocalService; 307 } 308 309 /** 310 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 311 */ 312 public void setWrappedPollsVoteLocalService( 313 PollsVoteLocalService pollsVoteLocalService) { 314 _pollsVoteLocalService = pollsVoteLocalService; 315 } 316 317 public PollsVoteLocalService getWrappedService() { 318 return _pollsVoteLocalService; 319 } 320 321 public void setWrappedService(PollsVoteLocalService pollsVoteLocalService) { 322 _pollsVoteLocalService = pollsVoteLocalService; 323 } 324 325 private PollsVoteLocalService _pollsVoteLocalService; 326 }