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