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