001 /** 002 * Copyright (c) 2000-2012 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.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.polls.model.PollsVote; 020 021 /** 022 * The persistence interface for the polls vote service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see PollsVotePersistenceImpl 030 * @see PollsVoteUtil 031 * @generated 032 */ 033 public interface PollsVotePersistence extends BasePersistence<PollsVote> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link PollsVoteUtil} to access the polls vote persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the polls votes where questionId = ?. 042 * 043 * @param questionId the question ID 044 * @return the matching polls votes 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId( 048 long questionId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the polls votes where questionId = ?. 053 * 054 * <p> 055 * 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. 056 * </p> 057 * 058 * @param questionId the question ID 059 * @param start the lower bound of the range of polls votes 060 * @param end the upper bound of the range of polls votes (not inclusive) 061 * @return the range of matching polls votes 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId( 065 long questionId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the polls votes where questionId = ?. 070 * 071 * <p> 072 * 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. 073 * </p> 074 * 075 * @param questionId the question ID 076 * @param start the lower bound of the range of polls votes 077 * @param end the upper bound of the range of polls votes (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching polls votes 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId( 083 long questionId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first polls vote in the ordered set where questionId = ?. 089 * 090 * @param questionId the question ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching polls vote 093 * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First( 097 long questionId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.polls.NoSuchVoteException; 101 102 /** 103 * Returns the first polls vote in the ordered set where questionId = ?. 104 * 105 * @param questionId the question ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.polls.model.PollsVote fetchByQuestionId_First( 111 long questionId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last polls vote in the ordered set where questionId = ?. 117 * 118 * @param questionId the question ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching polls vote 121 * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last( 125 long questionId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.polls.NoSuchVoteException; 129 130 /** 131 * Returns the last polls vote in the ordered set where questionId = ?. 132 * 133 * @param questionId the question ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.polls.model.PollsVote fetchByQuestionId_Last( 139 long questionId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the polls votes before and after the current polls vote in the ordered set where questionId = ?. 145 * 146 * @param voteId the primary key of the current polls vote 147 * @param questionId the question ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next polls vote 150 * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext( 154 long voteId, long questionId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.polls.NoSuchVoteException; 158 159 /** 160 * Removes all the polls votes where questionId = ? from the database. 161 * 162 * @param questionId the question ID 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByQuestionId(long questionId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of polls votes where questionId = ?. 170 * 171 * @param questionId the question ID 172 * @return the number of matching polls votes 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByQuestionId(long questionId) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns all the polls votes where choiceId = ?. 180 * 181 * @param choiceId the choice ID 182 * @return the matching polls votes 183 * @throws SystemException if a system exception occurred 184 */ 185 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId( 186 long choiceId) 187 throws com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns a range of all the polls votes where choiceId = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param choiceId the choice ID 197 * @param start the lower bound of the range of polls votes 198 * @param end the upper bound of the range of polls votes (not inclusive) 199 * @return the range of matching polls votes 200 * @throws SystemException if a system exception occurred 201 */ 202 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId( 203 long choiceId, int start, int end) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns an ordered range of all the polls votes where choiceId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param choiceId the choice ID 214 * @param start the lower bound of the range of polls votes 215 * @param end the upper bound of the range of polls votes (not inclusive) 216 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 217 * @return the ordered range of matching polls votes 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId( 221 long choiceId, int start, int end, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Returns the first polls vote in the ordered set where choiceId = ?. 227 * 228 * @param choiceId the choice ID 229 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 230 * @return the first matching polls vote 231 * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First( 235 long choiceId, 236 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.polls.NoSuchVoteException; 239 240 /** 241 * Returns the first polls vote in the ordered set where choiceId = ?. 242 * 243 * @param choiceId the choice ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.polls.model.PollsVote fetchByChoiceId_First( 249 long choiceId, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns the last polls vote in the ordered set where choiceId = ?. 255 * 256 * @param choiceId the choice ID 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the last matching polls vote 259 * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last( 263 long choiceId, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException, 266 com.liferay.portlet.polls.NoSuchVoteException; 267 268 /** 269 * Returns the last polls vote in the ordered set where choiceId = ?. 270 * 271 * @param choiceId the choice ID 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found 274 * @throws SystemException if a system exception occurred 275 */ 276 public com.liferay.portlet.polls.model.PollsVote fetchByChoiceId_Last( 277 long choiceId, 278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 279 throws com.liferay.portal.kernel.exception.SystemException; 280 281 /** 282 * Returns the polls votes before and after the current polls vote in the ordered set where choiceId = ?. 283 * 284 * @param voteId the primary key of the current polls vote 285 * @param choiceId the choice ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the previous, current, and next polls vote 288 * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext( 292 long voteId, long choiceId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.polls.NoSuchVoteException; 296 297 /** 298 * Removes all the polls votes where choiceId = ? from the database. 299 * 300 * @param choiceId the choice ID 301 * @throws SystemException if a system exception occurred 302 */ 303 public void removeByChoiceId(long choiceId) 304 throws com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Returns the number of polls votes where choiceId = ?. 308 * 309 * @param choiceId the choice ID 310 * @return the number of matching polls votes 311 * @throws SystemException if a system exception occurred 312 */ 313 public int countByChoiceId(long choiceId) 314 throws com.liferay.portal.kernel.exception.SystemException; 315 316 /** 317 * Returns the polls vote where questionId = ? and userId = ? or throws a {@link com.liferay.portlet.polls.NoSuchVoteException} if it could not be found. 318 * 319 * @param questionId the question ID 320 * @param userId the user ID 321 * @return the matching polls vote 322 * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public com.liferay.portlet.polls.model.PollsVote findByQ_U( 326 long questionId, long userId) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.polls.NoSuchVoteException; 329 330 /** 331 * Returns the polls vote where questionId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 332 * 333 * @param questionId the question ID 334 * @param userId the user ID 335 * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U( 339 long questionId, long userId) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Returns the polls vote where questionId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 344 * 345 * @param questionId the question ID 346 * @param userId the user ID 347 * @param retrieveFromCache whether to use the finder cache 348 * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U( 352 long questionId, long userId, boolean retrieveFromCache) 353 throws com.liferay.portal.kernel.exception.SystemException; 354 355 /** 356 * Removes the polls vote where questionId = ? and userId = ? from the database. 357 * 358 * @param questionId the question ID 359 * @param userId the user ID 360 * @return the polls vote that was removed 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portlet.polls.model.PollsVote removeByQ_U( 364 long questionId, long userId) 365 throws com.liferay.portal.kernel.exception.SystemException, 366 com.liferay.portlet.polls.NoSuchVoteException; 367 368 /** 369 * Returns the number of polls votes where questionId = ? and userId = ?. 370 * 371 * @param questionId the question ID 372 * @param userId the user ID 373 * @return the number of matching polls votes 374 * @throws SystemException if a system exception occurred 375 */ 376 public int countByQ_U(long questionId, long userId) 377 throws com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Caches the polls vote in the entity cache if it is enabled. 381 * 382 * @param pollsVote the polls vote 383 */ 384 public void cacheResult(com.liferay.portlet.polls.model.PollsVote pollsVote); 385 386 /** 387 * Caches the polls votes in the entity cache if it is enabled. 388 * 389 * @param pollsVotes the polls votes 390 */ 391 public void cacheResult( 392 java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes); 393 394 /** 395 * Creates a new polls vote with the primary key. Does not add the polls vote to the database. 396 * 397 * @param voteId the primary key for the new polls vote 398 * @return the new polls vote 399 */ 400 public com.liferay.portlet.polls.model.PollsVote create(long voteId); 401 402 /** 403 * Removes the polls vote with the primary key from the database. Also notifies the appropriate model listeners. 404 * 405 * @param voteId the primary key of the polls vote 406 * @return the polls vote that was removed 407 * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public com.liferay.portlet.polls.model.PollsVote remove(long voteId) 411 throws com.liferay.portal.kernel.exception.SystemException, 412 com.liferay.portlet.polls.NoSuchVoteException; 413 414 public com.liferay.portlet.polls.model.PollsVote updateImpl( 415 com.liferay.portlet.polls.model.PollsVote pollsVote) 416 throws com.liferay.portal.kernel.exception.SystemException; 417 418 /** 419 * Returns the polls vote with the primary key or throws a {@link com.liferay.portlet.polls.NoSuchVoteException} if it could not be found. 420 * 421 * @param voteId the primary key of the polls vote 422 * @return the polls vote 423 * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey( 427 long voteId) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.polls.NoSuchVoteException; 430 431 /** 432 * Returns the polls vote with the primary key or returns <code>null</code> if it could not be found. 433 * 434 * @param voteId the primary key of the polls vote 435 * @return the polls vote, or <code>null</code> if a polls vote with the primary key could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey( 439 long voteId) throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns all the polls votes. 443 * 444 * @return the polls votes 445 * @throws SystemException if a system exception occurred 446 */ 447 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll() 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Returns a range of all the polls votes. 452 * 453 * <p> 454 * 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. 455 * </p> 456 * 457 * @param start the lower bound of the range of polls votes 458 * @param end the upper bound of the range of polls votes (not inclusive) 459 * @return the range of polls votes 460 * @throws SystemException if a system exception occurred 461 */ 462 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll( 463 int start, int end) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns an ordered range of all the polls votes. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param start the lower bound of the range of polls votes 474 * @param end the upper bound of the range of polls votes (not inclusive) 475 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 476 * @return the ordered range of polls votes 477 * @throws SystemException if a system exception occurred 478 */ 479 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll( 480 int start, int end, 481 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 482 throws com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Removes all the polls votes from the database. 486 * 487 * @throws SystemException if a system exception occurred 488 */ 489 public void removeAll() 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the number of polls votes. 494 * 495 * @return the number of polls votes 496 * @throws SystemException if a system exception occurred 497 */ 498 public int countAll() 499 throws com.liferay.portal.kernel.exception.SystemException; 500 }