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