001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.tasks.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.tasks.model.TasksProposal; 020 021 /** 022 * The persistence interface for the tasks proposal service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see TasksProposalPersistenceImpl 030 * @see TasksProposalUtil 031 * @generated 032 */ 033 public interface TasksProposalPersistence extends BasePersistence<TasksProposal> { 034 /** 035 * Caches the tasks proposal in the entity cache if it is enabled. 036 * 037 * @param tasksProposal the tasks proposal to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.tasks.model.TasksProposal tasksProposal); 041 042 /** 043 * Caches the tasks proposals in the entity cache if it is enabled. 044 * 045 * @param tasksProposals the tasks proposals to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals); 049 050 /** 051 * Creates a new tasks proposal with the primary key. 052 * 053 * @param proposalId the primary key for the new tasks proposal 054 * @return the new tasks proposal 055 */ 056 public com.liferay.portlet.tasks.model.TasksProposal create(long proposalId); 057 058 /** 059 * Removes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param proposalId the primary key of the tasks proposal to remove 062 * @return the tasks proposal that was removed 063 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portlet.tasks.model.TasksProposal remove(long proposalId) 067 throws com.liferay.portal.kernel.exception.SystemException, 068 com.liferay.portlet.tasks.NoSuchProposalException; 069 070 public com.liferay.portlet.tasks.model.TasksProposal updateImpl( 071 com.liferay.portlet.tasks.model.TasksProposal tasksProposal, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the tasks proposal with the primary key or throws a {@link com.liferay.portlet.tasks.NoSuchProposalException} if it could not be found. 077 * 078 * @param proposalId the primary key of the tasks proposal to find 079 * @return the tasks proposal 080 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey( 084 long proposalId) 085 throws com.liferay.portal.kernel.exception.SystemException, 086 com.liferay.portlet.tasks.NoSuchProposalException; 087 088 /** 089 * Finds the tasks proposal with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param proposalId the primary key of the tasks proposal to find 092 * @return the tasks proposal, or <code>null</code> if a tasks proposal with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey( 096 long proposalId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the tasks proposals where groupId = ?. 101 * 102 * @param groupId the group id to search with 103 * @return the matching tasks proposals 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 107 long groupId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the tasks proposals where groupId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param groupId the group id to search with 118 * @param start the lower bound of the range of tasks proposals to return 119 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 120 * @return the range of matching tasks proposals 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 124 long groupId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the tasks proposals where groupId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param groupId the group id to search with 135 * @param start the lower bound of the range of tasks proposals to return 136 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching tasks proposals 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 142 long groupId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first tasks proposal in the ordered set where groupId = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param groupId the group id to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching tasks proposal 156 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First( 160 long groupId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.tasks.NoSuchProposalException; 164 165 /** 166 * Finds the last tasks proposal in the ordered set where groupId = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param groupId the group id to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching tasks proposal 175 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last( 179 long groupId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.kernel.exception.SystemException, 182 com.liferay.portlet.tasks.NoSuchProposalException; 183 184 /** 185 * Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param proposalId the primary key of the current tasks proposal 192 * @param groupId the group id to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next tasks proposal 195 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext( 199 long proposalId, long groupId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.kernel.exception.SystemException, 202 com.liferay.portlet.tasks.NoSuchProposalException; 203 204 /** 205 * Filters by the user's permissions and finds all the tasks proposals where groupId = ?. 206 * 207 * @param groupId the group id to search with 208 * @return the matching tasks proposals that the user has permission to view 209 * @throws SystemException if a system exception occurred 210 */ 211 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 212 long groupId) 213 throws com.liferay.portal.kernel.exception.SystemException; 214 215 /** 216 * Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param groupId the group id to search with 223 * @param start the lower bound of the range of tasks proposals to return 224 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 225 * @return the range of matching tasks proposals that the user has permission to view 226 * @throws SystemException if a system exception occurred 227 */ 228 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 229 long groupId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ?. 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 groupId the group id to search with 240 * @param start the lower bound of the range of tasks proposals to return 241 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 242 * @param orderByComparator the comparator to order the results by 243 * @return the ordered range of matching tasks proposals that the user has permission to view 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 247 long groupId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Finds all the tasks proposals where groupId = ? and userId = ?. 253 * 254 * @param groupId the group id to search with 255 * @param userId the user id to search with 256 * @return the matching tasks proposals 257 * @throws SystemException if a system exception occurred 258 */ 259 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 260 long groupId, long userId) 261 throws com.liferay.portal.kernel.exception.SystemException; 262 263 /** 264 * Finds a range of all the tasks proposals where groupId = ? and userId = ?. 265 * 266 * <p> 267 * 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. 268 * </p> 269 * 270 * @param groupId the group id to search with 271 * @param userId the user id to search with 272 * @param start the lower bound of the range of tasks proposals to return 273 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 274 * @return the range of matching tasks proposals 275 * @throws SystemException if a system exception occurred 276 */ 277 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 278 long groupId, long userId, int start, int end) 279 throws com.liferay.portal.kernel.exception.SystemException; 280 281 /** 282 * Finds an ordered range of all the tasks proposals where groupId = ? and userId = ?. 283 * 284 * <p> 285 * 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. 286 * </p> 287 * 288 * @param groupId the group id to search with 289 * @param userId the user id to search with 290 * @param start the lower bound of the range of tasks proposals to return 291 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 292 * @param orderByComparator the comparator to order the results by 293 * @return the ordered range of matching tasks proposals 294 * @throws SystemException if a system exception occurred 295 */ 296 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 297 long groupId, long userId, int start, int end, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.kernel.exception.SystemException; 300 301 /** 302 * Finds the first tasks proposal in the ordered set where groupId = ? and userId = ?. 303 * 304 * <p> 305 * 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. 306 * </p> 307 * 308 * @param groupId the group id to search with 309 * @param userId the user id to search with 310 * @param orderByComparator the comparator to order the set by 311 * @return the first matching tasks proposal 312 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 313 * @throws SystemException if a system exception occurred 314 */ 315 public com.liferay.portlet.tasks.model.TasksProposal findByG_U_First( 316 long groupId, long userId, 317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 318 throws com.liferay.portal.kernel.exception.SystemException, 319 com.liferay.portlet.tasks.NoSuchProposalException; 320 321 /** 322 * Finds the last tasks proposal in the ordered set where groupId = ? and userId = ?. 323 * 324 * <p> 325 * 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. 326 * </p> 327 * 328 * @param groupId the group id to search with 329 * @param userId the user id to search with 330 * @param orderByComparator the comparator to order the set by 331 * @return the last matching tasks proposal 332 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last( 336 long groupId, long userId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException, 339 com.liferay.portlet.tasks.NoSuchProposalException; 340 341 /** 342 * Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ? and userId = ?. 343 * 344 * <p> 345 * 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. 346 * </p> 347 * 348 * @param proposalId the primary key of the current tasks proposal 349 * @param groupId the group id to search with 350 * @param userId the user id to search with 351 * @param orderByComparator the comparator to order the set by 352 * @return the previous, current, and next tasks proposal 353 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 354 * @throws SystemException if a system exception occurred 355 */ 356 public com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext( 357 long proposalId, long groupId, long userId, 358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 359 throws com.liferay.portal.kernel.exception.SystemException, 360 com.liferay.portlet.tasks.NoSuchProposalException; 361 362 /** 363 * Filters by the user's permissions and finds all the tasks proposals where groupId = ? and userId = ?. 364 * 365 * @param groupId the group id to search with 366 * @param userId the user id to search with 367 * @return the matching tasks proposals that the user has permission to view 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 371 long groupId, long userId) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ? and userId = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param groupId the group id to search with 382 * @param userId the user id to search with 383 * @param start the lower bound of the range of tasks proposals to return 384 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 385 * @return the range of matching tasks proposals that the user has permission to view 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 389 long groupId, long userId, int start, int end) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ? and userId = ?. 394 * 395 * <p> 396 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 397 * </p> 398 * 399 * @param groupId the group id to search with 400 * @param userId the user id to search with 401 * @param start the lower bound of the range of tasks proposals to return 402 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 403 * @param orderByComparator the comparator to order the results by 404 * @return the ordered range of matching tasks proposals that the user has permission to view 405 * @throws SystemException if a system exception occurred 406 */ 407 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 408 long groupId, long userId, int start, int end, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Finds the tasks proposal where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.tasks.NoSuchProposalException} if it could not be found. 414 * 415 * @param classNameId the class name id to search with 416 * @param classPK the class p k to search with 417 * @return the matching tasks proposal 418 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public com.liferay.portlet.tasks.model.TasksProposal findByC_C( 422 long classNameId, java.lang.String classPK) 423 throws com.liferay.portal.kernel.exception.SystemException, 424 com.liferay.portlet.tasks.NoSuchProposalException; 425 426 /** 427 * Finds the tasks proposal where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 428 * 429 * @param classNameId the class name id to search with 430 * @param classPK the class p k to search with 431 * @return the matching tasks proposal, or <code>null</code> if a matching tasks proposal could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C( 435 long classNameId, java.lang.String classPK) 436 throws com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Finds the tasks proposal where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 440 * 441 * @param classNameId the class name id to search with 442 * @param classPK the class p k to search with 443 * @return the matching tasks proposal, or <code>null</code> if a matching tasks proposal could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C( 447 long classNameId, java.lang.String classPK, boolean retrieveFromCache) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Finds all the tasks proposals. 452 * 453 * @return the tasks proposals 454 * @throws SystemException if a system exception occurred 455 */ 456 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll() 457 throws com.liferay.portal.kernel.exception.SystemException; 458 459 /** 460 * Finds a range of all the tasks proposals. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param start the lower bound of the range of tasks proposals to return 467 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 468 * @return the range of tasks proposals 469 * @throws SystemException if a system exception occurred 470 */ 471 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll( 472 int start, int end) 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Finds an ordered range of all the tasks proposals. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param start the lower bound of the range of tasks proposals to return 483 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 484 * @param orderByComparator the comparator to order the results by 485 * @return the ordered range of tasks proposals 486 * @throws SystemException if a system exception occurred 487 */ 488 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll( 489 int start, int end, 490 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 491 throws com.liferay.portal.kernel.exception.SystemException; 492 493 /** 494 * Removes all the tasks proposals where groupId = ? from the database. 495 * 496 * @param groupId the group id to search with 497 * @throws SystemException if a system exception occurred 498 */ 499 public void removeByGroupId(long groupId) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Removes all the tasks proposals where groupId = ? and userId = ? from the database. 504 * 505 * @param groupId the group id to search with 506 * @param userId the user id to search with 507 * @throws SystemException if a system exception occurred 508 */ 509 public void removeByG_U(long groupId, long userId) 510 throws com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Removes the tasks proposal where classNameId = ? and classPK = ? from the database. 514 * 515 * @param classNameId the class name id to search with 516 * @param classPK the class p k to search with 517 * @throws SystemException if a system exception occurred 518 */ 519 public void removeByC_C(long classNameId, java.lang.String classPK) 520 throws com.liferay.portal.kernel.exception.SystemException, 521 com.liferay.portlet.tasks.NoSuchProposalException; 522 523 /** 524 * Removes all the tasks proposals from the database. 525 * 526 * @throws SystemException if a system exception occurred 527 */ 528 public void removeAll() 529 throws com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Counts all the tasks proposals where groupId = ?. 533 * 534 * @param groupId the group id to search with 535 * @return the number of matching tasks proposals 536 * @throws SystemException if a system exception occurred 537 */ 538 public int countByGroupId(long groupId) 539 throws com.liferay.portal.kernel.exception.SystemException; 540 541 /** 542 * Filters by the user's permissions and counts all the tasks proposals where groupId = ?. 543 * 544 * @param groupId the group id to search with 545 * @return the number of matching tasks proposals that the user has permission to view 546 * @throws SystemException if a system exception occurred 547 */ 548 public int filterCountByGroupId(long groupId) 549 throws com.liferay.portal.kernel.exception.SystemException; 550 551 /** 552 * Counts all the tasks proposals where groupId = ? and userId = ?. 553 * 554 * @param groupId the group id to search with 555 * @param userId the user id to search with 556 * @return the number of matching tasks proposals 557 * @throws SystemException if a system exception occurred 558 */ 559 public int countByG_U(long groupId, long userId) 560 throws com.liferay.portal.kernel.exception.SystemException; 561 562 /** 563 * Filters by the user's permissions and counts all the tasks proposals where groupId = ? and userId = ?. 564 * 565 * @param groupId the group id to search with 566 * @param userId the user id to search with 567 * @return the number of matching tasks proposals that the user has permission to view 568 * @throws SystemException if a system exception occurred 569 */ 570 public int filterCountByG_U(long groupId, long userId) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Counts all the tasks proposals where classNameId = ? and classPK = ?. 575 * 576 * @param classNameId the class name id to search with 577 * @param classPK the class p k to search with 578 * @return the number of matching tasks proposals 579 * @throws SystemException if a system exception occurred 580 */ 581 public int countByC_C(long classNameId, java.lang.String classPK) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Counts all the tasks proposals. 586 * 587 * @return the number of tasks proposals 588 * @throws SystemException if a system exception occurred 589 */ 590 public int countAll() 591 throws com.liferay.portal.kernel.exception.SystemException; 592 }