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