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