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 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the polls question with the primary key or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found. 083 * 084 * @param questionId the primary key of the polls question 085 * @return the polls question 086 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey( 090 long questionId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.polls.NoSuchQuestionException; 093 094 /** 095 * Returns the polls question with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param questionId the primary key of the polls question 098 * @return the polls question, or <code>null</code> if a polls question with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey( 102 long questionId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Returns all the polls questions where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @return the matching polls questions 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the polls questions where uuid = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param uuid the uuid 124 * @param start the lower bound of the range of polls questions 125 * @param end the upper bound of the range of polls questions (not inclusive) 126 * @return the range of matching polls questions 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 130 java.lang.String uuid, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Returns an ordered range of all the polls questions where uuid = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param uuid the uuid 141 * @param start the lower bound of the range of polls questions 142 * @param end the upper bound of the range of polls questions (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching polls questions 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid( 148 java.lang.String uuid, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Returns the first polls question in the ordered set where uuid = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param uuid the uuid 160 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 161 * @return the first matching polls question 162 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.polls.NoSuchQuestionException; 170 171 /** 172 * Returns the last polls question in the ordered set where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the last matching polls question 181 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.polls.NoSuchQuestionException; 189 190 /** 191 * Returns the polls questions before and after the current polls question in the ordered set where uuid = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param questionId the primary key of the current polls question 198 * @param uuid the uuid 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the previous, current, and next polls question 201 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext( 205 long questionId, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.polls.NoSuchQuestionException; 209 210 /** 211 * Returns the polls question where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found. 212 * 213 * @param uuid the uuid 214 * @param groupId the group ID 215 * @return the matching polls question 216 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G( 220 java.lang.String uuid, long groupId) 221 throws com.liferay.portal.kernel.exception.SystemException, 222 com.liferay.portlet.polls.NoSuchQuestionException; 223 224 /** 225 * Returns the polls question where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 226 * 227 * @param uuid the uuid 228 * @param groupId the group ID 229 * @return the matching polls question, or <code>null</code> 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 fetchByUUID_G( 233 java.lang.String uuid, long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns the polls question where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 238 * 239 * @param uuid the uuid 240 * @param groupId the group ID 241 * @param retrieveFromCache whether to use the finder cache 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, boolean retrieveFromCache) 247 throws com.liferay.portal.kernel.exception.SystemException; 248 249 /** 250 * Returns all the polls questions where groupId = ?. 251 * 252 * @param groupId the group ID 253 * @return the matching polls questions 254 * @throws SystemException if a system exception occurred 255 */ 256 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 257 long groupId) 258 throws com.liferay.portal.kernel.exception.SystemException; 259 260 /** 261 * Returns a range of all the polls questions where groupId = ?. 262 * 263 * <p> 264 * 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. 265 * </p> 266 * 267 * @param groupId the group ID 268 * @param start the lower bound of the range of polls questions 269 * @param end the upper bound of the range of polls questions (not inclusive) 270 * @return the range of matching polls questions 271 * @throws SystemException if a system exception occurred 272 */ 273 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 274 long groupId, int start, int end) 275 throws com.liferay.portal.kernel.exception.SystemException; 276 277 /** 278 * Returns an ordered range of all the polls questions where groupId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param groupId the group ID 285 * @param start the lower bound of the range of polls questions 286 * @param end the upper bound of the range of polls questions (not inclusive) 287 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 288 * @return the ordered range of matching polls questions 289 * @throws SystemException if a system exception occurred 290 */ 291 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId( 292 long groupId, int start, int end, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException; 295 296 /** 297 * Returns the first polls question in the ordered set where groupId = ?. 298 * 299 * <p> 300 * 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. 301 * </p> 302 * 303 * @param groupId the group ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the first matching polls question 306 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First( 310 long groupId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.polls.NoSuchQuestionException; 314 315 /** 316 * Returns the last polls question in the ordered set where groupId = ?. 317 * 318 * <p> 319 * 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. 320 * </p> 321 * 322 * @param groupId the group ID 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the last matching polls question 325 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last( 329 long groupId, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.kernel.exception.SystemException, 332 com.liferay.portlet.polls.NoSuchQuestionException; 333 334 /** 335 * Returns the polls questions before and after the current polls question in the ordered set where groupId = ?. 336 * 337 * <p> 338 * 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. 339 * </p> 340 * 341 * @param questionId the primary key of the current polls question 342 * @param groupId the group ID 343 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 344 * @return the previous, current, and next polls question 345 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 346 * @throws SystemException if a system exception occurred 347 */ 348 public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext( 349 long questionId, long groupId, 350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 351 throws com.liferay.portal.kernel.exception.SystemException, 352 com.liferay.portlet.polls.NoSuchQuestionException; 353 354 /** 355 * Returns all the polls questions that the user has permission to view where groupId = ?. 356 * 357 * @param groupId the group ID 358 * @return the matching polls questions that the user has permission to view 359 * @throws SystemException if a system exception occurred 360 */ 361 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 362 long groupId) 363 throws com.liferay.portal.kernel.exception.SystemException; 364 365 /** 366 * Returns a range of all the polls questions that the user has permission to view where groupId = ?. 367 * 368 * <p> 369 * 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. 370 * </p> 371 * 372 * @param groupId the group ID 373 * @param start the lower bound of the range of polls questions 374 * @param end the upper bound of the range of polls questions (not inclusive) 375 * @return the range of matching polls questions that the user has permission to view 376 * @throws SystemException if a system exception occurred 377 */ 378 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 379 long groupId, int start, int end) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns an ordered range of all the polls questions that the user has permissions to view where groupId = ?. 384 * 385 * <p> 386 * 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. 387 * </p> 388 * 389 * @param groupId the group ID 390 * @param start the lower bound of the range of polls questions 391 * @param end the upper bound of the range of polls questions (not inclusive) 392 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 393 * @return the ordered range of matching polls questions that the user has permission to view 394 * @throws SystemException if a system exception occurred 395 */ 396 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId( 397 long groupId, int start, int end, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException; 400 401 /** 402 * 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 = ?. 403 * 404 * @param questionId the primary key of the current polls question 405 * @param groupId the group ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the previous, current, and next polls question 408 * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portlet.polls.model.PollsQuestion[] filterFindByGroupId_PrevAndNext( 412 long questionId, long groupId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.polls.NoSuchQuestionException; 416 417 /** 418 * Returns all the polls questions. 419 * 420 * @return the polls questions 421 * @throws SystemException if a system exception occurred 422 */ 423 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll() 424 throws com.liferay.portal.kernel.exception.SystemException; 425 426 /** 427 * Returns a range of all the polls questions. 428 * 429 * <p> 430 * 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. 431 * </p> 432 * 433 * @param start the lower bound of the range of polls questions 434 * @param end the upper bound of the range of polls questions (not inclusive) 435 * @return the range of polls questions 436 * @throws SystemException if a system exception occurred 437 */ 438 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll( 439 int start, int end) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns an ordered range of all the polls questions. 444 * 445 * <p> 446 * 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. 447 * </p> 448 * 449 * @param start the lower bound of the range of polls questions 450 * @param end the upper bound of the range of polls questions (not inclusive) 451 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 452 * @return the ordered range of polls questions 453 * @throws SystemException if a system exception occurred 454 */ 455 public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll( 456 int start, int end, 457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 458 throws com.liferay.portal.kernel.exception.SystemException; 459 460 /** 461 * Removes all the polls questions where uuid = ? from the database. 462 * 463 * @param uuid the uuid 464 * @throws SystemException if a system exception occurred 465 */ 466 public void removeByUuid(java.lang.String uuid) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Removes the polls question where uuid = ? and groupId = ? from the database. 471 * 472 * @param uuid the uuid 473 * @param groupId the group ID 474 * @throws SystemException if a system exception occurred 475 */ 476 public void removeByUUID_G(java.lang.String uuid, long groupId) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.polls.NoSuchQuestionException; 479 480 /** 481 * Removes all the polls questions where groupId = ? from the database. 482 * 483 * @param groupId the group ID 484 * @throws SystemException if a system exception occurred 485 */ 486 public void removeByGroupId(long groupId) 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Removes all the polls questions from the database. 491 * 492 * @throws SystemException if a system exception occurred 493 */ 494 public void removeAll() 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * Returns the number of polls questions where uuid = ?. 499 * 500 * @param uuid the uuid 501 * @return the number of matching polls questions 502 * @throws SystemException if a system exception occurred 503 */ 504 public int countByUuid(java.lang.String uuid) 505 throws com.liferay.portal.kernel.exception.SystemException; 506 507 /** 508 * Returns the number of polls questions where uuid = ? and groupId = ?. 509 * 510 * @param uuid the uuid 511 * @param groupId the group ID 512 * @return the number of matching polls questions 513 * @throws SystemException if a system exception occurred 514 */ 515 public int countByUUID_G(java.lang.String uuid, long groupId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns the number of polls questions where groupId = ?. 520 * 521 * @param groupId the group ID 522 * @return the number of matching polls questions 523 * @throws SystemException if a system exception occurred 524 */ 525 public int countByGroupId(long groupId) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Returns the number of polls questions that the user has permission to view where groupId = ?. 530 * 531 * @param groupId the group ID 532 * @return the number of matching polls questions that the user has permission to view 533 * @throws SystemException if a system exception occurred 534 */ 535 public int filterCountByGroupId(long groupId) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns the number of polls questions. 540 * 541 * @return the number of polls questions 542 * @throws SystemException if a system exception occurred 543 */ 544 public int countAll() 545 throws com.liferay.portal.kernel.exception.SystemException; 546 }