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