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.tasks.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.tasks.model.TasksReview; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the tasks review 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 TasksReviewPersistence 036 * @see TasksReviewPersistenceImpl 037 * @generated 038 */ 039 public class TasksReviewUtil { 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(TasksReview tasksReview) { 051 getPersistence().clearCache(tasksReview); 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<TasksReview> 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<TasksReview> 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<TasksReview> 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 TasksReview remove(TasksReview tasksReview) 094 throws SystemException { 095 return getPersistence().remove(tasksReview); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static TasksReview update(TasksReview tasksReview, boolean merge) 102 throws SystemException { 103 return getPersistence().update(tasksReview, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static TasksReview update(TasksReview tasksReview, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(tasksReview, merge, serviceContext); 112 } 113 114 /** 115 * Caches the tasks review in the entity cache if it is enabled. 116 * 117 * @param tasksReview the tasks review to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.tasks.model.TasksReview tasksReview) { 121 getPersistence().cacheResult(tasksReview); 122 } 123 124 /** 125 * Caches the tasks reviews in the entity cache if it is enabled. 126 * 127 * @param tasksReviews the tasks reviews to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews) { 131 getPersistence().cacheResult(tasksReviews); 132 } 133 134 /** 135 * Creates a new tasks review with the primary key. 136 * 137 * @param reviewId the primary key for the new tasks review 138 * @return the new tasks review 139 */ 140 public static com.liferay.portlet.tasks.model.TasksReview create( 141 long reviewId) { 142 return getPersistence().create(reviewId); 143 } 144 145 /** 146 * Removes the tasks review with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param reviewId the primary key of the tasks review to remove 149 * @return the tasks review that was removed 150 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.tasks.model.TasksReview remove( 154 long reviewId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.tasks.NoSuchReviewException { 157 return getPersistence().remove(reviewId); 158 } 159 160 public static com.liferay.portlet.tasks.model.TasksReview updateImpl( 161 com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(tasksReview, merge); 164 } 165 166 /** 167 * Finds the tasks review with the primary key or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found. 168 * 169 * @param reviewId the primary key of the tasks review to find 170 * @return the tasks review 171 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey( 175 long reviewId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.tasks.NoSuchReviewException { 178 return getPersistence().findByPrimaryKey(reviewId); 179 } 180 181 /** 182 * Finds the tasks review with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param reviewId the primary key of the tasks review to find 185 * @return the tasks review, or <code>null</code> if a tasks review with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey( 189 long reviewId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(reviewId); 192 } 193 194 /** 195 * Finds all the tasks reviews where userId = ?. 196 * 197 * @param userId the user id to search with 198 * @return the matching tasks reviews 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 202 long userId) throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUserId(userId); 204 } 205 206 /** 207 * Finds a range of all the tasks reviews where userId = ?. 208 * 209 * <p> 210 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 211 * </p> 212 * 213 * @param userId the user id to search with 214 * @param start the lower bound of the range of tasks reviews to return 215 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 216 * @return the range of matching tasks reviews 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 220 long userId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUserId(userId, start, end); 223 } 224 225 /** 226 * Finds an ordered range of all the tasks reviews where userId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param userId the user id to search with 233 * @param start the lower bound of the range of tasks reviews to return 234 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 235 * @param orderByComparator the comparator to order the results by 236 * @return the ordered range of matching tasks reviews 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 240 long userId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByUserId(userId, start, end, orderByComparator); 245 } 246 247 /** 248 * Finds the first tasks review in the ordered set where userId = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param userId the user id to search with 255 * @param orderByComparator the comparator to order the set by 256 * @return the first matching tasks review 257 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.tasks.model.TasksReview findByUserId_First( 261 long userId, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.tasks.NoSuchReviewException { 265 return getPersistence().findByUserId_First(userId, orderByComparator); 266 } 267 268 /** 269 * Finds the last tasks review in the ordered set where userId = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param userId the user id to search with 276 * @param orderByComparator the comparator to order the set by 277 * @return the last matching tasks review 278 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.tasks.model.TasksReview findByUserId_Last( 282 long userId, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.tasks.NoSuchReviewException { 286 return getPersistence().findByUserId_Last(userId, orderByComparator); 287 } 288 289 /** 290 * Finds the tasks reviews before and after the current tasks review in the ordered set where userId = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param reviewId the primary key of the current tasks review 297 * @param userId the user id to search with 298 * @param orderByComparator the comparator to order the set by 299 * @return the previous, current, and next tasks review 300 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext( 304 long reviewId, long userId, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.tasks.NoSuchReviewException { 308 return getPersistence() 309 .findByUserId_PrevAndNext(reviewId, userId, orderByComparator); 310 } 311 312 /** 313 * Finds all the tasks reviews where proposalId = ?. 314 * 315 * @param proposalId the proposal id to search with 316 * @return the matching tasks reviews 317 * @throws SystemException if a system exception occurred 318 */ 319 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 320 long proposalId) 321 throws com.liferay.portal.kernel.exception.SystemException { 322 return getPersistence().findByProposalId(proposalId); 323 } 324 325 /** 326 * Finds a range of all the tasks reviews where proposalId = ?. 327 * 328 * <p> 329 * 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. 330 * </p> 331 * 332 * @param proposalId the proposal id to search with 333 * @param start the lower bound of the range of tasks reviews to return 334 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 335 * @return the range of matching tasks reviews 336 * @throws SystemException if a system exception occurred 337 */ 338 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 339 long proposalId, int start, int end) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().findByProposalId(proposalId, start, end); 342 } 343 344 /** 345 * Finds an ordered range of all the tasks reviews where proposalId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param proposalId the proposal id to search with 352 * @param start the lower bound of the range of tasks reviews to return 353 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 354 * @param orderByComparator the comparator to order the results by 355 * @return the ordered range of matching tasks reviews 356 * @throws SystemException if a system exception occurred 357 */ 358 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 359 long proposalId, int start, int end, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.kernel.exception.SystemException { 362 return getPersistence() 363 .findByProposalId(proposalId, start, end, orderByComparator); 364 } 365 366 /** 367 * Finds the first tasks review in the ordered set where proposalId = ?. 368 * 369 * <p> 370 * 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. 371 * </p> 372 * 373 * @param proposalId the proposal id to search with 374 * @param orderByComparator the comparator to order the set by 375 * @return the first matching tasks review 376 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_First( 380 long proposalId, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.kernel.exception.SystemException, 383 com.liferay.portlet.tasks.NoSuchReviewException { 384 return getPersistence() 385 .findByProposalId_First(proposalId, orderByComparator); 386 } 387 388 /** 389 * Finds the last tasks review in the ordered set where proposalId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param proposalId the proposal id to search with 396 * @param orderByComparator the comparator to order the set by 397 * @return the last matching tasks review 398 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last( 402 long proposalId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.tasks.NoSuchReviewException { 406 return getPersistence() 407 .findByProposalId_Last(proposalId, orderByComparator); 408 } 409 410 /** 411 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ?. 412 * 413 * <p> 414 * 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. 415 * </p> 416 * 417 * @param reviewId the primary key of the current tasks review 418 * @param proposalId the proposal id to search with 419 * @param orderByComparator the comparator to order the set by 420 * @return the previous, current, and next tasks review 421 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 422 * @throws SystemException if a system exception occurred 423 */ 424 public static com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext( 425 long reviewId, long proposalId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException, 428 com.liferay.portlet.tasks.NoSuchReviewException { 429 return getPersistence() 430 .findByProposalId_PrevAndNext(reviewId, proposalId, 431 orderByComparator); 432 } 433 434 /** 435 * Finds the tasks review where userId = ? and proposalId = ? or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found. 436 * 437 * @param userId the user id to search with 438 * @param proposalId the proposal id to search with 439 * @return the matching tasks review 440 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public static com.liferay.portlet.tasks.model.TasksReview findByU_P( 444 long userId, long proposalId) 445 throws com.liferay.portal.kernel.exception.SystemException, 446 com.liferay.portlet.tasks.NoSuchReviewException { 447 return getPersistence().findByU_P(userId, proposalId); 448 } 449 450 /** 451 * Finds the tasks review where userId = ? and proposalId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 452 * 453 * @param userId the user id to search with 454 * @param proposalId the proposal id to search with 455 * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P( 459 long userId, long proposalId) 460 throws com.liferay.portal.kernel.exception.SystemException { 461 return getPersistence().fetchByU_P(userId, proposalId); 462 } 463 464 /** 465 * Finds the tasks review where userId = ? and proposalId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 466 * 467 * @param userId the user id to search with 468 * @param proposalId the proposal id to search with 469 * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found 470 * @throws SystemException if a system exception occurred 471 */ 472 public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P( 473 long userId, long proposalId, boolean retrieveFromCache) 474 throws com.liferay.portal.kernel.exception.SystemException { 475 return getPersistence().fetchByU_P(userId, proposalId, retrieveFromCache); 476 } 477 478 /** 479 * Finds all the tasks reviews where proposalId = ? and stage = ?. 480 * 481 * @param proposalId the proposal id to search with 482 * @param stage the stage to search with 483 * @return the matching tasks reviews 484 * @throws SystemException if a system exception occurred 485 */ 486 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 487 long proposalId, int stage) 488 throws com.liferay.portal.kernel.exception.SystemException { 489 return getPersistence().findByP_S(proposalId, stage); 490 } 491 492 /** 493 * Finds a range of all the tasks reviews where proposalId = ? and stage = ?. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param proposalId the proposal id to search with 500 * @param stage the stage to search with 501 * @param start the lower bound of the range of tasks reviews to return 502 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 503 * @return the range of matching tasks reviews 504 * @throws SystemException if a system exception occurred 505 */ 506 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 507 long proposalId, int stage, int start, int end) 508 throws com.liferay.portal.kernel.exception.SystemException { 509 return getPersistence().findByP_S(proposalId, stage, start, end); 510 } 511 512 /** 513 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ?. 514 * 515 * <p> 516 * 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. 517 * </p> 518 * 519 * @param proposalId the proposal id to search with 520 * @param stage the stage to search with 521 * @param start the lower bound of the range of tasks reviews to return 522 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 523 * @param orderByComparator the comparator to order the results by 524 * @return the ordered range of matching tasks reviews 525 * @throws SystemException if a system exception occurred 526 */ 527 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 528 long proposalId, int stage, int start, int end, 529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence() 532 .findByP_S(proposalId, stage, start, end, orderByComparator); 533 } 534 535 /** 536 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param proposalId the proposal id to search with 543 * @param stage the stage to search with 544 * @param orderByComparator the comparator to order the set by 545 * @return the first matching tasks review 546 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 547 * @throws SystemException if a system exception occurred 548 */ 549 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_First( 550 long proposalId, int stage, 551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 552 throws com.liferay.portal.kernel.exception.SystemException, 553 com.liferay.portlet.tasks.NoSuchReviewException { 554 return getPersistence() 555 .findByP_S_First(proposalId, stage, orderByComparator); 556 } 557 558 /** 559 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ?. 560 * 561 * <p> 562 * 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. 563 * </p> 564 * 565 * @param proposalId the proposal id to search with 566 * @param stage the stage to search with 567 * @param orderByComparator the comparator to order the set by 568 * @return the last matching tasks review 569 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 570 * @throws SystemException if a system exception occurred 571 */ 572 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_Last( 573 long proposalId, int stage, 574 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 575 throws com.liferay.portal.kernel.exception.SystemException, 576 com.liferay.portlet.tasks.NoSuchReviewException { 577 return getPersistence() 578 .findByP_S_Last(proposalId, stage, orderByComparator); 579 } 580 581 /** 582 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ?. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param reviewId the primary key of the current tasks review 589 * @param proposalId the proposal id to search with 590 * @param stage the stage to search with 591 * @param orderByComparator the comparator to order the set by 592 * @return the previous, current, and next tasks review 593 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 594 * @throws SystemException if a system exception occurred 595 */ 596 public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext( 597 long reviewId, long proposalId, int stage, 598 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 599 throws com.liferay.portal.kernel.exception.SystemException, 600 com.liferay.portlet.tasks.NoSuchReviewException { 601 return getPersistence() 602 .findByP_S_PrevAndNext(reviewId, proposalId, stage, 603 orderByComparator); 604 } 605 606 /** 607 * Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 608 * 609 * @param proposalId the proposal id to search with 610 * @param stage the stage to search with 611 * @param completed the completed to search with 612 * @return the matching tasks reviews 613 * @throws SystemException if a system exception occurred 614 */ 615 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 616 long proposalId, int stage, boolean completed) 617 throws com.liferay.portal.kernel.exception.SystemException { 618 return getPersistence().findByP_S_C(proposalId, stage, completed); 619 } 620 621 /** 622 * Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 623 * 624 * <p> 625 * 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. 626 * </p> 627 * 628 * @param proposalId the proposal id to search with 629 * @param stage the stage to search with 630 * @param completed the completed to search with 631 * @param start the lower bound of the range of tasks reviews to return 632 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 633 * @return the range of matching tasks reviews 634 * @throws SystemException if a system exception occurred 635 */ 636 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 637 long proposalId, int stage, boolean completed, int start, int end) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 return getPersistence() 640 .findByP_S_C(proposalId, stage, completed, start, end); 641 } 642 643 /** 644 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 645 * 646 * <p> 647 * 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. 648 * </p> 649 * 650 * @param proposalId the proposal id to search with 651 * @param stage the stage to search with 652 * @param completed the completed to search with 653 * @param start the lower bound of the range of tasks reviews to return 654 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 655 * @param orderByComparator the comparator to order the results by 656 * @return the ordered range of matching tasks reviews 657 * @throws SystemException if a system exception occurred 658 */ 659 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 660 long proposalId, int stage, boolean completed, int start, int end, 661 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 662 throws com.liferay.portal.kernel.exception.SystemException { 663 return getPersistence() 664 .findByP_S_C(proposalId, stage, completed, start, end, 665 orderByComparator); 666 } 667 668 /** 669 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 670 * 671 * <p> 672 * 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. 673 * </p> 674 * 675 * @param proposalId the proposal id to search with 676 * @param stage the stage to search with 677 * @param completed the completed to search with 678 * @param orderByComparator the comparator to order the set by 679 * @return the first matching tasks review 680 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 681 * @throws SystemException if a system exception occurred 682 */ 683 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First( 684 long proposalId, int stage, boolean completed, 685 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 686 throws com.liferay.portal.kernel.exception.SystemException, 687 com.liferay.portlet.tasks.NoSuchReviewException { 688 return getPersistence() 689 .findByP_S_C_First(proposalId, stage, completed, 690 orderByComparator); 691 } 692 693 /** 694 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 695 * 696 * <p> 697 * 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. 698 * </p> 699 * 700 * @param proposalId the proposal id to search with 701 * @param stage the stage to search with 702 * @param completed the completed to search with 703 * @param orderByComparator the comparator to order the set by 704 * @return the last matching tasks review 705 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last( 709 long proposalId, int stage, boolean completed, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException, 712 com.liferay.portlet.tasks.NoSuchReviewException { 713 return getPersistence() 714 .findByP_S_C_Last(proposalId, stage, completed, 715 orderByComparator); 716 } 717 718 /** 719 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 720 * 721 * <p> 722 * 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. 723 * </p> 724 * 725 * @param reviewId the primary key of the current tasks review 726 * @param proposalId the proposal id to search with 727 * @param stage the stage to search with 728 * @param completed the completed to search with 729 * @param orderByComparator the comparator to order the set by 730 * @return the previous, current, and next tasks review 731 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 732 * @throws SystemException if a system exception occurred 733 */ 734 public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext( 735 long reviewId, long proposalId, int stage, boolean completed, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.kernel.exception.SystemException, 738 com.liferay.portlet.tasks.NoSuchReviewException { 739 return getPersistence() 740 .findByP_S_C_PrevAndNext(reviewId, proposalId, stage, 741 completed, orderByComparator); 742 } 743 744 /** 745 * Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 746 * 747 * @param proposalId the proposal id to search with 748 * @param stage the stage to search with 749 * @param completed the completed to search with 750 * @param rejected the rejected to search with 751 * @return the matching tasks reviews 752 * @throws SystemException if a system exception occurred 753 */ 754 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 755 long proposalId, int stage, boolean completed, boolean rejected) 756 throws com.liferay.portal.kernel.exception.SystemException { 757 return getPersistence() 758 .findByP_S_C_R(proposalId, stage, completed, rejected); 759 } 760 761 /** 762 * Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 763 * 764 * <p> 765 * 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. 766 * </p> 767 * 768 * @param proposalId the proposal id to search with 769 * @param stage the stage to search with 770 * @param completed the completed to search with 771 * @param rejected the rejected to search with 772 * @param start the lower bound of the range of tasks reviews to return 773 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 774 * @return the range of matching tasks reviews 775 * @throws SystemException if a system exception occurred 776 */ 777 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 778 long proposalId, int stage, boolean completed, boolean rejected, 779 int start, int end) 780 throws com.liferay.portal.kernel.exception.SystemException { 781 return getPersistence() 782 .findByP_S_C_R(proposalId, stage, completed, rejected, 783 start, end); 784 } 785 786 /** 787 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 788 * 789 * <p> 790 * 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. 791 * </p> 792 * 793 * @param proposalId the proposal id to search with 794 * @param stage the stage to search with 795 * @param completed the completed to search with 796 * @param rejected the rejected to search with 797 * @param start the lower bound of the range of tasks reviews to return 798 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 799 * @param orderByComparator the comparator to order the results by 800 * @return the ordered range of matching tasks reviews 801 * @throws SystemException if a system exception occurred 802 */ 803 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 804 long proposalId, int stage, boolean completed, boolean rejected, 805 int start, int end, 806 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 807 throws com.liferay.portal.kernel.exception.SystemException { 808 return getPersistence() 809 .findByP_S_C_R(proposalId, stage, completed, rejected, 810 start, end, orderByComparator); 811 } 812 813 /** 814 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 815 * 816 * <p> 817 * 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. 818 * </p> 819 * 820 * @param proposalId the proposal id to search with 821 * @param stage the stage to search with 822 * @param completed the completed to search with 823 * @param rejected the rejected to search with 824 * @param orderByComparator the comparator to order the set by 825 * @return the first matching tasks review 826 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 827 * @throws SystemException if a system exception occurred 828 */ 829 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First( 830 long proposalId, int stage, boolean completed, boolean rejected, 831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 832 throws com.liferay.portal.kernel.exception.SystemException, 833 com.liferay.portlet.tasks.NoSuchReviewException { 834 return getPersistence() 835 .findByP_S_C_R_First(proposalId, stage, completed, rejected, 836 orderByComparator); 837 } 838 839 /** 840 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 841 * 842 * <p> 843 * 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. 844 * </p> 845 * 846 * @param proposalId the proposal id to search with 847 * @param stage the stage to search with 848 * @param completed the completed to search with 849 * @param rejected the rejected to search with 850 * @param orderByComparator the comparator to order the set by 851 * @return the last matching tasks review 852 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 853 * @throws SystemException if a system exception occurred 854 */ 855 public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last( 856 long proposalId, int stage, boolean completed, boolean rejected, 857 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 858 throws com.liferay.portal.kernel.exception.SystemException, 859 com.liferay.portlet.tasks.NoSuchReviewException { 860 return getPersistence() 861 .findByP_S_C_R_Last(proposalId, stage, completed, rejected, 862 orderByComparator); 863 } 864 865 /** 866 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 867 * 868 * <p> 869 * 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. 870 * </p> 871 * 872 * @param reviewId the primary key of the current tasks review 873 * @param proposalId the proposal id to search with 874 * @param stage the stage to search with 875 * @param completed the completed to search with 876 * @param rejected the rejected to search with 877 * @param orderByComparator the comparator to order the set by 878 * @return the previous, current, and next tasks review 879 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 880 * @throws SystemException if a system exception occurred 881 */ 882 public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext( 883 long reviewId, long proposalId, int stage, boolean completed, 884 boolean rejected, 885 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 886 throws com.liferay.portal.kernel.exception.SystemException, 887 com.liferay.portlet.tasks.NoSuchReviewException { 888 return getPersistence() 889 .findByP_S_C_R_PrevAndNext(reviewId, proposalId, stage, 890 completed, rejected, orderByComparator); 891 } 892 893 /** 894 * Finds all the tasks reviews. 895 * 896 * @return the tasks reviews 897 * @throws SystemException if a system exception occurred 898 */ 899 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll() 900 throws com.liferay.portal.kernel.exception.SystemException { 901 return getPersistence().findAll(); 902 } 903 904 /** 905 * Finds a range of all the tasks reviews. 906 * 907 * <p> 908 * 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. 909 * </p> 910 * 911 * @param start the lower bound of the range of tasks reviews to return 912 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 913 * @return the range of tasks reviews 914 * @throws SystemException if a system exception occurred 915 */ 916 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll( 917 int start, int end) 918 throws com.liferay.portal.kernel.exception.SystemException { 919 return getPersistence().findAll(start, end); 920 } 921 922 /** 923 * Finds an ordered range of all the tasks reviews. 924 * 925 * <p> 926 * 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. 927 * </p> 928 * 929 * @param start the lower bound of the range of tasks reviews to return 930 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 931 * @param orderByComparator the comparator to order the results by 932 * @return the ordered range of tasks reviews 933 * @throws SystemException if a system exception occurred 934 */ 935 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll( 936 int start, int end, 937 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 938 throws com.liferay.portal.kernel.exception.SystemException { 939 return getPersistence().findAll(start, end, orderByComparator); 940 } 941 942 /** 943 * Removes all the tasks reviews where userId = ? from the database. 944 * 945 * @param userId the user id to search with 946 * @throws SystemException if a system exception occurred 947 */ 948 public static void removeByUserId(long userId) 949 throws com.liferay.portal.kernel.exception.SystemException { 950 getPersistence().removeByUserId(userId); 951 } 952 953 /** 954 * Removes all the tasks reviews where proposalId = ? from the database. 955 * 956 * @param proposalId the proposal id to search with 957 * @throws SystemException if a system exception occurred 958 */ 959 public static void removeByProposalId(long proposalId) 960 throws com.liferay.portal.kernel.exception.SystemException { 961 getPersistence().removeByProposalId(proposalId); 962 } 963 964 /** 965 * Removes the tasks review where userId = ? and proposalId = ? from the database. 966 * 967 * @param userId the user id to search with 968 * @param proposalId the proposal id to search with 969 * @throws SystemException if a system exception occurred 970 */ 971 public static void removeByU_P(long userId, long proposalId) 972 throws com.liferay.portal.kernel.exception.SystemException, 973 com.liferay.portlet.tasks.NoSuchReviewException { 974 getPersistence().removeByU_P(userId, proposalId); 975 } 976 977 /** 978 * Removes all the tasks reviews where proposalId = ? and stage = ? from the database. 979 * 980 * @param proposalId the proposal id to search with 981 * @param stage the stage to search with 982 * @throws SystemException if a system exception occurred 983 */ 984 public static void removeByP_S(long proposalId, int stage) 985 throws com.liferay.portal.kernel.exception.SystemException { 986 getPersistence().removeByP_S(proposalId, stage); 987 } 988 989 /** 990 * Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? from the database. 991 * 992 * @param proposalId the proposal id to search with 993 * @param stage the stage to search with 994 * @param completed the completed to search with 995 * @throws SystemException if a system exception occurred 996 */ 997 public static void removeByP_S_C(long proposalId, int stage, 998 boolean completed) 999 throws com.liferay.portal.kernel.exception.SystemException { 1000 getPersistence().removeByP_S_C(proposalId, stage, completed); 1001 } 1002 1003 /** 1004 * Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ? from the database. 1005 * 1006 * @param proposalId the proposal id to search with 1007 * @param stage the stage to search with 1008 * @param completed the completed to search with 1009 * @param rejected the rejected to search with 1010 * @throws SystemException if a system exception occurred 1011 */ 1012 public static void removeByP_S_C_R(long proposalId, int stage, 1013 boolean completed, boolean rejected) 1014 throws com.liferay.portal.kernel.exception.SystemException { 1015 getPersistence().removeByP_S_C_R(proposalId, stage, completed, rejected); 1016 } 1017 1018 /** 1019 * Removes all the tasks reviews from the database. 1020 * 1021 * @throws SystemException if a system exception occurred 1022 */ 1023 public static void removeAll() 1024 throws com.liferay.portal.kernel.exception.SystemException { 1025 getPersistence().removeAll(); 1026 } 1027 1028 /** 1029 * Counts all the tasks reviews where userId = ?. 1030 * 1031 * @param userId the user id to search with 1032 * @return the number of matching tasks reviews 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public static int countByUserId(long userId) 1036 throws com.liferay.portal.kernel.exception.SystemException { 1037 return getPersistence().countByUserId(userId); 1038 } 1039 1040 /** 1041 * Counts all the tasks reviews where proposalId = ?. 1042 * 1043 * @param proposalId the proposal id to search with 1044 * @return the number of matching tasks reviews 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static int countByProposalId(long proposalId) 1048 throws com.liferay.portal.kernel.exception.SystemException { 1049 return getPersistence().countByProposalId(proposalId); 1050 } 1051 1052 /** 1053 * Counts all the tasks reviews where userId = ? and proposalId = ?. 1054 * 1055 * @param userId the user id to search with 1056 * @param proposalId the proposal id to search with 1057 * @return the number of matching tasks reviews 1058 * @throws SystemException if a system exception occurred 1059 */ 1060 public static int countByU_P(long userId, long proposalId) 1061 throws com.liferay.portal.kernel.exception.SystemException { 1062 return getPersistence().countByU_P(userId, proposalId); 1063 } 1064 1065 /** 1066 * Counts all the tasks reviews where proposalId = ? and stage = ?. 1067 * 1068 * @param proposalId the proposal id to search with 1069 * @param stage the stage to search with 1070 * @return the number of matching tasks reviews 1071 * @throws SystemException if a system exception occurred 1072 */ 1073 public static int countByP_S(long proposalId, int stage) 1074 throws com.liferay.portal.kernel.exception.SystemException { 1075 return getPersistence().countByP_S(proposalId, stage); 1076 } 1077 1078 /** 1079 * Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 1080 * 1081 * @param proposalId the proposal id to search with 1082 * @param stage the stage to search with 1083 * @param completed the completed to search with 1084 * @return the number of matching tasks reviews 1085 * @throws SystemException if a system exception occurred 1086 */ 1087 public static int countByP_S_C(long proposalId, int stage, boolean completed) 1088 throws com.liferay.portal.kernel.exception.SystemException { 1089 return getPersistence().countByP_S_C(proposalId, stage, completed); 1090 } 1091 1092 /** 1093 * Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 1094 * 1095 * @param proposalId the proposal id to search with 1096 * @param stage the stage to search with 1097 * @param completed the completed to search with 1098 * @param rejected the rejected to search with 1099 * @return the number of matching tasks reviews 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static int countByP_S_C_R(long proposalId, int stage, 1103 boolean completed, boolean rejected) 1104 throws com.liferay.portal.kernel.exception.SystemException { 1105 return getPersistence() 1106 .countByP_S_C_R(proposalId, stage, completed, rejected); 1107 } 1108 1109 /** 1110 * Counts all the tasks reviews. 1111 * 1112 * @return the number of tasks reviews 1113 * @throws SystemException if a system exception occurred 1114 */ 1115 public static int countAll() 1116 throws com.liferay.portal.kernel.exception.SystemException { 1117 return getPersistence().countAll(); 1118 } 1119 1120 public static TasksReviewPersistence getPersistence() { 1121 if (_persistence == null) { 1122 _persistence = (TasksReviewPersistence)PortalBeanLocatorUtil.locate(TasksReviewPersistence.class.getName()); 1123 } 1124 1125 return _persistence; 1126 } 1127 1128 public void setPersistence(TasksReviewPersistence persistence) { 1129 _persistence = persistence; 1130 } 1131 1132 private static TasksReviewPersistence _persistence; 1133 }