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.PollsQuestion; 020 021 /** 022 * The persistence interface for the polls question 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 PollsQuestionPersistenceImpl 030 * @see PollsQuestionUtil 031 * @generated 032 */ 033 public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link PollsQuestionUtil} to access the polls question persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the polls question in the entity cache if it is enabled. 042 * 043 * @param pollsQuestion the polls question 044 */ 045 public void cacheResult( 046 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion); 047 048 /** 049 * Caches the polls questions in the entity cache if it is enabled. 050 * 051 * @param pollsQuestions the polls questions 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions); 055 056 /** 057 * Creates a new polls question with the primary key. Does not add the polls question to the database. 058 * 059 * @param questionId the primary key for the new polls question 060 * @return the new polls question 061 */ 062 public com.liferay.portlet.polls.model.PollsQuestion create(long questionId); 063 064 /** 065 * Removes the polls question with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param questionId the primary key of the polls question 068 * @return the polls question that was removed 069 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.polls.NoSuchQuestionException; 075 076 public com.liferay.portlet.polls.model.PollsQuestion updateImpl( 077 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the polls question with the primary key or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found. 082 * 083 * @param questionId the primary key of the polls question 084 * @return the polls question 085 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey( 089 long questionId) 090 throws com.liferay.portal.kernel.exception.SystemException, 091 com.liferay.portlet.polls.NoSuchQuestionException; 092 093 /** 094 * Returns the polls question with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param questionId the primary key of the polls question 097 * @return the polls question, or <code>null</code> if a polls question with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey( 101 long questionId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the polls questions where uuid = ?. 106 * 107 * @param uuid the uuid 108 * @return the matching polls questions 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 112 java.lang.String uuid) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns a range of all the polls questions where uuid = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param uuid the uuid 123 * @param start the lower bound of the range of polls questions 124 * @param end the upper bound of the range of polls questions (not inclusive) 125 * @return the range of matching polls questions 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 129 java.lang.String uuid, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Returns an ordered range of all the polls questions where uuid = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param uuid the uuid 140 * @param start the lower bound of the range of polls questions 141 * @param end the upper bound of the range of polls questions (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching polls questions 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 147 java.lang.String uuid, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Returns the first polls question in the ordered set where uuid = ?. 153 * 154 * @param uuid the uuid 155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 156 * @return the first matching polls question 157 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First( 161 java.lang.String uuid, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException, 164 com.liferay.portlet.polls.NoSuchQuestionException; 165 166 /** 167 * Returns the first polls question in the ordered set where uuid = ?. 168 * 169 * @param uuid the uuid 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching polls question, or <code>null</code> if a matching polls question could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException; 178 179 /** 180 * Returns the last polls question in the ordered set where uuid = ?. 181 * 182 * @param uuid the uuid 183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 184 * @return the last matching polls question 185 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last( 189 java.lang.String uuid, 190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 191 throws com.liferay.portal.kernel.exception.SystemException, 192 com.liferay.portlet.polls.NoSuchQuestionException; 193 194 /** 195 * Returns the last polls question in the ordered set where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the last matching polls question, or <code>null</code> if a matching polls question could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_Last( 203 java.lang.String uuid, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the polls questions before and after the current polls question in the ordered set where uuid = ?. 209 * 210 * @param questionId the primary key of the current polls question 211 * @param uuid the uuid 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the previous, current, and next polls question 214 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext( 218 long questionId, java.lang.String uuid, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.kernel.exception.SystemException, 221 com.liferay.portlet.polls.NoSuchQuestionException; 222 223 /** 224 * Returns the polls question where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found. 225 * 226 * @param uuid the uuid 227 * @param groupId the group ID 228 * @return the matching polls question 229 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G( 233 java.lang.String uuid, long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException, 235 com.liferay.portlet.polls.NoSuchQuestionException; 236 237 /** 238 * Returns the polls question where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 239 * 240 * @param uuid the uuid 241 * @param groupId the group ID 242 * @return the matching polls question, or <code>null</code> if a matching polls question could not be found 243 * @throws SystemException if a system exception occurred 244 */ 245 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G( 246 java.lang.String uuid, long groupId) 247 throws com.liferay.portal.kernel.exception.SystemException; 248 249 /** 250 * Returns the polls question where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 251 * 252 * @param uuid the uuid 253 * @param groupId the group ID 254 * @param retrieveFromCache whether to use the finder cache 255 * @return the matching polls question, or <code>null</code> if a matching polls question could not be found 256 * @throws SystemException if a system exception occurred 257 */ 258 public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G( 259 java.lang.String uuid, long groupId, boolean retrieveFromCache) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns all the polls questions where uuid = ? and companyId = ?. 264 * 265 * @param uuid the uuid 266 * @param companyId the company ID 267 * @return the matching polls questions 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid_C( 271 java.lang.String uuid, long companyId) 272 throws com.liferay.portal.kernel.exception.SystemException; 273 274 /** 275 * Returns a range of all the polls questions where uuid = ? and companyId = ?. 276 * 277 * <p> 278 * 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. 279 * </p> 280 * 281 * @param uuid the uuid 282 * @param companyId the company ID 283 * @param start the lower bound of the range of polls questions 284 * @param end the upper bound of the range of polls questions (not inclusive) 285 * @return the range of matching polls questions 286 * @throws SystemException if a system exception occurred 287 */ 288 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid_C( 289 java.lang.String uuid, long companyId, int start, int end) 290 throws com.liferay.portal.kernel.exception.SystemException; 291 292 /** 293 * Returns an ordered range of all the polls questions where uuid = ? and companyId = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param uuid the uuid 300 * @param companyId the company ID 301 * @param start the lower bound of the range of polls questions 302 * @param end the upper bound of the range of polls questions (not inclusive) 303 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 304 * @return the ordered range of matching polls questions 305 * @throws SystemException if a system exception occurred 306 */ 307 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid_C( 308 java.lang.String uuid, long companyId, int start, int end, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns the first polls question in the ordered set where uuid = ? and companyId = ?. 314 * 315 * @param uuid the uuid 316 * @param companyId the company ID 317 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 318 * @return the first matching polls question 319 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_C_First( 323 java.lang.String uuid, long companyId, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException, 326 com.liferay.portlet.polls.NoSuchQuestionException; 327 328 /** 329 * Returns the first polls question in the ordered set where uuid = ? and companyId = ?. 330 * 331 * @param uuid the uuid 332 * @param companyId the company ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the first matching polls question, or <code>null</code> if a matching polls question could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_C_First( 338 java.lang.String uuid, long companyId, 339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Returns the last polls question in the ordered set where uuid = ? and companyId = ?. 344 * 345 * @param uuid the uuid 346 * @param companyId the company ID 347 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 348 * @return the last matching polls question 349 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_C_Last( 353 java.lang.String uuid, long companyId, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException, 356 com.liferay.portlet.polls.NoSuchQuestionException; 357 358 /** 359 * Returns the last polls question in the ordered set where uuid = ? and companyId = ?. 360 * 361 * @param uuid the uuid 362 * @param companyId the company ID 363 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 364 * @return the last matching polls question, or <code>null</code> if a matching polls question could not be found 365 * @throws SystemException if a system exception occurred 366 */ 367 public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_C_Last( 368 java.lang.String uuid, long companyId, 369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 370 throws com.liferay.portal.kernel.exception.SystemException; 371 372 /** 373 * Returns the polls questions before and after the current polls question in the ordered set where uuid = ? and companyId = ?. 374 * 375 * @param questionId the primary key of the current polls question 376 * @param uuid the uuid 377 * @param companyId the company ID 378 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 379 * @return the previous, current, and next polls question 380 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 381 * @throws SystemException if a system exception occurred 382 */ 383 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_C_PrevAndNext( 384 long questionId, java.lang.String uuid, long companyId, 385 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 386 throws com.liferay.portal.kernel.exception.SystemException, 387 com.liferay.portlet.polls.NoSuchQuestionException; 388 389 /** 390 * Returns all the polls questions where groupId = ?. 391 * 392 * @param groupId the group ID 393 * @return the matching polls questions 394 * @throws SystemException if a system exception occurred 395 */ 396 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 397 long groupId) 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns a range of all the polls questions where groupId = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param groupId the group ID 408 * @param start the lower bound of the range of polls questions 409 * @param end the upper bound of the range of polls questions (not inclusive) 410 * @return the range of matching polls questions 411 * @throws SystemException if a system exception occurred 412 */ 413 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 414 long groupId, int start, int end) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns an ordered range of all the polls questions where groupId = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param groupId the group ID 425 * @param start the lower bound of the range of polls questions 426 * @param end the upper bound of the range of polls questions (not inclusive) 427 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 428 * @return the ordered range of matching polls questions 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 432 long groupId, int start, int end, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Returns the first polls question in the ordered set where groupId = ?. 438 * 439 * @param groupId the group ID 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the first matching polls question 442 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First( 446 long groupId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.polls.NoSuchQuestionException; 450 451 /** 452 * Returns the first polls question in the ordered set where groupId = ?. 453 * 454 * @param groupId the group ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching polls question, or <code>null</code> if a matching polls question could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portlet.polls.model.PollsQuestion fetchByGroupId_First( 460 long groupId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns the last polls question in the ordered set where groupId = ?. 466 * 467 * @param groupId the group ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the last matching polls question 470 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last( 474 long groupId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.polls.NoSuchQuestionException; 478 479 /** 480 * Returns the last polls question in the ordered set where groupId = ?. 481 * 482 * @param groupId the group ID 483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 484 * @return the last matching polls question, or <code>null</code> if a matching polls question could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public com.liferay.portlet.polls.model.PollsQuestion fetchByGroupId_Last( 488 long groupId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the polls questions before and after the current polls question in the ordered set where groupId = ?. 494 * 495 * @param questionId the primary key of the current polls question 496 * @param groupId the group ID 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next polls question 499 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 500 * @throws SystemException if a system exception occurred 501 */ 502 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext( 503 long questionId, long groupId, 504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 505 throws com.liferay.portal.kernel.exception.SystemException, 506 com.liferay.portlet.polls.NoSuchQuestionException; 507 508 /** 509 * Returns all the polls questions that the user has permission to view where groupId = ?. 510 * 511 * @param groupId the group ID 512 * @return the matching polls questions that the user has permission to view 513 * @throws SystemException if a system exception occurred 514 */ 515 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 516 long groupId) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns a range of all the polls questions that the user has permission to view where groupId = ?. 521 * 522 * <p> 523 * 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. 524 * </p> 525 * 526 * @param groupId the group ID 527 * @param start the lower bound of the range of polls questions 528 * @param end the upper bound of the range of polls questions (not inclusive) 529 * @return the range of matching polls questions that the user has permission to view 530 * @throws SystemException if a system exception occurred 531 */ 532 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 533 long groupId, int start, int end) 534 throws com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns an ordered range of all the polls questions that the user has permissions to view where groupId = ?. 538 * 539 * <p> 540 * 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. 541 * </p> 542 * 543 * @param groupId the group ID 544 * @param start the lower bound of the range of polls questions 545 * @param end the upper bound of the range of polls questions (not inclusive) 546 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 547 * @return the ordered range of matching polls questions that the user has permission to view 548 * @throws SystemException if a system exception occurred 549 */ 550 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 551 long groupId, int start, int end, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * Returns the polls questions before and after the current polls question in the ordered set of polls questions that the user has permission to view where groupId = ?. 557 * 558 * @param questionId the primary key of the current polls question 559 * @param groupId the group ID 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the previous, current, and next polls question 562 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portlet.polls.model.PollsQuestion[] filterFindByGroupId_PrevAndNext( 566 long questionId, long groupId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.polls.NoSuchQuestionException; 570 571 /** 572 * Returns all the polls questions. 573 * 574 * @return the polls questions 575 * @throws SystemException if a system exception occurred 576 */ 577 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll() 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns a range of all the polls questions. 582 * 583 * <p> 584 * 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. 585 * </p> 586 * 587 * @param start the lower bound of the range of polls questions 588 * @param end the upper bound of the range of polls questions (not inclusive) 589 * @return the range of polls questions 590 * @throws SystemException if a system exception occurred 591 */ 592 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll( 593 int start, int end) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns an ordered range of all the polls questions. 598 * 599 * <p> 600 * 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. 601 * </p> 602 * 603 * @param start the lower bound of the range of polls questions 604 * @param end the upper bound of the range of polls questions (not inclusive) 605 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 606 * @return the ordered range of polls questions 607 * @throws SystemException if a system exception occurred 608 */ 609 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll( 610 int start, int end, 611 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 612 throws com.liferay.portal.kernel.exception.SystemException; 613 614 /** 615 * Removes all the polls questions where uuid = ? from the database. 616 * 617 * @param uuid the uuid 618 * @throws SystemException if a system exception occurred 619 */ 620 public void removeByUuid(java.lang.String uuid) 621 throws com.liferay.portal.kernel.exception.SystemException; 622 623 /** 624 * Removes the polls question where uuid = ? and groupId = ? from the database. 625 * 626 * @param uuid the uuid 627 * @param groupId the group ID 628 * @return the polls question that was removed 629 * @throws SystemException if a system exception occurred 630 */ 631 public com.liferay.portlet.polls.model.PollsQuestion removeByUUID_G( 632 java.lang.String uuid, long groupId) 633 throws com.liferay.portal.kernel.exception.SystemException, 634 com.liferay.portlet.polls.NoSuchQuestionException; 635 636 /** 637 * Removes all the polls questions where uuid = ? and companyId = ? from the database. 638 * 639 * @param uuid the uuid 640 * @param companyId the company ID 641 * @throws SystemException if a system exception occurred 642 */ 643 public void removeByUuid_C(java.lang.String uuid, long companyId) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Removes all the polls questions where groupId = ? from the database. 648 * 649 * @param groupId the group ID 650 * @throws SystemException if a system exception occurred 651 */ 652 public void removeByGroupId(long groupId) 653 throws com.liferay.portal.kernel.exception.SystemException; 654 655 /** 656 * Removes all the polls questions from the database. 657 * 658 * @throws SystemException if a system exception occurred 659 */ 660 public void removeAll() 661 throws com.liferay.portal.kernel.exception.SystemException; 662 663 /** 664 * Returns the number of polls questions where uuid = ?. 665 * 666 * @param uuid the uuid 667 * @return the number of matching polls questions 668 * @throws SystemException if a system exception occurred 669 */ 670 public int countByUuid(java.lang.String uuid) 671 throws com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Returns the number of polls questions where uuid = ? and groupId = ?. 675 * 676 * @param uuid the uuid 677 * @param groupId the group ID 678 * @return the number of matching polls questions 679 * @throws SystemException if a system exception occurred 680 */ 681 public int countByUUID_G(java.lang.String uuid, long groupId) 682 throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Returns the number of polls questions where uuid = ? and companyId = ?. 686 * 687 * @param uuid the uuid 688 * @param companyId the company ID 689 * @return the number of matching polls questions 690 * @throws SystemException if a system exception occurred 691 */ 692 public int countByUuid_C(java.lang.String uuid, long companyId) 693 throws com.liferay.portal.kernel.exception.SystemException; 694 695 /** 696 * Returns the number of polls questions where groupId = ?. 697 * 698 * @param groupId the group ID 699 * @return the number of matching polls questions 700 * @throws SystemException if a system exception occurred 701 */ 702 public int countByGroupId(long groupId) 703 throws com.liferay.portal.kernel.exception.SystemException; 704 705 /** 706 * Returns the number of polls questions that the user has permission to view where groupId = ?. 707 * 708 * @param groupId the group ID 709 * @return the number of matching polls questions that the user has permission to view 710 * @throws SystemException if a system exception occurred 711 */ 712 public int filterCountByGroupId(long groupId) 713 throws com.liferay.portal.kernel.exception.SystemException; 714 715 /** 716 * Returns the number of polls questions. 717 * 718 * @return the number of polls questions 719 * @throws SystemException if a system exception occurred 720 */ 721 public int countAll() 722 throws com.liferay.portal.kernel.exception.SystemException; 723 }