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