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