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.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.tasks.model.TasksReview; 021 022 /** 023 * The persistence interface for the tasks review service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see TasksReviewPersistenceImpl 031 * @see TasksReviewUtil 032 * @generated 033 */ 034 public interface TasksReviewPersistence extends BasePersistence<TasksReview> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link TasksReviewUtil} to access the tasks review persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the tasks review in the entity cache if it is enabled. 043 * 044 * @param tasksReview the tasks review to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.tasks.model.TasksReview tasksReview); 048 049 /** 050 * Caches the tasks reviews in the entity cache if it is enabled. 051 * 052 * @param tasksReviews the tasks reviews to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews); 056 057 /** 058 * Creates a new tasks review with the primary key. Does not add the tasks review to the database. 059 * 060 * @param reviewId the primary key for the new tasks review 061 * @return the new tasks review 062 */ 063 public com.liferay.portlet.tasks.model.TasksReview create(long reviewId); 064 065 /** 066 * Removes the tasks review with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param reviewId the primary key of the tasks review to remove 069 * @return the tasks review that was removed 070 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.tasks.model.TasksReview remove(long reviewId) 074 throws com.liferay.portal.kernel.exception.SystemException, 075 com.liferay.portlet.tasks.NoSuchReviewException; 076 077 public com.liferay.portlet.tasks.model.TasksReview updateImpl( 078 com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the tasks review with the primary key or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found. 083 * 084 * @param reviewId the primary key of the tasks review to find 085 * @return the tasks review 086 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey( 090 long reviewId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.tasks.NoSuchReviewException; 093 094 /** 095 * Finds the tasks review with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param reviewId the primary key of the tasks review to find 098 * @return the tasks review, or <code>null</code> if a tasks review with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey( 102 long reviewId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the tasks reviews where userId = ?. 107 * 108 * @param userId the user ID to search with 109 * @return the matching tasks reviews 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 113 long userId) throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Finds a range of all the tasks reviews where userId = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param userId the user ID to search with 123 * @param start the lower bound of the range of tasks reviews to return 124 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 125 * @return the range of matching tasks reviews 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 129 long userId, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Finds an ordered range of all the tasks reviews where userId = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param userId the user ID to search with 140 * @param start the lower bound of the range of tasks reviews to return 141 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 142 * @param orderByComparator the comparator to order the results by 143 * @return the ordered range of matching tasks reviews 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId( 147 long userId, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Finds the first tasks review in the ordered set where userId = ?. 153 * 154 * <p> 155 * 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. 156 * </p> 157 * 158 * @param userId the user ID to search with 159 * @param orderByComparator the comparator to order the set by 160 * @return the first matching tasks review 161 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 162 * @throws SystemException if a system exception occurred 163 */ 164 public com.liferay.portlet.tasks.model.TasksReview findByUserId_First( 165 long userId, 166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 167 throws com.liferay.portal.kernel.exception.SystemException, 168 com.liferay.portlet.tasks.NoSuchReviewException; 169 170 /** 171 * Finds the last tasks review in the ordered set where userId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param userId the user ID to search with 178 * @param orderByComparator the comparator to order the set by 179 * @return the last matching tasks review 180 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last( 184 long userId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.kernel.exception.SystemException, 187 com.liferay.portlet.tasks.NoSuchReviewException; 188 189 /** 190 * Finds the tasks reviews before and after the current tasks review in the ordered set where userId = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param reviewId the primary key of the current tasks review 197 * @param userId the user ID to search with 198 * @param orderByComparator the comparator to order the set by 199 * @return the previous, current, and next tasks review 200 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext( 204 long reviewId, long userId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException, 207 com.liferay.portlet.tasks.NoSuchReviewException; 208 209 /** 210 * Finds all the tasks reviews where proposalId = ?. 211 * 212 * @param proposalId the proposal ID to search with 213 * @return the matching tasks reviews 214 * @throws SystemException if a system exception occurred 215 */ 216 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 217 long proposalId) 218 throws com.liferay.portal.kernel.exception.SystemException; 219 220 /** 221 * Finds a range of all the tasks reviews where proposalId = ?. 222 * 223 * <p> 224 * 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. 225 * </p> 226 * 227 * @param proposalId the proposal ID to search with 228 * @param start the lower bound of the range of tasks reviews to return 229 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 230 * @return the range of matching tasks reviews 231 * @throws SystemException if a system exception occurred 232 */ 233 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 234 long proposalId, int start, int end) 235 throws com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Finds an ordered range of all the tasks reviews where proposalId = ?. 239 * 240 * <p> 241 * 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. 242 * </p> 243 * 244 * @param proposalId the proposal ID to search with 245 * @param start the lower bound of the range of tasks reviews to return 246 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 247 * @param orderByComparator the comparator to order the results by 248 * @return the ordered range of matching tasks reviews 249 * @throws SystemException if a system exception occurred 250 */ 251 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId( 252 long proposalId, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.kernel.exception.SystemException; 255 256 /** 257 * Finds the first tasks review in the ordered set where proposalId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param proposalId the proposal ID to search with 264 * @param orderByComparator the comparator to order the set by 265 * @return the first matching tasks review 266 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First( 270 long proposalId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.tasks.NoSuchReviewException; 274 275 /** 276 * Finds the last tasks review in the ordered set where proposalId = ?. 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 proposalId the proposal 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 com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last( 289 long proposalId, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.tasks.NoSuchReviewException; 293 294 /** 295 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param reviewId the primary key of the current tasks review 302 * @param proposalId the proposal ID to search with 303 * @param orderByComparator the comparator to order the set by 304 * @return the previous, current, and next tasks review 305 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext( 309 long reviewId, long proposalId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.tasks.NoSuchReviewException; 313 314 /** 315 * Finds the tasks review where userId = ? and proposalId = ? or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found. 316 * 317 * @param userId the user ID to search with 318 * @param proposalId the proposal ID to search with 319 * @return the matching tasks review 320 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId, 324 long proposalId) 325 throws com.liferay.portal.kernel.exception.SystemException, 326 com.liferay.portlet.tasks.NoSuchReviewException; 327 328 /** 329 * Finds the tasks review where userId = ? and proposalId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 330 * 331 * @param userId the user ID to search with 332 * @param proposalId the proposal ID to search with 333 * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId, 337 long proposalId) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Finds the tasks review where userId = ? and proposalId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 342 * 343 * @param userId the user ID to search with 344 * @param proposalId the proposal ID to search with 345 * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found 346 * @throws SystemException if a system exception occurred 347 */ 348 public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId, 349 long proposalId, boolean retrieveFromCache) 350 throws com.liferay.portal.kernel.exception.SystemException; 351 352 /** 353 * Finds all the tasks reviews where proposalId = ? and stage = ?. 354 * 355 * @param proposalId the proposal ID to search with 356 * @param stage the stage to search with 357 * @return the matching tasks reviews 358 * @throws SystemException if a system exception occurred 359 */ 360 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 361 long proposalId, int stage) 362 throws com.liferay.portal.kernel.exception.SystemException; 363 364 /** 365 * Finds a range of all the tasks reviews where proposalId = ? and stage = ?. 366 * 367 * <p> 368 * 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. 369 * </p> 370 * 371 * @param proposalId the proposal ID to search with 372 * @param stage the stage to search with 373 * @param start the lower bound of the range of tasks reviews to return 374 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 375 * @return the range of matching tasks reviews 376 * @throws SystemException if a system exception occurred 377 */ 378 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 379 long proposalId, int stage, int start, int end) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ?. 384 * 385 * <p> 386 * 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. 387 * </p> 388 * 389 * @param proposalId the proposal ID to search with 390 * @param stage the stage to search with 391 * @param start the lower bound of the range of tasks reviews to return 392 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 393 * @param orderByComparator the comparator to order the results by 394 * @return the ordered range of matching tasks reviews 395 * @throws SystemException if a system exception occurred 396 */ 397 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S( 398 long proposalId, int stage, int start, int end, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ?. 404 * 405 * <p> 406 * 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. 407 * </p> 408 * 409 * @param proposalId the proposal ID to search with 410 * @param stage the stage to search with 411 * @param orderByComparator the comparator to order the set by 412 * @return the first matching tasks review 413 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public com.liferay.portlet.tasks.model.TasksReview findByP_S_First( 417 long proposalId, int stage, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException, 420 com.liferay.portlet.tasks.NoSuchReviewException; 421 422 /** 423 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ?. 424 * 425 * <p> 426 * 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. 427 * </p> 428 * 429 * @param proposalId the proposal ID to search with 430 * @param stage the stage to search with 431 * @param orderByComparator the comparator to order the set by 432 * @return the last matching tasks review 433 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last( 437 long proposalId, int stage, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.tasks.NoSuchReviewException; 441 442 /** 443 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ?. 444 * 445 * <p> 446 * 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. 447 * </p> 448 * 449 * @param reviewId the primary key of the current tasks review 450 * @param proposalId the proposal ID to search with 451 * @param stage the stage to search with 452 * @param orderByComparator the comparator to order the set by 453 * @return the previous, current, and next tasks review 454 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 455 * @throws SystemException if a system exception occurred 456 */ 457 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext( 458 long reviewId, long proposalId, int stage, 459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 460 throws com.liferay.portal.kernel.exception.SystemException, 461 com.liferay.portlet.tasks.NoSuchReviewException; 462 463 /** 464 * Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 465 * 466 * @param proposalId the proposal ID to search with 467 * @param stage the stage to search with 468 * @param completed the completed to search with 469 * @return the matching tasks reviews 470 * @throws SystemException if a system exception occurred 471 */ 472 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 473 long proposalId, int stage, boolean completed) 474 throws com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 478 * 479 * <p> 480 * 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. 481 * </p> 482 * 483 * @param proposalId the proposal ID to search with 484 * @param stage the stage to search with 485 * @param completed the completed to search with 486 * @param start the lower bound of the range of tasks reviews to return 487 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 488 * @return the range of matching tasks reviews 489 * @throws SystemException if a system exception occurred 490 */ 491 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 492 long proposalId, int stage, boolean completed, int start, int end) 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param proposalId the proposal ID to search with 503 * @param stage the stage to search with 504 * @param completed the completed 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 * @param orderByComparator the comparator to order the results by 508 * @return the ordered range of matching tasks reviews 509 * @throws SystemException if a system exception occurred 510 */ 511 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C( 512 long proposalId, int stage, boolean completed, int start, int end, 513 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 514 throws com.liferay.portal.kernel.exception.SystemException; 515 516 /** 517 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 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 completed the completed to search with 526 * @param orderByComparator the comparator to order the set by 527 * @return the first matching tasks review 528 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First( 532 long proposalId, int stage, boolean completed, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException, 535 com.liferay.portlet.tasks.NoSuchReviewException; 536 537 /** 538 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param proposalId the proposal ID to search with 545 * @param stage the stage to search with 546 * @param completed the completed to search with 547 * @param orderByComparator the comparator to order the set by 548 * @return the last matching tasks review 549 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last( 553 long proposalId, int stage, boolean completed, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException, 556 com.liferay.portlet.tasks.NoSuchReviewException; 557 558 /** 559 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ?. 560 * 561 * <p> 562 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 563 * </p> 564 * 565 * @param reviewId the primary key of the current tasks review 566 * @param proposalId the proposal ID to search with 567 * @param stage the stage to search with 568 * @param completed the completed to search with 569 * @param orderByComparator the comparator to order the set by 570 * @return the previous, current, and next tasks review 571 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 572 * @throws SystemException if a system exception occurred 573 */ 574 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext( 575 long reviewId, long proposalId, int stage, boolean completed, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.kernel.exception.SystemException, 578 com.liferay.portlet.tasks.NoSuchReviewException; 579 580 /** 581 * Finds all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 582 * 583 * @param proposalId the proposal ID to search with 584 * @param stage the stage to search with 585 * @param completed the completed to search with 586 * @param rejected the rejected to search with 587 * @return the matching tasks reviews 588 * @throws SystemException if a system exception occurred 589 */ 590 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 591 long proposalId, int stage, boolean completed, boolean rejected) 592 throws com.liferay.portal.kernel.exception.SystemException; 593 594 /** 595 * Finds a range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 596 * 597 * <p> 598 * 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. 599 * </p> 600 * 601 * @param proposalId the proposal ID to search with 602 * @param stage the stage to search with 603 * @param completed the completed to search with 604 * @param rejected the rejected to search with 605 * @param start the lower bound of the range of tasks reviews to return 606 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 607 * @return the range of matching tasks reviews 608 * @throws SystemException if a system exception occurred 609 */ 610 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 611 long proposalId, int stage, boolean completed, boolean rejected, 612 int start, int end) 613 throws com.liferay.portal.kernel.exception.SystemException; 614 615 /** 616 * Finds an ordered range of all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 617 * 618 * <p> 619 * 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. 620 * </p> 621 * 622 * @param proposalId the proposal ID to search with 623 * @param stage the stage to search with 624 * @param completed the completed to search with 625 * @param rejected the rejected to search with 626 * @param start the lower bound of the range of tasks reviews to return 627 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 628 * @param orderByComparator the comparator to order the results by 629 * @return the ordered range of matching tasks reviews 630 * @throws SystemException if a system exception occurred 631 */ 632 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R( 633 long proposalId, int stage, boolean completed, boolean rejected, 634 int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Finds the first tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 640 * 641 * <p> 642 * 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. 643 * </p> 644 * 645 * @param proposalId the proposal ID to search with 646 * @param stage the stage to search with 647 * @param completed the completed to search with 648 * @param rejected the rejected to search with 649 * @param orderByComparator the comparator to order the set by 650 * @return the first matching tasks review 651 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First( 655 long proposalId, int stage, boolean completed, boolean rejected, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException, 658 com.liferay.portlet.tasks.NoSuchReviewException; 659 660 /** 661 * Finds the last tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 662 * 663 * <p> 664 * 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. 665 * </p> 666 * 667 * @param proposalId the proposal ID to search with 668 * @param stage the stage to search with 669 * @param completed the completed to search with 670 * @param rejected the rejected to search with 671 * @param orderByComparator the comparator to order the set by 672 * @return the last matching tasks review 673 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last( 677 long proposalId, int stage, boolean completed, boolean rejected, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException, 680 com.liferay.portlet.tasks.NoSuchReviewException; 681 682 /** 683 * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = ? and stage = ? and completed = ? and rejected = ?. 684 * 685 * <p> 686 * 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. 687 * </p> 688 * 689 * @param reviewId the primary key of the current tasks review 690 * @param proposalId the proposal ID to search with 691 * @param stage the stage to search with 692 * @param completed the completed to search with 693 * @param rejected the rejected to search with 694 * @param orderByComparator the comparator to order the set by 695 * @return the previous, current, and next tasks review 696 * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found 697 * @throws SystemException if a system exception occurred 698 */ 699 public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext( 700 long reviewId, long proposalId, int stage, boolean completed, 701 boolean rejected, 702 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 703 throws com.liferay.portal.kernel.exception.SystemException, 704 com.liferay.portlet.tasks.NoSuchReviewException; 705 706 /** 707 * Finds all the tasks reviews. 708 * 709 * @return the tasks reviews 710 * @throws SystemException if a system exception occurred 711 */ 712 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll() 713 throws com.liferay.portal.kernel.exception.SystemException; 714 715 /** 716 * Finds a range of all the tasks reviews. 717 * 718 * <p> 719 * 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. 720 * </p> 721 * 722 * @param start the lower bound of the range of tasks reviews to return 723 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 724 * @return the range of tasks reviews 725 * @throws SystemException if a system exception occurred 726 */ 727 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll( 728 int start, int end) 729 throws com.liferay.portal.kernel.exception.SystemException; 730 731 /** 732 * Finds an ordered range of all the tasks reviews. 733 * 734 * <p> 735 * 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. 736 * </p> 737 * 738 * @param start the lower bound of the range of tasks reviews to return 739 * @param end the upper bound of the range of tasks reviews to return (not inclusive) 740 * @param orderByComparator the comparator to order the results by 741 * @return the ordered range of tasks reviews 742 * @throws SystemException if a system exception occurred 743 */ 744 public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll( 745 int start, int end, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Removes all the tasks reviews where userId = ? from the database. 751 * 752 * @param userId the user ID to search with 753 * @throws SystemException if a system exception occurred 754 */ 755 public void removeByUserId(long userId) 756 throws com.liferay.portal.kernel.exception.SystemException; 757 758 /** 759 * Removes all the tasks reviews where proposalId = ? from the database. 760 * 761 * @param proposalId the proposal ID to search with 762 * @throws SystemException if a system exception occurred 763 */ 764 public void removeByProposalId(long proposalId) 765 throws com.liferay.portal.kernel.exception.SystemException; 766 767 /** 768 * Removes the tasks review where userId = ? and proposalId = ? from the database. 769 * 770 * @param userId the user ID to search with 771 * @param proposalId the proposal ID to search with 772 * @throws SystemException if a system exception occurred 773 */ 774 public void removeByU_P(long userId, long proposalId) 775 throws com.liferay.portal.kernel.exception.SystemException, 776 com.liferay.portlet.tasks.NoSuchReviewException; 777 778 /** 779 * Removes all the tasks reviews where proposalId = ? and stage = ? from the database. 780 * 781 * @param proposalId the proposal ID to search with 782 * @param stage the stage to search with 783 * @throws SystemException if a system exception occurred 784 */ 785 public void removeByP_S(long proposalId, int stage) 786 throws com.liferay.portal.kernel.exception.SystemException; 787 788 /** 789 * Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? from the database. 790 * 791 * @param proposalId the proposal ID to search with 792 * @param stage the stage to search with 793 * @param completed the completed to search with 794 * @throws SystemException if a system exception occurred 795 */ 796 public void removeByP_S_C(long proposalId, int stage, boolean completed) 797 throws com.liferay.portal.kernel.exception.SystemException; 798 799 /** 800 * Removes all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ? from the database. 801 * 802 * @param proposalId the proposal ID to search with 803 * @param stage the stage to search with 804 * @param completed the completed to search with 805 * @param rejected the rejected to search with 806 * @throws SystemException if a system exception occurred 807 */ 808 public void removeByP_S_C_R(long proposalId, int stage, boolean completed, 809 boolean rejected) 810 throws com.liferay.portal.kernel.exception.SystemException; 811 812 /** 813 * Removes all the tasks reviews from the database. 814 * 815 * @throws SystemException if a system exception occurred 816 */ 817 public void removeAll() 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Counts all the tasks reviews where userId = ?. 822 * 823 * @param userId the user ID to search with 824 * @return the number of matching tasks reviews 825 * @throws SystemException if a system exception occurred 826 */ 827 public int countByUserId(long userId) 828 throws com.liferay.portal.kernel.exception.SystemException; 829 830 /** 831 * Counts all the tasks reviews where proposalId = ?. 832 * 833 * @param proposalId the proposal ID to search with 834 * @return the number of matching tasks reviews 835 * @throws SystemException if a system exception occurred 836 */ 837 public int countByProposalId(long proposalId) 838 throws com.liferay.portal.kernel.exception.SystemException; 839 840 /** 841 * Counts all the tasks reviews where userId = ? and proposalId = ?. 842 * 843 * @param userId the user ID to search with 844 * @param proposalId the proposal ID to search with 845 * @return the number of matching tasks reviews 846 * @throws SystemException if a system exception occurred 847 */ 848 public int countByU_P(long userId, long proposalId) 849 throws com.liferay.portal.kernel.exception.SystemException; 850 851 /** 852 * Counts all the tasks reviews where proposalId = ? and stage = ?. 853 * 854 * @param proposalId the proposal ID to search with 855 * @param stage the stage to search with 856 * @return the number of matching tasks reviews 857 * @throws SystemException if a system exception occurred 858 */ 859 public int countByP_S(long proposalId, int stage) 860 throws com.liferay.portal.kernel.exception.SystemException; 861 862 /** 863 * Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ?. 864 * 865 * @param proposalId the proposal ID to search with 866 * @param stage the stage to search with 867 * @param completed the completed to search with 868 * @return the number of matching tasks reviews 869 * @throws SystemException if a system exception occurred 870 */ 871 public int countByP_S_C(long proposalId, int stage, boolean completed) 872 throws com.liferay.portal.kernel.exception.SystemException; 873 874 /** 875 * Counts all the tasks reviews where proposalId = ? and stage = ? and completed = ? and rejected = ?. 876 * 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 * @return the number of matching tasks reviews 882 * @throws SystemException if a system exception occurred 883 */ 884 public int countByP_S_C_R(long proposalId, int stage, boolean completed, 885 boolean rejected) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Counts all the tasks reviews. 890 * 891 * @return the number of tasks reviews 892 * @throws SystemException if a system exception occurred 893 */ 894 public int countAll() 895 throws com.liferay.portal.kernel.exception.SystemException; 896 897 public TasksReview remove(TasksReview tasksReview) 898 throws SystemException; 899 }