001 /** 002 * Copyright (c) 2000-2013 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.portal.service.persistence; 016 017 import com.liferay.portal.model.BackgroundTask; 018 019 /** 020 * The persistence interface for the background task service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see BackgroundTaskPersistenceImpl 028 * @see BackgroundTaskUtil 029 * @generated 030 */ 031 public interface BackgroundTaskPersistence extends BasePersistence<BackgroundTask> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link BackgroundTaskUtil} to access the background task persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the background tasks where groupId = ?. 040 * 041 * @param groupId the group ID 042 * @return the matching background tasks 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.BackgroundTask> findByGroupId( 046 long groupId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the background tasks where groupId = ?. 051 * 052 * <p> 053 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param groupId the group ID 057 * @param start the lower bound of the range of background tasks 058 * @param end the upper bound of the range of background tasks (not inclusive) 059 * @return the range of matching background tasks 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.BackgroundTask> findByGroupId( 063 long groupId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the background tasks where groupId = ?. 068 * 069 * <p> 070 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param groupId the group ID 074 * @param start the lower bound of the range of background tasks 075 * @param end the upper bound of the range of background tasks (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching background tasks 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.BackgroundTask> findByGroupId( 081 long groupId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first background task in the ordered set where groupId = ?. 087 * 088 * @param groupId the group ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching background task 091 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.BackgroundTask findByGroupId_First( 095 long groupId, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchBackgroundTaskException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first background task in the ordered set where groupId = ?. 102 * 103 * @param groupId the group ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.BackgroundTask fetchByGroupId_First( 109 long groupId, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last background task in the ordered set where groupId = ?. 115 * 116 * @param groupId the group ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching background task 119 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.BackgroundTask findByGroupId_Last( 123 long groupId, 124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 125 throws com.liferay.portal.NoSuchBackgroundTaskException, 126 com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Returns the last background task in the ordered set where groupId = ?. 130 * 131 * @param groupId the group ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portal.model.BackgroundTask fetchByGroupId_Last( 137 long groupId, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException; 140 141 /** 142 * Returns the background tasks before and after the current background task in the ordered set where groupId = ?. 143 * 144 * @param backgroundTaskId the primary key of the current background task 145 * @param groupId the group ID 146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 147 * @return the previous, current, and next background task 148 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public com.liferay.portal.model.BackgroundTask[] findByGroupId_PrevAndNext( 152 long backgroundTaskId, long groupId, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.NoSuchBackgroundTaskException, 155 com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Removes all the background tasks where groupId = ? from the database. 159 * 160 * @param groupId the group ID 161 * @throws SystemException if a system exception occurred 162 */ 163 public void removeByGroupId(long groupId) 164 throws com.liferay.portal.kernel.exception.SystemException; 165 166 /** 167 * Returns the number of background tasks where groupId = ?. 168 * 169 * @param groupId the group ID 170 * @return the number of matching background tasks 171 * @throws SystemException if a system exception occurred 172 */ 173 public int countByGroupId(long groupId) 174 throws com.liferay.portal.kernel.exception.SystemException; 175 176 /** 177 * Returns all the background tasks where companyId = ?. 178 * 179 * @param companyId the company ID 180 * @return the matching background tasks 181 * @throws SystemException if a system exception occurred 182 */ 183 public java.util.List<com.liferay.portal.model.BackgroundTask> findByCompanyId( 184 long companyId) 185 throws com.liferay.portal.kernel.exception.SystemException; 186 187 /** 188 * Returns a range of all the background tasks where companyId = ?. 189 * 190 * <p> 191 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 192 * </p> 193 * 194 * @param companyId the company ID 195 * @param start the lower bound of the range of background tasks 196 * @param end the upper bound of the range of background tasks (not inclusive) 197 * @return the range of matching background tasks 198 * @throws SystemException if a system exception occurred 199 */ 200 public java.util.List<com.liferay.portal.model.BackgroundTask> findByCompanyId( 201 long companyId, int start, int end) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns an ordered range of all the background tasks where companyId = ?. 206 * 207 * <p> 208 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 209 * </p> 210 * 211 * @param companyId the company ID 212 * @param start the lower bound of the range of background tasks 213 * @param end the upper bound of the range of background tasks (not inclusive) 214 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 215 * @return the ordered range of matching background tasks 216 * @throws SystemException if a system exception occurred 217 */ 218 public java.util.List<com.liferay.portal.model.BackgroundTask> findByCompanyId( 219 long companyId, int start, int end, 220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 221 throws com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns the first background task in the ordered set where companyId = ?. 225 * 226 * @param companyId the company ID 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the first matching background task 229 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public com.liferay.portal.model.BackgroundTask findByCompanyId_First( 233 long companyId, 234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 235 throws com.liferay.portal.NoSuchBackgroundTaskException, 236 com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Returns the first background task in the ordered set where companyId = ?. 240 * 241 * @param companyId the company ID 242 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 243 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 244 * @throws SystemException if a system exception occurred 245 */ 246 public com.liferay.portal.model.BackgroundTask fetchByCompanyId_First( 247 long companyId, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns the last background task in the ordered set where companyId = ?. 253 * 254 * @param companyId the company ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the last matching background task 257 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portal.model.BackgroundTask findByCompanyId_Last( 261 long companyId, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.NoSuchBackgroundTaskException, 264 com.liferay.portal.kernel.exception.SystemException; 265 266 /** 267 * Returns the last background task in the ordered set where companyId = ?. 268 * 269 * @param companyId the company ID 270 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 271 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 272 * @throws SystemException if a system exception occurred 273 */ 274 public com.liferay.portal.model.BackgroundTask fetchByCompanyId_Last( 275 long companyId, 276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 277 throws com.liferay.portal.kernel.exception.SystemException; 278 279 /** 280 * Returns the background tasks before and after the current background task in the ordered set where companyId = ?. 281 * 282 * @param backgroundTaskId the primary key of the current background task 283 * @param companyId the company ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the previous, current, and next background task 286 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public com.liferay.portal.model.BackgroundTask[] findByCompanyId_PrevAndNext( 290 long backgroundTaskId, long companyId, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.NoSuchBackgroundTaskException, 293 com.liferay.portal.kernel.exception.SystemException; 294 295 /** 296 * Removes all the background tasks where companyId = ? from the database. 297 * 298 * @param companyId the company ID 299 * @throws SystemException if a system exception occurred 300 */ 301 public void removeByCompanyId(long companyId) 302 throws com.liferay.portal.kernel.exception.SystemException; 303 304 /** 305 * Returns the number of background tasks where companyId = ?. 306 * 307 * @param companyId the company ID 308 * @return the number of matching background tasks 309 * @throws SystemException if a system exception occurred 310 */ 311 public int countByCompanyId(long companyId) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns all the background tasks where status = ?. 316 * 317 * @param status the status 318 * @return the matching background tasks 319 * @throws SystemException if a system exception occurred 320 */ 321 public java.util.List<com.liferay.portal.model.BackgroundTask> findByStatus( 322 int status) throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns a range of all the background tasks where status = ?. 326 * 327 * <p> 328 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 329 * </p> 330 * 331 * @param status the status 332 * @param start the lower bound of the range of background tasks 333 * @param end the upper bound of the range of background tasks (not inclusive) 334 * @return the range of matching background tasks 335 * @throws SystemException if a system exception occurred 336 */ 337 public java.util.List<com.liferay.portal.model.BackgroundTask> findByStatus( 338 int status, int start, int end) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns an ordered range of all the background tasks where status = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 346 * </p> 347 * 348 * @param status the status 349 * @param start the lower bound of the range of background tasks 350 * @param end the upper bound of the range of background tasks (not inclusive) 351 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 352 * @return the ordered range of matching background tasks 353 * @throws SystemException if a system exception occurred 354 */ 355 public java.util.List<com.liferay.portal.model.BackgroundTask> findByStatus( 356 int status, int start, int end, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns the first background task in the ordered set where status = ?. 362 * 363 * @param status the status 364 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 365 * @return the first matching background task 366 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public com.liferay.portal.model.BackgroundTask findByStatus_First( 370 int status, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.NoSuchBackgroundTaskException, 373 com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Returns the first background task in the ordered set where status = ?. 377 * 378 * @param status the status 379 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 380 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 381 * @throws SystemException if a system exception occurred 382 */ 383 public com.liferay.portal.model.BackgroundTask fetchByStatus_First( 384 int status, 385 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 386 throws com.liferay.portal.kernel.exception.SystemException; 387 388 /** 389 * Returns the last background task in the ordered set where status = ?. 390 * 391 * @param status the status 392 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 393 * @return the last matching background task 394 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public com.liferay.portal.model.BackgroundTask findByStatus_Last( 398 int status, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.NoSuchBackgroundTaskException, 401 com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns the last background task in the ordered set where status = ?. 405 * 406 * @param status the status 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public com.liferay.portal.model.BackgroundTask fetchByStatus_Last( 412 int status, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns the background tasks before and after the current background task in the ordered set where status = ?. 418 * 419 * @param backgroundTaskId the primary key of the current background task 420 * @param status the status 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the previous, current, and next background task 423 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public com.liferay.portal.model.BackgroundTask[] findByStatus_PrevAndNext( 427 long backgroundTaskId, int status, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.NoSuchBackgroundTaskException, 430 com.liferay.portal.kernel.exception.SystemException; 431 432 /** 433 * Removes all the background tasks where status = ? from the database. 434 * 435 * @param status the status 436 * @throws SystemException if a system exception occurred 437 */ 438 public void removeByStatus(int status) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns the number of background tasks where status = ?. 443 * 444 * @param status the status 445 * @return the number of matching background tasks 446 * @throws SystemException if a system exception occurred 447 */ 448 public int countByStatus(int status) 449 throws com.liferay.portal.kernel.exception.SystemException; 450 451 /** 452 * Returns all the background tasks where groupId = ? and taskExecutorClassName = ?. 453 * 454 * @param groupId the group ID 455 * @param taskExecutorClassName the task executor class name 456 * @return the matching background tasks 457 * @throws SystemException if a system exception occurred 458 */ 459 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T( 460 long groupId, java.lang.String taskExecutorClassName) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ?. 465 * 466 * <p> 467 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 468 * </p> 469 * 470 * @param groupId the group ID 471 * @param taskExecutorClassName the task executor class name 472 * @param start the lower bound of the range of background tasks 473 * @param end the upper bound of the range of background tasks (not inclusive) 474 * @return the range of matching background tasks 475 * @throws SystemException if a system exception occurred 476 */ 477 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T( 478 long groupId, java.lang.String taskExecutorClassName, int start, int end) 479 throws com.liferay.portal.kernel.exception.SystemException; 480 481 /** 482 * Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ?. 483 * 484 * <p> 485 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 486 * </p> 487 * 488 * @param groupId the group ID 489 * @param taskExecutorClassName the task executor class name 490 * @param start the lower bound of the range of background tasks 491 * @param end the upper bound of the range of background tasks (not inclusive) 492 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 493 * @return the ordered range of matching background tasks 494 * @throws SystemException if a system exception occurred 495 */ 496 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T( 497 long groupId, java.lang.String taskExecutorClassName, int start, 498 int end, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?. 504 * 505 * @param groupId the group ID 506 * @param taskExecutorClassName the task executor class name 507 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 508 * @return the first matching background task 509 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portal.model.BackgroundTask findByG_T_First( 513 long groupId, java.lang.String taskExecutorClassName, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.NoSuchBackgroundTaskException, 516 com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?. 520 * 521 * @param groupId the group ID 522 * @param taskExecutorClassName the task executor class name 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 525 * @throws SystemException if a system exception occurred 526 */ 527 public com.liferay.portal.model.BackgroundTask fetchByG_T_First( 528 long groupId, java.lang.String taskExecutorClassName, 529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 530 throws com.liferay.portal.kernel.exception.SystemException; 531 532 /** 533 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?. 534 * 535 * @param groupId the group ID 536 * @param taskExecutorClassName the task executor class name 537 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 538 * @return the last matching background task 539 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 540 * @throws SystemException if a system exception occurred 541 */ 542 public com.liferay.portal.model.BackgroundTask findByG_T_Last( 543 long groupId, java.lang.String taskExecutorClassName, 544 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 545 throws com.liferay.portal.NoSuchBackgroundTaskException, 546 com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?. 550 * 551 * @param groupId the group ID 552 * @param taskExecutorClassName the task executor class name 553 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 554 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 555 * @throws SystemException if a system exception occurred 556 */ 557 public com.liferay.portal.model.BackgroundTask fetchByG_T_Last( 558 long groupId, java.lang.String taskExecutorClassName, 559 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 560 throws com.liferay.portal.kernel.exception.SystemException; 561 562 /** 563 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ?. 564 * 565 * @param backgroundTaskId the primary key of the current background task 566 * @param groupId the group ID 567 * @param taskExecutorClassName the task executor class name 568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 569 * @return the previous, current, and next background task 570 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 571 * @throws SystemException if a system exception occurred 572 */ 573 public com.liferay.portal.model.BackgroundTask[] findByG_T_PrevAndNext( 574 long backgroundTaskId, long groupId, 575 java.lang.String taskExecutorClassName, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.NoSuchBackgroundTaskException, 578 com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Removes all the background tasks where groupId = ? and taskExecutorClassName = ? from the database. 582 * 583 * @param groupId the group ID 584 * @param taskExecutorClassName the task executor class name 585 * @throws SystemException if a system exception occurred 586 */ 587 public void removeByG_T(long groupId, java.lang.String taskExecutorClassName) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Returns the number of background tasks where groupId = ? and taskExecutorClassName = ?. 592 * 593 * @param groupId the group ID 594 * @param taskExecutorClassName the task executor class name 595 * @return the number of matching background tasks 596 * @throws SystemException if a system exception occurred 597 */ 598 public int countByG_T(long groupId, java.lang.String taskExecutorClassName) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns all the background tasks where groupId = ? and status = ?. 603 * 604 * @param groupId the group ID 605 * @param status the status 606 * @return the matching background tasks 607 * @throws SystemException if a system exception occurred 608 */ 609 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_S( 610 long groupId, int status) 611 throws com.liferay.portal.kernel.exception.SystemException; 612 613 /** 614 * Returns a range of all the background tasks where groupId = ? and status = ?. 615 * 616 * <p> 617 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 618 * </p> 619 * 620 * @param groupId the group ID 621 * @param status the status 622 * @param start the lower bound of the range of background tasks 623 * @param end the upper bound of the range of background tasks (not inclusive) 624 * @return the range of matching background tasks 625 * @throws SystemException if a system exception occurred 626 */ 627 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_S( 628 long groupId, int status, int start, int end) 629 throws com.liferay.portal.kernel.exception.SystemException; 630 631 /** 632 * Returns an ordered range of all the background tasks where groupId = ? and status = ?. 633 * 634 * <p> 635 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 636 * </p> 637 * 638 * @param groupId the group ID 639 * @param status the status 640 * @param start the lower bound of the range of background tasks 641 * @param end the upper bound of the range of background tasks (not inclusive) 642 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 643 * @return the ordered range of matching background tasks 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_S( 647 long groupId, int status, int start, int end, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException; 650 651 /** 652 * Returns the first background task in the ordered set where groupId = ? and status = ?. 653 * 654 * @param groupId the group ID 655 * @param status the status 656 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 657 * @return the first matching background task 658 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 659 * @throws SystemException if a system exception occurred 660 */ 661 public com.liferay.portal.model.BackgroundTask findByG_S_First( 662 long groupId, int status, 663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 664 throws com.liferay.portal.NoSuchBackgroundTaskException, 665 com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the first background task in the ordered set where groupId = ? and status = ?. 669 * 670 * @param groupId the group ID 671 * @param status the status 672 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 673 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portal.model.BackgroundTask fetchByG_S_First( 677 long groupId, int status, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException; 680 681 /** 682 * Returns the last background task in the ordered set where groupId = ? and status = ?. 683 * 684 * @param groupId the group ID 685 * @param status the status 686 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 687 * @return the last matching background task 688 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 689 * @throws SystemException if a system exception occurred 690 */ 691 public com.liferay.portal.model.BackgroundTask findByG_S_Last( 692 long groupId, int status, 693 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 694 throws com.liferay.portal.NoSuchBackgroundTaskException, 695 com.liferay.portal.kernel.exception.SystemException; 696 697 /** 698 * Returns the last background task in the ordered set where groupId = ? and status = ?. 699 * 700 * @param groupId the group ID 701 * @param status the status 702 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 703 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 704 * @throws SystemException if a system exception occurred 705 */ 706 public com.liferay.portal.model.BackgroundTask fetchByG_S_Last( 707 long groupId, int status, 708 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 709 throws com.liferay.portal.kernel.exception.SystemException; 710 711 /** 712 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and status = ?. 713 * 714 * @param backgroundTaskId the primary key of the current background task 715 * @param groupId the group ID 716 * @param status the status 717 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 718 * @return the previous, current, and next background task 719 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 720 * @throws SystemException if a system exception occurred 721 */ 722 public com.liferay.portal.model.BackgroundTask[] findByG_S_PrevAndNext( 723 long backgroundTaskId, long groupId, int status, 724 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 725 throws com.liferay.portal.NoSuchBackgroundTaskException, 726 com.liferay.portal.kernel.exception.SystemException; 727 728 /** 729 * Removes all the background tasks where groupId = ? and status = ? from the database. 730 * 731 * @param groupId the group ID 732 * @param status the status 733 * @throws SystemException if a system exception occurred 734 */ 735 public void removeByG_S(long groupId, int status) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns the number of background tasks where groupId = ? and status = ?. 740 * 741 * @param groupId the group ID 742 * @param status the status 743 * @return the number of matching background tasks 744 * @throws SystemException if a system exception occurred 745 */ 746 public int countByG_S(long groupId, int status) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns all the background tasks where taskExecutorClassName = ? and status = ?. 751 * 752 * @param taskExecutorClassName the task executor class name 753 * @param status the status 754 * @return the matching background tasks 755 * @throws SystemException if a system exception occurred 756 */ 757 public java.util.List<com.liferay.portal.model.BackgroundTask> findByT_S( 758 java.lang.String taskExecutorClassName, int status) 759 throws com.liferay.portal.kernel.exception.SystemException; 760 761 /** 762 * Returns a range of all the background tasks where taskExecutorClassName = ? and status = ?. 763 * 764 * <p> 765 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 766 * </p> 767 * 768 * @param taskExecutorClassName the task executor class name 769 * @param status the status 770 * @param start the lower bound of the range of background tasks 771 * @param end the upper bound of the range of background tasks (not inclusive) 772 * @return the range of matching background tasks 773 * @throws SystemException if a system exception occurred 774 */ 775 public java.util.List<com.liferay.portal.model.BackgroundTask> findByT_S( 776 java.lang.String taskExecutorClassName, int status, int start, int end) 777 throws com.liferay.portal.kernel.exception.SystemException; 778 779 /** 780 * Returns an ordered range of all the background tasks where taskExecutorClassName = ? and status = ?. 781 * 782 * <p> 783 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 784 * </p> 785 * 786 * @param taskExecutorClassName the task executor class name 787 * @param status the status 788 * @param start the lower bound of the range of background tasks 789 * @param end the upper bound of the range of background tasks (not inclusive) 790 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 791 * @return the ordered range of matching background tasks 792 * @throws SystemException if a system exception occurred 793 */ 794 public java.util.List<com.liferay.portal.model.BackgroundTask> findByT_S( 795 java.lang.String taskExecutorClassName, int status, int start, int end, 796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 797 throws com.liferay.portal.kernel.exception.SystemException; 798 799 /** 800 * Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?. 801 * 802 * @param taskExecutorClassName the task executor class name 803 * @param status the status 804 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 805 * @return the first matching background task 806 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 807 * @throws SystemException if a system exception occurred 808 */ 809 public com.liferay.portal.model.BackgroundTask findByT_S_First( 810 java.lang.String taskExecutorClassName, int status, 811 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 812 throws com.liferay.portal.NoSuchBackgroundTaskException, 813 com.liferay.portal.kernel.exception.SystemException; 814 815 /** 816 * Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?. 817 * 818 * @param taskExecutorClassName the task executor class name 819 * @param status the status 820 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 821 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 822 * @throws SystemException if a system exception occurred 823 */ 824 public com.liferay.portal.model.BackgroundTask fetchByT_S_First( 825 java.lang.String taskExecutorClassName, int status, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?. 831 * 832 * @param taskExecutorClassName the task executor class name 833 * @param status the status 834 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 835 * @return the last matching background task 836 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 837 * @throws SystemException if a system exception occurred 838 */ 839 public com.liferay.portal.model.BackgroundTask findByT_S_Last( 840 java.lang.String taskExecutorClassName, int status, 841 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 842 throws com.liferay.portal.NoSuchBackgroundTaskException, 843 com.liferay.portal.kernel.exception.SystemException; 844 845 /** 846 * Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?. 847 * 848 * @param taskExecutorClassName the task executor class name 849 * @param status the status 850 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 851 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 852 * @throws SystemException if a system exception occurred 853 */ 854 public com.liferay.portal.model.BackgroundTask fetchByT_S_Last( 855 java.lang.String taskExecutorClassName, int status, 856 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 857 throws com.liferay.portal.kernel.exception.SystemException; 858 859 /** 860 * Returns the background tasks before and after the current background task in the ordered set where taskExecutorClassName = ? and status = ?. 861 * 862 * @param backgroundTaskId the primary key of the current background task 863 * @param taskExecutorClassName the task executor class name 864 * @param status the status 865 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 866 * @return the previous, current, and next background task 867 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 868 * @throws SystemException if a system exception occurred 869 */ 870 public com.liferay.portal.model.BackgroundTask[] findByT_S_PrevAndNext( 871 long backgroundTaskId, java.lang.String taskExecutorClassName, 872 int status, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.NoSuchBackgroundTaskException, 875 com.liferay.portal.kernel.exception.SystemException; 876 877 /** 878 * Removes all the background tasks where taskExecutorClassName = ? and status = ? from the database. 879 * 880 * @param taskExecutorClassName the task executor class name 881 * @param status the status 882 * @throws SystemException if a system exception occurred 883 */ 884 public void removeByT_S(java.lang.String taskExecutorClassName, int status) 885 throws com.liferay.portal.kernel.exception.SystemException; 886 887 /** 888 * Returns the number of background tasks where taskExecutorClassName = ? and status = ?. 889 * 890 * @param taskExecutorClassName the task executor class name 891 * @param status the status 892 * @return the number of matching background tasks 893 * @throws SystemException if a system exception occurred 894 */ 895 public int countByT_S(java.lang.String taskExecutorClassName, int status) 896 throws com.liferay.portal.kernel.exception.SystemException; 897 898 /** 899 * Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?. 900 * 901 * @param groupId the group ID 902 * @param name the name 903 * @param taskExecutorClassName the task executor class name 904 * @return the matching background tasks 905 * @throws SystemException if a system exception occurred 906 */ 907 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T( 908 long groupId, java.lang.String name, 909 java.lang.String taskExecutorClassName) 910 throws com.liferay.portal.kernel.exception.SystemException; 911 912 /** 913 * Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?. 914 * 915 * <p> 916 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 917 * </p> 918 * 919 * @param groupId the group ID 920 * @param name the name 921 * @param taskExecutorClassName the task executor class name 922 * @param start the lower bound of the range of background tasks 923 * @param end the upper bound of the range of background tasks (not inclusive) 924 * @return the range of matching background tasks 925 * @throws SystemException if a system exception occurred 926 */ 927 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T( 928 long groupId, java.lang.String name, 929 java.lang.String taskExecutorClassName, int start, int end) 930 throws com.liferay.portal.kernel.exception.SystemException; 931 932 /** 933 * Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?. 934 * 935 * <p> 936 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 937 * </p> 938 * 939 * @param groupId the group ID 940 * @param name the name 941 * @param taskExecutorClassName the task executor class name 942 * @param start the lower bound of the range of background tasks 943 * @param end the upper bound of the range of background tasks (not inclusive) 944 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 945 * @return the ordered range of matching background tasks 946 * @throws SystemException if a system exception occurred 947 */ 948 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T( 949 long groupId, java.lang.String name, 950 java.lang.String taskExecutorClassName, int start, int end, 951 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 952 throws com.liferay.portal.kernel.exception.SystemException; 953 954 /** 955 * Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?. 956 * 957 * @param groupId the group ID 958 * @param name the name 959 * @param taskExecutorClassName the task executor class name 960 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 961 * @return the first matching background task 962 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 963 * @throws SystemException if a system exception occurred 964 */ 965 public com.liferay.portal.model.BackgroundTask findByG_N_T_First( 966 long groupId, java.lang.String name, 967 java.lang.String taskExecutorClassName, 968 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 969 throws com.liferay.portal.NoSuchBackgroundTaskException, 970 com.liferay.portal.kernel.exception.SystemException; 971 972 /** 973 * Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?. 974 * 975 * @param groupId the group ID 976 * @param name the name 977 * @param taskExecutorClassName the task executor class name 978 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 979 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 980 * @throws SystemException if a system exception occurred 981 */ 982 public com.liferay.portal.model.BackgroundTask fetchByG_N_T_First( 983 long groupId, java.lang.String name, 984 java.lang.String taskExecutorClassName, 985 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 986 throws com.liferay.portal.kernel.exception.SystemException; 987 988 /** 989 * Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?. 990 * 991 * @param groupId the group ID 992 * @param name the name 993 * @param taskExecutorClassName the task executor class name 994 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 995 * @return the last matching background task 996 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 997 * @throws SystemException if a system exception occurred 998 */ 999 public com.liferay.portal.model.BackgroundTask findByG_N_T_Last( 1000 long groupId, java.lang.String name, 1001 java.lang.String taskExecutorClassName, 1002 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1003 throws com.liferay.portal.NoSuchBackgroundTaskException, 1004 com.liferay.portal.kernel.exception.SystemException; 1005 1006 /** 1007 * Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?. 1008 * 1009 * @param groupId the group ID 1010 * @param name the name 1011 * @param taskExecutorClassName the task executor class name 1012 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1013 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 1014 * @throws SystemException if a system exception occurred 1015 */ 1016 public com.liferay.portal.model.BackgroundTask fetchByG_N_T_Last( 1017 long groupId, java.lang.String name, 1018 java.lang.String taskExecutorClassName, 1019 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1020 throws com.liferay.portal.kernel.exception.SystemException; 1021 1022 /** 1023 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?. 1024 * 1025 * @param backgroundTaskId the primary key of the current background task 1026 * @param groupId the group ID 1027 * @param name the name 1028 * @param taskExecutorClassName the task executor class name 1029 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1030 * @return the previous, current, and next background task 1031 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public com.liferay.portal.model.BackgroundTask[] findByG_N_T_PrevAndNext( 1035 long backgroundTaskId, long groupId, java.lang.String name, 1036 java.lang.String taskExecutorClassName, 1037 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1038 throws com.liferay.portal.NoSuchBackgroundTaskException, 1039 com.liferay.portal.kernel.exception.SystemException; 1040 1041 /** 1042 * Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? from the database. 1043 * 1044 * @param groupId the group ID 1045 * @param name the name 1046 * @param taskExecutorClassName the task executor class name 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public void removeByG_N_T(long groupId, java.lang.String name, 1050 java.lang.String taskExecutorClassName) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ?. 1055 * 1056 * @param groupId the group ID 1057 * @param name the name 1058 * @param taskExecutorClassName the task executor class name 1059 * @return the number of matching background tasks 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public int countByG_N_T(long groupId, java.lang.String name, 1063 java.lang.String taskExecutorClassName) 1064 throws com.liferay.portal.kernel.exception.SystemException; 1065 1066 /** 1067 * Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?. 1068 * 1069 * @param groupId the group ID 1070 * @param taskExecutorClassName the task executor class name 1071 * @param completed the completed 1072 * @return the matching background tasks 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_C( 1076 long groupId, java.lang.String taskExecutorClassName, boolean completed) 1077 throws com.liferay.portal.kernel.exception.SystemException; 1078 1079 /** 1080 * Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?. 1081 * 1082 * <p> 1083 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1084 * </p> 1085 * 1086 * @param groupId the group ID 1087 * @param taskExecutorClassName the task executor class name 1088 * @param completed the completed 1089 * @param start the lower bound of the range of background tasks 1090 * @param end the upper bound of the range of background tasks (not inclusive) 1091 * @return the range of matching background tasks 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_C( 1095 long groupId, java.lang.String taskExecutorClassName, 1096 boolean completed, int start, int end) 1097 throws com.liferay.portal.kernel.exception.SystemException; 1098 1099 /** 1100 * Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?. 1101 * 1102 * <p> 1103 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1104 * </p> 1105 * 1106 * @param groupId the group ID 1107 * @param taskExecutorClassName the task executor class name 1108 * @param completed the completed 1109 * @param start the lower bound of the range of background tasks 1110 * @param end the upper bound of the range of background tasks (not inclusive) 1111 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1112 * @return the ordered range of matching background tasks 1113 * @throws SystemException if a system exception occurred 1114 */ 1115 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_C( 1116 long groupId, java.lang.String taskExecutorClassName, 1117 boolean completed, int start, int end, 1118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1119 throws com.liferay.portal.kernel.exception.SystemException; 1120 1121 /** 1122 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?. 1123 * 1124 * @param groupId the group ID 1125 * @param taskExecutorClassName the task executor class name 1126 * @param completed the completed 1127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1128 * @return the first matching background task 1129 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public com.liferay.portal.model.BackgroundTask findByG_T_C_First( 1133 long groupId, java.lang.String taskExecutorClassName, 1134 boolean completed, 1135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1136 throws com.liferay.portal.NoSuchBackgroundTaskException, 1137 com.liferay.portal.kernel.exception.SystemException; 1138 1139 /** 1140 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?. 1141 * 1142 * @param groupId the group ID 1143 * @param taskExecutorClassName the task executor class name 1144 * @param completed the completed 1145 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1146 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public com.liferay.portal.model.BackgroundTask fetchByG_T_C_First( 1150 long groupId, java.lang.String taskExecutorClassName, 1151 boolean completed, 1152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1153 throws com.liferay.portal.kernel.exception.SystemException; 1154 1155 /** 1156 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?. 1157 * 1158 * @param groupId the group ID 1159 * @param taskExecutorClassName the task executor class name 1160 * @param completed the completed 1161 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1162 * @return the last matching background task 1163 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public com.liferay.portal.model.BackgroundTask findByG_T_C_Last( 1167 long groupId, java.lang.String taskExecutorClassName, 1168 boolean completed, 1169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1170 throws com.liferay.portal.NoSuchBackgroundTaskException, 1171 com.liferay.portal.kernel.exception.SystemException; 1172 1173 /** 1174 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?. 1175 * 1176 * @param groupId the group ID 1177 * @param taskExecutorClassName the task executor class name 1178 * @param completed the completed 1179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1180 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 1181 * @throws SystemException if a system exception occurred 1182 */ 1183 public com.liferay.portal.model.BackgroundTask fetchByG_T_C_Last( 1184 long groupId, java.lang.String taskExecutorClassName, 1185 boolean completed, 1186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1187 throws com.liferay.portal.kernel.exception.SystemException; 1188 1189 /** 1190 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?. 1191 * 1192 * @param backgroundTaskId the primary key of the current background task 1193 * @param groupId the group ID 1194 * @param taskExecutorClassName the task executor class name 1195 * @param completed the completed 1196 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1197 * @return the previous, current, and next background task 1198 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public com.liferay.portal.model.BackgroundTask[] findByG_T_C_PrevAndNext( 1202 long backgroundTaskId, long groupId, 1203 java.lang.String taskExecutorClassName, boolean completed, 1204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1205 throws com.liferay.portal.NoSuchBackgroundTaskException, 1206 com.liferay.portal.kernel.exception.SystemException; 1207 1208 /** 1209 * Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ? from the database. 1210 * 1211 * @param groupId the group ID 1212 * @param taskExecutorClassName the task executor class name 1213 * @param completed the completed 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 public void removeByG_T_C(long groupId, 1217 java.lang.String taskExecutorClassName, boolean completed) 1218 throws com.liferay.portal.kernel.exception.SystemException; 1219 1220 /** 1221 * Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?. 1222 * 1223 * @param groupId the group ID 1224 * @param taskExecutorClassName the task executor class name 1225 * @param completed the completed 1226 * @return the number of matching background tasks 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 public int countByG_T_C(long groupId, 1230 java.lang.String taskExecutorClassName, boolean completed) 1231 throws com.liferay.portal.kernel.exception.SystemException; 1232 1233 /** 1234 * Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?. 1235 * 1236 * @param groupId the group ID 1237 * @param taskExecutorClassName the task executor class name 1238 * @param status the status 1239 * @return the matching background tasks 1240 * @throws SystemException if a system exception occurred 1241 */ 1242 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_S( 1243 long groupId, java.lang.String taskExecutorClassName, int status) 1244 throws com.liferay.portal.kernel.exception.SystemException; 1245 1246 /** 1247 * Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?. 1248 * 1249 * <p> 1250 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1251 * </p> 1252 * 1253 * @param groupId the group ID 1254 * @param taskExecutorClassName the task executor class name 1255 * @param status the status 1256 * @param start the lower bound of the range of background tasks 1257 * @param end the upper bound of the range of background tasks (not inclusive) 1258 * @return the range of matching background tasks 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_S( 1262 long groupId, java.lang.String taskExecutorClassName, int status, 1263 int start, int end) 1264 throws com.liferay.portal.kernel.exception.SystemException; 1265 1266 /** 1267 * Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?. 1268 * 1269 * <p> 1270 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1271 * </p> 1272 * 1273 * @param groupId the group ID 1274 * @param taskExecutorClassName the task executor class name 1275 * @param status the status 1276 * @param start the lower bound of the range of background tasks 1277 * @param end the upper bound of the range of background tasks (not inclusive) 1278 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1279 * @return the ordered range of matching background tasks 1280 * @throws SystemException if a system exception occurred 1281 */ 1282 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_T_S( 1283 long groupId, java.lang.String taskExecutorClassName, int status, 1284 int start, int end, 1285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1286 throws com.liferay.portal.kernel.exception.SystemException; 1287 1288 /** 1289 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?. 1290 * 1291 * @param groupId the group ID 1292 * @param taskExecutorClassName the task executor class name 1293 * @param status the status 1294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1295 * @return the first matching background task 1296 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public com.liferay.portal.model.BackgroundTask findByG_T_S_First( 1300 long groupId, java.lang.String taskExecutorClassName, int status, 1301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1302 throws com.liferay.portal.NoSuchBackgroundTaskException, 1303 com.liferay.portal.kernel.exception.SystemException; 1304 1305 /** 1306 * Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?. 1307 * 1308 * @param groupId the group ID 1309 * @param taskExecutorClassName the task executor class name 1310 * @param status the status 1311 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1312 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 1313 * @throws SystemException if a system exception occurred 1314 */ 1315 public com.liferay.portal.model.BackgroundTask fetchByG_T_S_First( 1316 long groupId, java.lang.String taskExecutorClassName, int status, 1317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1318 throws com.liferay.portal.kernel.exception.SystemException; 1319 1320 /** 1321 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?. 1322 * 1323 * @param groupId the group ID 1324 * @param taskExecutorClassName the task executor class name 1325 * @param status the status 1326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1327 * @return the last matching background task 1328 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1329 * @throws SystemException if a system exception occurred 1330 */ 1331 public com.liferay.portal.model.BackgroundTask findByG_T_S_Last( 1332 long groupId, java.lang.String taskExecutorClassName, int status, 1333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1334 throws com.liferay.portal.NoSuchBackgroundTaskException, 1335 com.liferay.portal.kernel.exception.SystemException; 1336 1337 /** 1338 * Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?. 1339 * 1340 * @param groupId the group ID 1341 * @param taskExecutorClassName the task executor class name 1342 * @param status the status 1343 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1344 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 1345 * @throws SystemException if a system exception occurred 1346 */ 1347 public com.liferay.portal.model.BackgroundTask fetchByG_T_S_Last( 1348 long groupId, java.lang.String taskExecutorClassName, int status, 1349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1350 throws com.liferay.portal.kernel.exception.SystemException; 1351 1352 /** 1353 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?. 1354 * 1355 * @param backgroundTaskId the primary key of the current background task 1356 * @param groupId the group ID 1357 * @param taskExecutorClassName the task executor class name 1358 * @param status the status 1359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1360 * @return the previous, current, and next background task 1361 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1362 * @throws SystemException if a system exception occurred 1363 */ 1364 public com.liferay.portal.model.BackgroundTask[] findByG_T_S_PrevAndNext( 1365 long backgroundTaskId, long groupId, 1366 java.lang.String taskExecutorClassName, int status, 1367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1368 throws com.liferay.portal.NoSuchBackgroundTaskException, 1369 com.liferay.portal.kernel.exception.SystemException; 1370 1371 /** 1372 * Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ? from the database. 1373 * 1374 * @param groupId the group ID 1375 * @param taskExecutorClassName the task executor class name 1376 * @param status the status 1377 * @throws SystemException if a system exception occurred 1378 */ 1379 public void removeByG_T_S(long groupId, 1380 java.lang.String taskExecutorClassName, int status) 1381 throws com.liferay.portal.kernel.exception.SystemException; 1382 1383 /** 1384 * Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and status = ?. 1385 * 1386 * @param groupId the group ID 1387 * @param taskExecutorClassName the task executor class name 1388 * @param status the status 1389 * @return the number of matching background tasks 1390 * @throws SystemException if a system exception occurred 1391 */ 1392 public int countByG_T_S(long groupId, 1393 java.lang.String taskExecutorClassName, int status) 1394 throws com.liferay.portal.kernel.exception.SystemException; 1395 1396 /** 1397 * Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1398 * 1399 * @param groupId the group ID 1400 * @param name the name 1401 * @param taskExecutorClassName the task executor class name 1402 * @param completed the completed 1403 * @return the matching background tasks 1404 * @throws SystemException if a system exception occurred 1405 */ 1406 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T_C( 1407 long groupId, java.lang.String name, 1408 java.lang.String taskExecutorClassName, boolean completed) 1409 throws com.liferay.portal.kernel.exception.SystemException; 1410 1411 /** 1412 * Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1413 * 1414 * <p> 1415 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1416 * </p> 1417 * 1418 * @param groupId the group ID 1419 * @param name the name 1420 * @param taskExecutorClassName the task executor class name 1421 * @param completed the completed 1422 * @param start the lower bound of the range of background tasks 1423 * @param end the upper bound of the range of background tasks (not inclusive) 1424 * @return the range of matching background tasks 1425 * @throws SystemException if a system exception occurred 1426 */ 1427 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T_C( 1428 long groupId, java.lang.String name, 1429 java.lang.String taskExecutorClassName, boolean completed, int start, 1430 int end) throws com.liferay.portal.kernel.exception.SystemException; 1431 1432 /** 1433 * Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1434 * 1435 * <p> 1436 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1437 * </p> 1438 * 1439 * @param groupId the group ID 1440 * @param name the name 1441 * @param taskExecutorClassName the task executor class name 1442 * @param completed the completed 1443 * @param start the lower bound of the range of background tasks 1444 * @param end the upper bound of the range of background tasks (not inclusive) 1445 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1446 * @return the ordered range of matching background tasks 1447 * @throws SystemException if a system exception occurred 1448 */ 1449 public java.util.List<com.liferay.portal.model.BackgroundTask> findByG_N_T_C( 1450 long groupId, java.lang.String name, 1451 java.lang.String taskExecutorClassName, boolean completed, int start, 1452 int end, 1453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1454 throws com.liferay.portal.kernel.exception.SystemException; 1455 1456 /** 1457 * Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1458 * 1459 * @param groupId the group ID 1460 * @param name the name 1461 * @param taskExecutorClassName the task executor class name 1462 * @param completed the completed 1463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1464 * @return the first matching background task 1465 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 public com.liferay.portal.model.BackgroundTask findByG_N_T_C_First( 1469 long groupId, java.lang.String name, 1470 java.lang.String taskExecutorClassName, boolean completed, 1471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1472 throws com.liferay.portal.NoSuchBackgroundTaskException, 1473 com.liferay.portal.kernel.exception.SystemException; 1474 1475 /** 1476 * Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1477 * 1478 * @param groupId the group ID 1479 * @param name the name 1480 * @param taskExecutorClassName the task executor class name 1481 * @param completed the completed 1482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1483 * @return the first matching background task, or <code>null</code> if a matching background task could not be found 1484 * @throws SystemException if a system exception occurred 1485 */ 1486 public com.liferay.portal.model.BackgroundTask fetchByG_N_T_C_First( 1487 long groupId, java.lang.String name, 1488 java.lang.String taskExecutorClassName, boolean completed, 1489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1490 throws com.liferay.portal.kernel.exception.SystemException; 1491 1492 /** 1493 * Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1494 * 1495 * @param groupId the group ID 1496 * @param name the name 1497 * @param taskExecutorClassName the task executor class name 1498 * @param completed the completed 1499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1500 * @return the last matching background task 1501 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a matching background task could not be found 1502 * @throws SystemException if a system exception occurred 1503 */ 1504 public com.liferay.portal.model.BackgroundTask findByG_N_T_C_Last( 1505 long groupId, java.lang.String name, 1506 java.lang.String taskExecutorClassName, boolean completed, 1507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1508 throws com.liferay.portal.NoSuchBackgroundTaskException, 1509 com.liferay.portal.kernel.exception.SystemException; 1510 1511 /** 1512 * Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1513 * 1514 * @param groupId the group ID 1515 * @param name the name 1516 * @param taskExecutorClassName the task executor class name 1517 * @param completed the completed 1518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1519 * @return the last matching background task, or <code>null</code> if a matching background task could not be found 1520 * @throws SystemException if a system exception occurred 1521 */ 1522 public com.liferay.portal.model.BackgroundTask fetchByG_N_T_C_Last( 1523 long groupId, java.lang.String name, 1524 java.lang.String taskExecutorClassName, boolean completed, 1525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1526 throws com.liferay.portal.kernel.exception.SystemException; 1527 1528 /** 1529 * Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1530 * 1531 * @param backgroundTaskId the primary key of the current background task 1532 * @param groupId the group ID 1533 * @param name the name 1534 * @param taskExecutorClassName the task executor class name 1535 * @param completed the completed 1536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1537 * @return the previous, current, and next background task 1538 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1539 * @throws SystemException if a system exception occurred 1540 */ 1541 public com.liferay.portal.model.BackgroundTask[] findByG_N_T_C_PrevAndNext( 1542 long backgroundTaskId, long groupId, java.lang.String name, 1543 java.lang.String taskExecutorClassName, boolean completed, 1544 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1545 throws com.liferay.portal.NoSuchBackgroundTaskException, 1546 com.liferay.portal.kernel.exception.SystemException; 1547 1548 /** 1549 * Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ? from the database. 1550 * 1551 * @param groupId the group ID 1552 * @param name the name 1553 * @param taskExecutorClassName the task executor class name 1554 * @param completed the completed 1555 * @throws SystemException if a system exception occurred 1556 */ 1557 public void removeByG_N_T_C(long groupId, java.lang.String name, 1558 java.lang.String taskExecutorClassName, boolean completed) 1559 throws com.liferay.portal.kernel.exception.SystemException; 1560 1561 /** 1562 * Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?. 1563 * 1564 * @param groupId the group ID 1565 * @param name the name 1566 * @param taskExecutorClassName the task executor class name 1567 * @param completed the completed 1568 * @return the number of matching background tasks 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 public int countByG_N_T_C(long groupId, java.lang.String name, 1572 java.lang.String taskExecutorClassName, boolean completed) 1573 throws com.liferay.portal.kernel.exception.SystemException; 1574 1575 /** 1576 * Caches the background task in the entity cache if it is enabled. 1577 * 1578 * @param backgroundTask the background task 1579 */ 1580 public void cacheResult( 1581 com.liferay.portal.model.BackgroundTask backgroundTask); 1582 1583 /** 1584 * Caches the background tasks in the entity cache if it is enabled. 1585 * 1586 * @param backgroundTasks the background tasks 1587 */ 1588 public void cacheResult( 1589 java.util.List<com.liferay.portal.model.BackgroundTask> backgroundTasks); 1590 1591 /** 1592 * Creates a new background task with the primary key. Does not add the background task to the database. 1593 * 1594 * @param backgroundTaskId the primary key for the new background task 1595 * @return the new background task 1596 */ 1597 public com.liferay.portal.model.BackgroundTask create(long backgroundTaskId); 1598 1599 /** 1600 * Removes the background task with the primary key from the database. Also notifies the appropriate model listeners. 1601 * 1602 * @param backgroundTaskId the primary key of the background task 1603 * @return the background task that was removed 1604 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1605 * @throws SystemException if a system exception occurred 1606 */ 1607 public com.liferay.portal.model.BackgroundTask remove(long backgroundTaskId) 1608 throws com.liferay.portal.NoSuchBackgroundTaskException, 1609 com.liferay.portal.kernel.exception.SystemException; 1610 1611 public com.liferay.portal.model.BackgroundTask updateImpl( 1612 com.liferay.portal.model.BackgroundTask backgroundTask) 1613 throws com.liferay.portal.kernel.exception.SystemException; 1614 1615 /** 1616 * Returns the background task with the primary key or throws a {@link com.liferay.portal.NoSuchBackgroundTaskException} if it could not be found. 1617 * 1618 * @param backgroundTaskId the primary key of the background task 1619 * @return the background task 1620 * @throws com.liferay.portal.NoSuchBackgroundTaskException if a background task with the primary key could not be found 1621 * @throws SystemException if a system exception occurred 1622 */ 1623 public com.liferay.portal.model.BackgroundTask findByPrimaryKey( 1624 long backgroundTaskId) 1625 throws com.liferay.portal.NoSuchBackgroundTaskException, 1626 com.liferay.portal.kernel.exception.SystemException; 1627 1628 /** 1629 * Returns the background task with the primary key or returns <code>null</code> if it could not be found. 1630 * 1631 * @param backgroundTaskId the primary key of the background task 1632 * @return the background task, or <code>null</code> if a background task with the primary key could not be found 1633 * @throws SystemException if a system exception occurred 1634 */ 1635 public com.liferay.portal.model.BackgroundTask fetchByPrimaryKey( 1636 long backgroundTaskId) 1637 throws com.liferay.portal.kernel.exception.SystemException; 1638 1639 /** 1640 * Returns all the background tasks. 1641 * 1642 * @return the background tasks 1643 * @throws SystemException if a system exception occurred 1644 */ 1645 public java.util.List<com.liferay.portal.model.BackgroundTask> findAll() 1646 throws com.liferay.portal.kernel.exception.SystemException; 1647 1648 /** 1649 * Returns a range of all the background tasks. 1650 * 1651 * <p> 1652 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1653 * </p> 1654 * 1655 * @param start the lower bound of the range of background tasks 1656 * @param end the upper bound of the range of background tasks (not inclusive) 1657 * @return the range of background tasks 1658 * @throws SystemException if a system exception occurred 1659 */ 1660 public java.util.List<com.liferay.portal.model.BackgroundTask> findAll( 1661 int start, int end) 1662 throws com.liferay.portal.kernel.exception.SystemException; 1663 1664 /** 1665 * Returns an ordered range of all the background tasks. 1666 * 1667 * <p> 1668 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1669 * </p> 1670 * 1671 * @param start the lower bound of the range of background tasks 1672 * @param end the upper bound of the range of background tasks (not inclusive) 1673 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1674 * @return the ordered range of background tasks 1675 * @throws SystemException if a system exception occurred 1676 */ 1677 public java.util.List<com.liferay.portal.model.BackgroundTask> findAll( 1678 int start, int end, 1679 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1680 throws com.liferay.portal.kernel.exception.SystemException; 1681 1682 /** 1683 * Removes all the background tasks from the database. 1684 * 1685 * @throws SystemException if a system exception occurred 1686 */ 1687 public void removeAll() 1688 throws com.liferay.portal.kernel.exception.SystemException; 1689 1690 /** 1691 * Returns the number of background tasks. 1692 * 1693 * @return the number of background tasks 1694 * @throws SystemException if a system exception occurred 1695 */ 1696 public int countAll() 1697 throws com.liferay.portal.kernel.exception.SystemException; 1698 }