001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.tasks.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.tasks.model.TasksProposal; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the tasks proposal service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see TasksProposalPersistence 036 * @see TasksProposalPersistenceImpl 037 * @generated 038 */ 039 public class TasksProposalUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(TasksProposal tasksProposal) { 051 getPersistence().clearCache(tasksProposal); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<TasksProposal> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<TasksProposal> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<TasksProposal> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static TasksProposal remove(TasksProposal tasksProposal) 094 throws SystemException { 095 return getPersistence().remove(tasksProposal); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static TasksProposal update(TasksProposal tasksProposal, 102 boolean merge) throws SystemException { 103 return getPersistence().update(tasksProposal, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static TasksProposal update(TasksProposal tasksProposal, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(tasksProposal, merge, serviceContext); 112 } 113 114 /** 115 * Caches the tasks proposal in the entity cache if it is enabled. 116 * 117 * @param tasksProposal the tasks proposal to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.tasks.model.TasksProposal tasksProposal) { 121 getPersistence().cacheResult(tasksProposal); 122 } 123 124 /** 125 * Caches the tasks proposals in the entity cache if it is enabled. 126 * 127 * @param tasksProposals the tasks proposals to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals) { 131 getPersistence().cacheResult(tasksProposals); 132 } 133 134 /** 135 * Creates a new tasks proposal with the primary key. 136 * 137 * @param proposalId the primary key for the new tasks proposal 138 * @return the new tasks proposal 139 */ 140 public static com.liferay.portlet.tasks.model.TasksProposal create( 141 long proposalId) { 142 return getPersistence().create(proposalId); 143 } 144 145 /** 146 * Removes the tasks proposal with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param proposalId the primary key of the tasks proposal to remove 149 * @return the tasks proposal that was removed 150 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.tasks.model.TasksProposal remove( 154 long proposalId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.tasks.NoSuchProposalException { 157 return getPersistence().remove(proposalId); 158 } 159 160 public static com.liferay.portlet.tasks.model.TasksProposal updateImpl( 161 com.liferay.portlet.tasks.model.TasksProposal tasksProposal, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(tasksProposal, merge); 165 } 166 167 /** 168 * Finds the tasks proposal with the primary key or throws a {@link com.liferay.portlet.tasks.NoSuchProposalException} if it could not be found. 169 * 170 * @param proposalId the primary key of the tasks proposal to find 171 * @return the tasks proposal 172 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey( 176 long proposalId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.tasks.NoSuchProposalException { 179 return getPersistence().findByPrimaryKey(proposalId); 180 } 181 182 /** 183 * Finds the tasks proposal with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param proposalId the primary key of the tasks proposal to find 186 * @return the tasks proposal, or <code>null</code> if a tasks proposal with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey( 190 long proposalId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(proposalId); 193 } 194 195 /** 196 * Finds all the tasks proposals where groupId = ?. 197 * 198 * @param groupId the group id to search with 199 * @return the matching tasks proposals 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 203 long groupId) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByGroupId(groupId); 206 } 207 208 /** 209 * Finds a range of all the tasks proposals where groupId = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param groupId the group id to search with 216 * @param start the lower bound of the range of tasks proposals to return 217 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 218 * @return the range of matching tasks proposals 219 * @throws SystemException if a system exception occurred 220 */ 221 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 222 long groupId, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return getPersistence().findByGroupId(groupId, start, end); 225 } 226 227 /** 228 * Finds an ordered range of all the tasks proposals where groupId = ?. 229 * 230 * <p> 231 * 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. 232 * </p> 233 * 234 * @param groupId the group id to search with 235 * @param start the lower bound of the range of tasks proposals to return 236 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 237 * @param orderByComparator the comparator to order the results by 238 * @return the ordered range of matching tasks proposals 239 * @throws SystemException if a system exception occurred 240 */ 241 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId( 242 long groupId, int start, int end, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException { 245 return getPersistence() 246 .findByGroupId(groupId, start, end, orderByComparator); 247 } 248 249 /** 250 * Finds the first tasks proposal in the ordered set where groupId = ?. 251 * 252 * <p> 253 * 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. 254 * </p> 255 * 256 * @param groupId the group id to search with 257 * @param orderByComparator the comparator to order the set by 258 * @return the first matching tasks proposal 259 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First( 263 long groupId, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException, 266 com.liferay.portlet.tasks.NoSuchProposalException { 267 return getPersistence().findByGroupId_First(groupId, orderByComparator); 268 } 269 270 /** 271 * Finds the last tasks proposal in the ordered set where groupId = ?. 272 * 273 * <p> 274 * 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. 275 * </p> 276 * 277 * @param groupId the group id to search with 278 * @param orderByComparator the comparator to order the set by 279 * @return the last matching tasks proposal 280 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last( 284 long groupId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.tasks.NoSuchProposalException { 288 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 289 } 290 291 /** 292 * Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param proposalId the primary key of the current tasks proposal 299 * @param groupId the group id to search with 300 * @param orderByComparator the comparator to order the set by 301 * @return the previous, current, and next tasks proposal 302 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext( 306 long proposalId, long groupId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException, 309 com.liferay.portlet.tasks.NoSuchProposalException { 310 return getPersistence() 311 .findByGroupId_PrevAndNext(proposalId, groupId, 312 orderByComparator); 313 } 314 315 /** 316 * Filters by the user's permissions and finds all the tasks proposals where groupId = ?. 317 * 318 * @param groupId the group id to search with 319 * @return the matching tasks proposals that the user has permission to view 320 * @throws SystemException if a system exception occurred 321 */ 322 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 323 long groupId) 324 throws com.liferay.portal.kernel.exception.SystemException { 325 return getPersistence().filterFindByGroupId(groupId); 326 } 327 328 /** 329 * Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ?. 330 * 331 * <p> 332 * 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. 333 * </p> 334 * 335 * @param groupId the group id to search with 336 * @param start the lower bound of the range of tasks proposals to return 337 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 338 * @return the range of matching tasks proposals that the user has permission to view 339 * @throws SystemException if a system exception occurred 340 */ 341 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 342 long groupId, int start, int end) 343 throws com.liferay.portal.kernel.exception.SystemException { 344 return getPersistence().filterFindByGroupId(groupId, start, end); 345 } 346 347 /** 348 * Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ?. 349 * 350 * <p> 351 * 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. 352 * </p> 353 * 354 * @param groupId the group id to search with 355 * @param start the lower bound of the range of tasks proposals to return 356 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 357 * @param orderByComparator the comparator to order the results by 358 * @return the ordered range of matching tasks proposals that the user has permission to view 359 * @throws SystemException if a system exception occurred 360 */ 361 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId( 362 long groupId, int start, int end, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return getPersistence() 366 .filterFindByGroupId(groupId, start, end, orderByComparator); 367 } 368 369 /** 370 * Finds all the tasks proposals where groupId = ? and userId = ?. 371 * 372 * @param groupId the group id to search with 373 * @param userId the user id to search with 374 * @return the matching tasks proposals 375 * @throws SystemException if a system exception occurred 376 */ 377 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 378 long groupId, long userId) 379 throws com.liferay.portal.kernel.exception.SystemException { 380 return getPersistence().findByG_U(groupId, userId); 381 } 382 383 /** 384 * Finds a range of all the tasks proposals where groupId = ? and userId = ?. 385 * 386 * <p> 387 * 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. 388 * </p> 389 * 390 * @param groupId the group id to search with 391 * @param userId the user id to search with 392 * @param start the lower bound of the range of tasks proposals to return 393 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 394 * @return the range of matching tasks proposals 395 * @throws SystemException if a system exception occurred 396 */ 397 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 398 long groupId, long userId, int start, int end) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return getPersistence().findByG_U(groupId, userId, start, end); 401 } 402 403 /** 404 * Finds an ordered range of all the tasks proposals where groupId = ? and userId = ?. 405 * 406 * <p> 407 * 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. 408 * </p> 409 * 410 * @param groupId the group id to search with 411 * @param userId the user id to search with 412 * @param start the lower bound of the range of tasks proposals to return 413 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 414 * @param orderByComparator the comparator to order the results by 415 * @return the ordered range of matching tasks proposals 416 * @throws SystemException if a system exception occurred 417 */ 418 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U( 419 long groupId, long userId, int start, int end, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.kernel.exception.SystemException { 422 return getPersistence() 423 .findByG_U(groupId, userId, start, end, orderByComparator); 424 } 425 426 /** 427 * Finds the first tasks proposal in the ordered set where groupId = ? and userId = ?. 428 * 429 * <p> 430 * 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. 431 * </p> 432 * 433 * @param groupId the group id to search with 434 * @param userId the user id to search with 435 * @param orderByComparator the comparator to order the set by 436 * @return the first matching tasks proposal 437 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First( 441 long groupId, long userId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.kernel.exception.SystemException, 444 com.liferay.portlet.tasks.NoSuchProposalException { 445 return getPersistence() 446 .findByG_U_First(groupId, userId, orderByComparator); 447 } 448 449 /** 450 * Finds the last tasks proposal in the ordered set where groupId = ? and userId = ?. 451 * 452 * <p> 453 * 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. 454 * </p> 455 * 456 * @param groupId the group id to search with 457 * @param userId the user id to search with 458 * @param orderByComparator the comparator to order the set by 459 * @return the last matching tasks proposal 460 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last( 464 long groupId, long userId, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.tasks.NoSuchProposalException { 468 return getPersistence() 469 .findByG_U_Last(groupId, userId, orderByComparator); 470 } 471 472 /** 473 * Finds the tasks proposals before and after the current tasks proposal in the ordered set where groupId = ? and userId = ?. 474 * 475 * <p> 476 * 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. 477 * </p> 478 * 479 * @param proposalId the primary key of the current tasks proposal 480 * @param groupId the group id to search with 481 * @param userId the user id to search with 482 * @param orderByComparator the comparator to order the set by 483 * @return the previous, current, and next tasks proposal 484 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a tasks proposal with the primary key could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext( 488 long proposalId, long groupId, long userId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException, 491 com.liferay.portlet.tasks.NoSuchProposalException { 492 return getPersistence() 493 .findByG_U_PrevAndNext(proposalId, groupId, userId, 494 orderByComparator); 495 } 496 497 /** 498 * Filters by the user's permissions and finds all the tasks proposals where groupId = ? and userId = ?. 499 * 500 * @param groupId the group id to search with 501 * @param userId the user id to search with 502 * @return the matching tasks proposals that the user has permission to view 503 * @throws SystemException if a system exception occurred 504 */ 505 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 506 long groupId, long userId) 507 throws com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence().filterFindByG_U(groupId, userId); 509 } 510 511 /** 512 * Filters by the user's permissions and finds a range of all the tasks proposals where groupId = ? and userId = ?. 513 * 514 * <p> 515 * 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. 516 * </p> 517 * 518 * @param groupId the group id to search with 519 * @param userId the user id to search with 520 * @param start the lower bound of the range of tasks proposals to return 521 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 522 * @return the range of matching tasks proposals that the user has permission to view 523 * @throws SystemException if a system exception occurred 524 */ 525 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 526 long groupId, long userId, int start, int end) 527 throws com.liferay.portal.kernel.exception.SystemException { 528 return getPersistence().filterFindByG_U(groupId, userId, start, end); 529 } 530 531 /** 532 * Filters by the user's permissions and finds an ordered range of all the tasks proposals where groupId = ? and userId = ?. 533 * 534 * <p> 535 * 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. 536 * </p> 537 * 538 * @param groupId the group id to search with 539 * @param userId the user id to search with 540 * @param start the lower bound of the range of tasks proposals to return 541 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 542 * @param orderByComparator the comparator to order the results by 543 * @return the ordered range of matching tasks proposals that the user has permission to view 544 * @throws SystemException if a system exception occurred 545 */ 546 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U( 547 long groupId, long userId, int start, int end, 548 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence() 551 .filterFindByG_U(groupId, userId, start, end, 552 orderByComparator); 553 } 554 555 /** 556 * Finds the tasks proposal where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.tasks.NoSuchProposalException} if it could not be found. 557 * 558 * @param classNameId the class name id to search with 559 * @param classPK the class p k to search with 560 * @return the matching tasks proposal 561 * @throws com.liferay.portlet.tasks.NoSuchProposalException if a matching tasks proposal could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public static com.liferay.portlet.tasks.model.TasksProposal findByC_C( 565 long classNameId, java.lang.String classPK) 566 throws com.liferay.portal.kernel.exception.SystemException, 567 com.liferay.portlet.tasks.NoSuchProposalException { 568 return getPersistence().findByC_C(classNameId, classPK); 569 } 570 571 /** 572 * Finds the tasks proposal where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 573 * 574 * @param classNameId the class name id to search with 575 * @param classPK the class p k to search with 576 * @return the matching tasks proposal, or <code>null</code> if a matching tasks proposal could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C( 580 long classNameId, java.lang.String classPK) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getPersistence().fetchByC_C(classNameId, classPK); 583 } 584 585 /** 586 * Finds the tasks proposal where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 587 * 588 * @param classNameId the class name id to search with 589 * @param classPK the class p k to search with 590 * @return the matching tasks proposal, or <code>null</code> if a matching tasks proposal could not be found 591 * @throws SystemException if a system exception occurred 592 */ 593 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C( 594 long classNameId, java.lang.String classPK, boolean retrieveFromCache) 595 throws com.liferay.portal.kernel.exception.SystemException { 596 return getPersistence() 597 .fetchByC_C(classNameId, classPK, retrieveFromCache); 598 } 599 600 /** 601 * Finds all the tasks proposals. 602 * 603 * @return the tasks proposals 604 * @throws SystemException if a system exception occurred 605 */ 606 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll() 607 throws com.liferay.portal.kernel.exception.SystemException { 608 return getPersistence().findAll(); 609 } 610 611 /** 612 * Finds a range of all the tasks proposals. 613 * 614 * <p> 615 * 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. 616 * </p> 617 * 618 * @param start the lower bound of the range of tasks proposals to return 619 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 620 * @return the range of tasks proposals 621 * @throws SystemException if a system exception occurred 622 */ 623 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll( 624 int start, int end) 625 throws com.liferay.portal.kernel.exception.SystemException { 626 return getPersistence().findAll(start, end); 627 } 628 629 /** 630 * Finds an ordered range of all the tasks proposals. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param start the lower bound of the range of tasks proposals to return 637 * @param end the upper bound of the range of tasks proposals to return (not inclusive) 638 * @param orderByComparator the comparator to order the results by 639 * @return the ordered range of tasks proposals 640 * @throws SystemException if a system exception occurred 641 */ 642 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll( 643 int start, int end, 644 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 645 throws com.liferay.portal.kernel.exception.SystemException { 646 return getPersistence().findAll(start, end, orderByComparator); 647 } 648 649 /** 650 * Removes all the tasks proposals where groupId = ? from the database. 651 * 652 * @param groupId the group id to search with 653 * @throws SystemException if a system exception occurred 654 */ 655 public static void removeByGroupId(long groupId) 656 throws com.liferay.portal.kernel.exception.SystemException { 657 getPersistence().removeByGroupId(groupId); 658 } 659 660 /** 661 * Removes all the tasks proposals where groupId = ? and userId = ? from the database. 662 * 663 * @param groupId the group id to search with 664 * @param userId the user id to search with 665 * @throws SystemException if a system exception occurred 666 */ 667 public static void removeByG_U(long groupId, long userId) 668 throws com.liferay.portal.kernel.exception.SystemException { 669 getPersistence().removeByG_U(groupId, userId); 670 } 671 672 /** 673 * Removes the tasks proposal where classNameId = ? and classPK = ? from the database. 674 * 675 * @param classNameId the class name id to search with 676 * @param classPK the class p k to search with 677 * @throws SystemException if a system exception occurred 678 */ 679 public static void removeByC_C(long classNameId, java.lang.String classPK) 680 throws com.liferay.portal.kernel.exception.SystemException, 681 com.liferay.portlet.tasks.NoSuchProposalException { 682 getPersistence().removeByC_C(classNameId, classPK); 683 } 684 685 /** 686 * Removes all the tasks proposals from the database. 687 * 688 * @throws SystemException if a system exception occurred 689 */ 690 public static void removeAll() 691 throws com.liferay.portal.kernel.exception.SystemException { 692 getPersistence().removeAll(); 693 } 694 695 /** 696 * Counts all the tasks proposals where groupId = ?. 697 * 698 * @param groupId the group id to search with 699 * @return the number of matching tasks proposals 700 * @throws SystemException if a system exception occurred 701 */ 702 public static int countByGroupId(long groupId) 703 throws com.liferay.portal.kernel.exception.SystemException { 704 return getPersistence().countByGroupId(groupId); 705 } 706 707 /** 708 * Filters by the user's permissions and counts all the tasks proposals where groupId = ?. 709 * 710 * @param groupId the group id to search with 711 * @return the number of matching tasks proposals that the user has permission to view 712 * @throws SystemException if a system exception occurred 713 */ 714 public static int filterCountByGroupId(long groupId) 715 throws com.liferay.portal.kernel.exception.SystemException { 716 return getPersistence().filterCountByGroupId(groupId); 717 } 718 719 /** 720 * Counts all the tasks proposals where groupId = ? and userId = ?. 721 * 722 * @param groupId the group id to search with 723 * @param userId the user id to search with 724 * @return the number of matching tasks proposals 725 * @throws SystemException if a system exception occurred 726 */ 727 public static int countByG_U(long groupId, long userId) 728 throws com.liferay.portal.kernel.exception.SystemException { 729 return getPersistence().countByG_U(groupId, userId); 730 } 731 732 /** 733 * Filters by the user's permissions and counts all the tasks proposals where groupId = ? and userId = ?. 734 * 735 * @param groupId the group id to search with 736 * @param userId the user id to search with 737 * @return the number of matching tasks proposals that the user has permission to view 738 * @throws SystemException if a system exception occurred 739 */ 740 public static int filterCountByG_U(long groupId, long userId) 741 throws com.liferay.portal.kernel.exception.SystemException { 742 return getPersistence().filterCountByG_U(groupId, userId); 743 } 744 745 /** 746 * Counts all the tasks proposals where classNameId = ? and classPK = ?. 747 * 748 * @param classNameId the class name id to search with 749 * @param classPK the class p k to search with 750 * @return the number of matching tasks proposals 751 * @throws SystemException if a system exception occurred 752 */ 753 public static int countByC_C(long classNameId, java.lang.String classPK) 754 throws com.liferay.portal.kernel.exception.SystemException { 755 return getPersistence().countByC_C(classNameId, classPK); 756 } 757 758 /** 759 * Counts all the tasks proposals. 760 * 761 * @return the number of tasks proposals 762 * @throws SystemException if a system exception occurred 763 */ 764 public static int countAll() 765 throws com.liferay.portal.kernel.exception.SystemException { 766 return getPersistence().countAll(); 767 } 768 769 public static TasksProposalPersistence getPersistence() { 770 if (_persistence == null) { 771 _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName()); 772 } 773 774 return _persistence; 775 } 776 777 public void setPersistence(TasksProposalPersistence persistence) { 778 _persistence = persistence; 779 } 780 781 private static TasksProposalPersistence _persistence; 782 }