Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Interface BackgroundTaskPersistence

All Superinterfaces:
BasePersistence<BackgroundTask>
All Known Implementing Classes:
BackgroundTaskPersistenceImpl

@ProviderType
public interface BackgroundTaskPersistence
extends BasePersistence<BackgroundTask>

The persistence interface for the background task service.

Caching information and settings can be found in portal.properties

See Also:
BackgroundTaskPersistenceImpl, BackgroundTaskUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(BackgroundTask backgroundTask)
          Caches the background task in the entity cache if it is enabled.
 void cacheResult(List<BackgroundTask> backgroundTasks)
          Caches the background tasks in the entity cache if it is enabled.
 int countAll()
          Returns the number of background tasks.
 int countByCompanyId(long companyId)
          Returns the number of background tasks where companyId = ?.
 int countByG_N_T_C(long groupId, String name, String taskExecutorClassName, boolean completed)
          Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 int countByG_N_T(long groupId, String name, String taskExecutorClassName)
          Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.
 int countByG_S(long groupId, int status)
          Returns the number of background tasks where groupId = ? and status = ?.
 int countByG_T_C(long groupId, String[] taskExecutorClassNames, boolean completed)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.
 int countByG_T_C(long groupId, String taskExecutorClassName, boolean completed)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.
 int countByG_T_S(long groupId, String[] taskExecutorClassNames, int status)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.
 int countByG_T_S(long groupId, String taskExecutorClassName, int status)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.
 int countByG_T(long groupId, String taskExecutorClassName)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = ?.
 int countByG_T(long groupId, String[] taskExecutorClassNames)
          Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ?.
 int countByGroupId(long groupId)
          Returns the number of background tasks where groupId = ?.
 int countByStatus(int status)
          Returns the number of background tasks where status = ?.
 int countByT_S(String[] taskExecutorClassNames, int status)
          Returns the number of background tasks where taskExecutorClassName = any ? and status = ?.
 int countByT_S(String taskExecutorClassName, int status)
          Returns the number of background tasks where taskExecutorClassName = ? and status = ?.
 BackgroundTask create(long backgroundTaskId)
          Creates a new background task with the primary key.
 BackgroundTask fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where companyId = ?.
 BackgroundTask fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where companyId = ?.
 BackgroundTask fetchByG_N_T_C_First(long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask fetchByG_N_T_C_Last(long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask fetchByG_N_T_First(long groupId, String name, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.
 BackgroundTask fetchByG_N_T_Last(long groupId, String name, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.
 BackgroundTask fetchByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask fetchByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask fetchByG_T_C_First(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask fetchByG_T_C_Last(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask fetchByG_T_First(long groupId, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask fetchByG_T_Last(long groupId, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask fetchByG_T_S_First(long groupId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 BackgroundTask fetchByG_T_S_Last(long groupId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 BackgroundTask fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ?.
 BackgroundTask fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ?.
 BackgroundTask fetchByPrimaryKey(long backgroundTaskId)
          Returns the background task with the primary key or returns null if it could not be found.
 BackgroundTask fetchByStatus_First(int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where status = ?.
 BackgroundTask fetchByStatus_Last(int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where status = ?.
 BackgroundTask fetchByT_S_First(String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.
 BackgroundTask fetchByT_S_Last(String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findAll()
          Returns all the background tasks.
 List<BackgroundTask> findAll(int start, int end)
          Returns a range of all the background tasks.
 List<BackgroundTask> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks.
 BackgroundTask findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where companyId = ?.
 BackgroundTask findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where companyId = ?.
 BackgroundTask[] findByCompanyId_PrevAndNext(long backgroundTaskId, long companyId, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where companyId = ?.
 List<BackgroundTask> findByCompanyId(long companyId)
          Returns all the background tasks where companyId = ?.
 List<BackgroundTask> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the background tasks where companyId = ?.
 List<BackgroundTask> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where companyId = ?.
 BackgroundTask findByG_N_T_C_First(long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask findByG_N_T_C_Last(long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask[] findByG_N_T_C_PrevAndNext(long backgroundTaskId, long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_N_T_C(long groupId, String name, String taskExecutorClassName, boolean completed)
          Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_N_T_C(long groupId, String name, String taskExecutorClassName, boolean completed, int start, int end)
          Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_N_T_C(long groupId, String name, String taskExecutorClassName, boolean completed, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask findByG_N_T_First(long groupId, String name, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.
 BackgroundTask findByG_N_T_Last(long groupId, String name, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.
 BackgroundTask[] findByG_N_T_PrevAndNext(long backgroundTaskId, long groupId, String name, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.
 List<BackgroundTask> findByG_N_T(long groupId, String name, String taskExecutorClassName)
          Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.
 List<BackgroundTask> findByG_N_T(long groupId, String name, String taskExecutorClassName, int start, int end)
          Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.
 List<BackgroundTask> findByG_N_T(long groupId, String name, String taskExecutorClassName, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.
 BackgroundTask findByG_S_First(long groupId, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask findByG_S_Last(long groupId, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask[] findByG_S_PrevAndNext(long backgroundTaskId, long groupId, int status, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and status = ?.
 List<BackgroundTask> findByG_S(long groupId, int status)
          Returns all the background tasks where groupId = ? and status = ?.
 List<BackgroundTask> findByG_S(long groupId, int status, int start, int end)
          Returns a range of all the background tasks where groupId = ? and status = ?.
 List<BackgroundTask> findByG_S(long groupId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and status = ?.
 BackgroundTask findByG_T_C_First(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask findByG_T_C_Last(long groupId, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask[] findByG_T_C_PrevAndNext(long backgroundTaskId, long groupId, String taskExecutorClassName, boolean completed, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String[] taskExecutorClassNames, boolean completed)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String[] taskExecutorClassNames, boolean completed, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String[] taskExecutorClassNames, boolean completed, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String taskExecutorClassName, boolean completed)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String taskExecutorClassName, boolean completed, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.
 List<BackgroundTask> findByG_T_C(long groupId, String taskExecutorClassName, boolean completed, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.
 BackgroundTask findByG_T_First(long groupId, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask findByG_T_Last(long groupId, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask[] findByG_T_PrevAndNext(long backgroundTaskId, long groupId, String taskExecutorClassName, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask findByG_T_S_First(long groupId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 BackgroundTask findByG_T_S_Last(long groupId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 BackgroundTask[] findByG_T_S_PrevAndNext(long backgroundTaskId, long groupId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String[] taskExecutorClassNames, int status)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String[] taskExecutorClassNames, int status, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String[] taskExecutorClassNames, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String taskExecutorClassName, int status)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String taskExecutorClassName, int status, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByG_T_S(long groupId, String taskExecutorClassName, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByG_T(long groupId, String taskExecutorClassName)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = ?.
 List<BackgroundTask> findByG_T(long groupId, String[] taskExecutorClassNames)
          Returns all the background tasks where groupId = ? and taskExecutorClassName = any ?.
 List<BackgroundTask> findByG_T(long groupId, String[] taskExecutorClassNames, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ?.
 List<BackgroundTask> findByG_T(long groupId, String[] taskExecutorClassNames, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ?.
 List<BackgroundTask> findByG_T(long groupId, String taskExecutorClassName, int start, int end)
          Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ?.
 List<BackgroundTask> findByG_T(long groupId, String taskExecutorClassName, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where groupId = ?.
 BackgroundTask findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where groupId = ?.
 BackgroundTask[] findByGroupId_PrevAndNext(long backgroundTaskId, long groupId, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where groupId = ?.
 List<BackgroundTask> findByGroupId(long groupId)
          Returns all the background tasks where groupId = ?.
 List<BackgroundTask> findByGroupId(long groupId, int start, int end)
          Returns a range of all the background tasks where groupId = ?.
 List<BackgroundTask> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ?.
 BackgroundTask findByPrimaryKey(long backgroundTaskId)
          Returns the background task with the primary key or throws a NoSuchBackgroundTaskException if it could not be found.
 BackgroundTask findByStatus_First(int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where status = ?.
 BackgroundTask findByStatus_Last(int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where status = ?.
 BackgroundTask[] findByStatus_PrevAndNext(long backgroundTaskId, int status, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where status = ?.
 List<BackgroundTask> findByStatus(int status)
          Returns all the background tasks where status = ?.
 List<BackgroundTask> findByStatus(int status, int start, int end)
          Returns a range of all the background tasks where status = ?.
 List<BackgroundTask> findByStatus(int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where status = ?.
 BackgroundTask findByT_S_First(String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.
 BackgroundTask findByT_S_Last(String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?.
 BackgroundTask[] findByT_S_PrevAndNext(long backgroundTaskId, String taskExecutorClassName, int status, OrderByComparator orderByComparator)
          Returns the background tasks before and after the current background task in the ordered set where taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByT_S(String[] taskExecutorClassNames, int status)
          Returns all the background tasks where taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByT_S(String[] taskExecutorClassNames, int status, int start, int end)
          Returns a range of all the background tasks where taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByT_S(String[] taskExecutorClassNames, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where taskExecutorClassName = any ? and status = ?.
 List<BackgroundTask> findByT_S(String taskExecutorClassName, int status)
          Returns all the background tasks where taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByT_S(String taskExecutorClassName, int status, int start, int end)
          Returns a range of all the background tasks where taskExecutorClassName = ? and status = ?.
 List<BackgroundTask> findByT_S(String taskExecutorClassName, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the background tasks where taskExecutorClassName = ? and status = ?.
 BackgroundTask remove(long backgroundTaskId)
          Removes the background task with the primary key from the database.
 void removeAll()
          Removes all the background tasks from the database.
 void removeByCompanyId(long companyId)
          Removes all the background tasks where companyId = ? from the database.
 void removeByG_N_T_C(long groupId, String name, String taskExecutorClassName, boolean completed)
          Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ? from the database.
 void removeByG_N_T(long groupId, String name, String taskExecutorClassName)
          Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? from the database.
 void removeByG_S(long groupId, int status)
          Removes all the background tasks where groupId = ? and status = ? from the database.
 void removeByG_T_C(long groupId, String taskExecutorClassName, boolean completed)
          Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ? from the database.
 void removeByG_T_S(long groupId, String taskExecutorClassName, int status)
          Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ? from the database.
 void removeByG_T(long groupId, String taskExecutorClassName)
          Removes all the background tasks where groupId = ? and taskExecutorClassName = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the background tasks where groupId = ? from the database.
 void removeByStatus(int status)
          Removes all the background tasks where status = ? from the database.
 void removeByT_S(String taskExecutorClassName, int status)
          Removes all the background tasks where taskExecutorClassName = ? and status = ? from the database.
 BackgroundTask updateImpl(BackgroundTask backgroundTask)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<BackgroundTask> findByGroupId(long groupId)
                                   throws SystemException
Returns all the background tasks where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByGroupId

List<BackgroundTask> findByGroupId(long groupId,
                                   int start,
                                   int end)
                                   throws SystemException
Returns a range of all the background tasks where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByGroupId

List<BackgroundTask> findByGroupId(long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the background tasks where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByGroupId_First

BackgroundTask findByGroupId_First(long groupId,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchBackgroundTaskException,
                                          SystemException
Returns the first background task in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

BackgroundTask fetchByGroupId_First(long groupId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first background task in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

BackgroundTask findByGroupId_Last(long groupId,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchBackgroundTaskException,
                                         SystemException
Returns the last background task in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

BackgroundTask fetchByGroupId_Last(long groupId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last background task in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

BackgroundTask[] findByGroupId_PrevAndNext(long backgroundTaskId,
                                           long groupId,
                                           OrderByComparator orderByComparator)
                                           throws NoSuchBackgroundTaskException,
                                                  SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the background tasks where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of background tasks where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<BackgroundTask> findByCompanyId(long companyId)
                                     throws SystemException
Returns all the background tasks where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<BackgroundTask> findByCompanyId(long companyId,
                                     int start,
                                     int end)
                                     throws SystemException
Returns a range of all the background tasks where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
companyId - the company ID
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<BackgroundTask> findByCompanyId(long companyId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the background tasks where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
companyId - the company ID
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

BackgroundTask findByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchBackgroundTaskException,
                                            SystemException
Returns the first background task in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

BackgroundTask fetchByCompanyId_First(long companyId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first background task in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

BackgroundTask findByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchBackgroundTaskException,
                                           SystemException
Returns the last background task in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

BackgroundTask fetchByCompanyId_Last(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last background task in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

BackgroundTask[] findByCompanyId_PrevAndNext(long backgroundTaskId,
                                             long companyId,
                                             OrderByComparator orderByComparator)
                                             throws NoSuchBackgroundTaskException,
                                                    SystemException
Returns the background tasks before and after the current background task in the ordered set where companyId = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the background tasks where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of background tasks where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByStatus

List<BackgroundTask> findByStatus(int status)
                                  throws SystemException
Returns all the background tasks where status = ?.

Parameters:
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByStatus

List<BackgroundTask> findByStatus(int status,
                                  int start,
                                  int end)
                                  throws SystemException
Returns a range of all the background tasks where status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByStatus

List<BackgroundTask> findByStatus(int status,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the background tasks where status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByStatus_First

BackgroundTask findByStatus_First(int status,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchBackgroundTaskException,
                                         SystemException
Returns the first background task in the ordered set where status = ?.

Parameters:
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByStatus_First

BackgroundTask fetchByStatus_First(int status,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first background task in the ordered set where status = ?.

Parameters:
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByStatus_Last

BackgroundTask findByStatus_Last(int status,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchBackgroundTaskException,
                                        SystemException
Returns the last background task in the ordered set where status = ?.

Parameters:
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByStatus_Last

BackgroundTask fetchByStatus_Last(int status,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last background task in the ordered set where status = ?.

Parameters:
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByStatus_PrevAndNext

BackgroundTask[] findByStatus_PrevAndNext(long backgroundTaskId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                          throws NoSuchBackgroundTaskException,
                                                 SystemException
Returns the background tasks before and after the current background task in the ordered set where status = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByStatus

void removeByStatus(int status)
                    throws SystemException
Removes all the background tasks where status = ? from the database.

Parameters:
status - the status
Throws:
SystemException - if a system exception occurred

countByStatus

int countByStatus(int status)
                  throws SystemException
Returns the number of background tasks where status = ?.

Parameters:
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String taskExecutorClassName)
                               throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String taskExecutorClassName,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String taskExecutorClassName,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_First

BackgroundTask findByG_T_First(long groupId,
                               String taskExecutorClassName,
                               OrderByComparator orderByComparator)
                               throws NoSuchBackgroundTaskException,
                                      SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_First

BackgroundTask fetchByG_T_First(long groupId,
                                String taskExecutorClassName,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_Last

BackgroundTask findByG_T_Last(long groupId,
                              String taskExecutorClassName,
                              OrderByComparator orderByComparator)
                              throws NoSuchBackgroundTaskException,
                                     SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_Last

BackgroundTask fetchByG_T_Last(long groupId,
                               String taskExecutorClassName,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_PrevAndNext

BackgroundTask[] findByG_T_PrevAndNext(long backgroundTaskId,
                                       long groupId,
                                       String taskExecutorClassName,
                                       OrderByComparator orderByComparator)
                                       throws NoSuchBackgroundTaskException,
                                              SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String[] taskExecutorClassNames)
                               throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String[] taskExecutorClassNames,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T

List<BackgroundTask> findByG_T(long groupId,
                               String[] taskExecutorClassNames,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

removeByG_T

void removeByG_T(long groupId,
                 String taskExecutorClassName)
                 throws SystemException
Removes all the background tasks where groupId = ? and taskExecutorClassName = ? from the database.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
Throws:
SystemException - if a system exception occurred

countByG_T

int countByG_T(long groupId,
               String taskExecutorClassName)
               throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

countByG_T

int countByG_T(long groupId,
               String[] taskExecutorClassNames)
               throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ?.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_S

List<BackgroundTask> findByG_S(long groupId,
                               int status)
                               throws SystemException
Returns all the background tasks where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_S

List<BackgroundTask> findByG_S(long groupId,
                               int status,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the background tasks where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_S

List<BackgroundTask> findByG_S(long groupId,
                               int status,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_S_First

BackgroundTask findByG_S_First(long groupId,
                               int status,
                               OrderByComparator orderByComparator)
                               throws NoSuchBackgroundTaskException,
                                      SystemException
Returns the first background task in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_S_First

BackgroundTask fetchByG_S_First(long groupId,
                                int status,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the first background task in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_Last

BackgroundTask findByG_S_Last(long groupId,
                              int status,
                              OrderByComparator orderByComparator)
                              throws NoSuchBackgroundTaskException,
                                     SystemException
Returns the last background task in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_S_Last

BackgroundTask fetchByG_S_Last(long groupId,
                               int status,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the last background task in the ordered set where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_PrevAndNext

BackgroundTask[] findByG_S_PrevAndNext(long backgroundTaskId,
                                       long groupId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                       throws NoSuchBackgroundTaskException,
                                              SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and status = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByG_S

void removeByG_S(long groupId,
                 int status)
                 throws SystemException
Removes all the background tasks where groupId = ? and status = ? from the database.

Parameters:
groupId - the group ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_S

int countByG_S(long groupId,
               int status)
               throws SystemException
Returns the number of background tasks where groupId = ? and status = ?.

Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String taskExecutorClassName,
                               int status)
                               throws SystemException
Returns all the background tasks where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String taskExecutorClassName,
                               int status,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the background tasks where taskExecutorClassName = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String taskExecutorClassName,
                               int status,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the background tasks where taskExecutorClassName = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S_First

BackgroundTask findByT_S_First(String taskExecutorClassName,
                               int status,
                               OrderByComparator orderByComparator)
                               throws NoSuchBackgroundTaskException,
                                      SystemException
Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByT_S_First

BackgroundTask fetchByT_S_First(String taskExecutorClassName,
                                int status,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByT_S_Last

BackgroundTask findByT_S_Last(String taskExecutorClassName,
                              int status,
                              OrderByComparator orderByComparator)
                              throws NoSuchBackgroundTaskException,
                                     SystemException
Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByT_S_Last

BackgroundTask fetchByT_S_Last(String taskExecutorClassName,
                               int status,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the last background task in the ordered set where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByT_S_PrevAndNext

BackgroundTask[] findByT_S_PrevAndNext(long backgroundTaskId,
                                       String taskExecutorClassName,
                                       int status,
                                       OrderByComparator orderByComparator)
                                       throws NoSuchBackgroundTaskException,
                                              SystemException
Returns the background tasks before and after the current background task in the ordered set where taskExecutorClassName = ? and status = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String[] taskExecutorClassNames,
                               int status)
                               throws SystemException
Returns all the background tasks where taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String[] taskExecutorClassNames,
                               int status,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the background tasks where taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
taskExecutorClassNames - the task executor class names
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByT_S

List<BackgroundTask> findByT_S(String[] taskExecutorClassNames,
                               int status,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the background tasks where taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
taskExecutorClassNames - the task executor class names
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

removeByT_S

void removeByT_S(String taskExecutorClassName,
                 int status)
                 throws SystemException
Removes all the background tasks where taskExecutorClassName = ? and status = ? from the database.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
Throws:
SystemException - if a system exception occurred

countByT_S

int countByT_S(String taskExecutorClassName,
               int status)
               throws SystemException
Returns the number of background tasks where taskExecutorClassName = ? and status = ?.

Parameters:
taskExecutorClassName - the task executor class name
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

countByT_S

int countByT_S(String[] taskExecutorClassNames,
               int status)
               throws SystemException
Returns the number of background tasks where taskExecutorClassName = any ? and status = ?.

Parameters:
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T

List<BackgroundTask> findByG_N_T(long groupId,
                                 String name,
                                 String taskExecutorClassName)
                                 throws SystemException
Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T

List<BackgroundTask> findByG_N_T(long groupId,
                                 String name,
                                 String taskExecutorClassName,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T

List<BackgroundTask> findByG_N_T(long groupId,
                                 String name,
                                 String taskExecutorClassName,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T_First

BackgroundTask findByG_N_T_First(long groupId,
                                 String name,
                                 String taskExecutorClassName,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchBackgroundTaskException,
                                        SystemException
Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_N_T_First

BackgroundTask fetchByG_N_T_First(long groupId,
                                  String name,
                                  String taskExecutorClassName,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_N_T_Last

BackgroundTask findByG_N_T_Last(long groupId,
                                String name,
                                String taskExecutorClassName,
                                OrderByComparator orderByComparator)
                                throws NoSuchBackgroundTaskException,
                                       SystemException
Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_N_T_Last

BackgroundTask fetchByG_N_T_Last(long groupId,
                                 String name,
                                 String taskExecutorClassName,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_N_T_PrevAndNext

BackgroundTask[] findByG_N_T_PrevAndNext(long backgroundTaskId,
                                         long groupId,
                                         String name,
                                         String taskExecutorClassName,
                                         OrderByComparator orderByComparator)
                                         throws NoSuchBackgroundTaskException,
                                                SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByG_N_T

void removeByG_N_T(long groupId,
                   String name,
                   String taskExecutorClassName)
                   throws SystemException
Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? from the database.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
Throws:
SystemException - if a system exception occurred

countByG_N_T

int countByG_N_T(long groupId,
                 String name,
                 String taskExecutorClassName)
                 throws SystemException
Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String taskExecutorClassName,
                                 boolean completed)
                                 throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String taskExecutorClassName,
                                 boolean completed,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String taskExecutorClassName,
                                 boolean completed,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C_First

BackgroundTask findByG_T_C_First(long groupId,
                                 String taskExecutorClassName,
                                 boolean completed,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchBackgroundTaskException,
                                        SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_C_First

BackgroundTask fetchByG_T_C_First(long groupId,
                                  String taskExecutorClassName,
                                  boolean completed,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_C_Last

BackgroundTask findByG_T_C_Last(long groupId,
                                String taskExecutorClassName,
                                boolean completed,
                                OrderByComparator orderByComparator)
                                throws NoSuchBackgroundTaskException,
                                       SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_C_Last

BackgroundTask fetchByG_T_C_Last(long groupId,
                                 String taskExecutorClassName,
                                 boolean completed,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_C_PrevAndNext

BackgroundTask[] findByG_T_C_PrevAndNext(long backgroundTaskId,
                                         long groupId,
                                         String taskExecutorClassName,
                                         boolean completed,
                                         OrderByComparator orderByComparator)
                                         throws NoSuchBackgroundTaskException,
                                                SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String[] taskExecutorClassNames,
                                 boolean completed)
                                 throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String[] taskExecutorClassNames,
                                 boolean completed,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_C

List<BackgroundTask> findByG_T_C(long groupId,
                                 String[] taskExecutorClassNames,
                                 boolean completed,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

removeByG_T_C

void removeByG_T_C(long groupId,
                   String taskExecutorClassName,
                   boolean completed)
                   throws SystemException
Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and completed = ? from the database.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
Throws:
SystemException - if a system exception occurred

countByG_T_C

int countByG_T_C(long groupId,
                 String taskExecutorClassName,
                 boolean completed)
                 throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

countByG_T_C

int countByG_T_C(long groupId,
                 String[] taskExecutorClassNames,
                 boolean completed)
                 throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ? and completed = ?.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String taskExecutorClassName,
                                 int status)
                                 throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String taskExecutorClassName,
                                 int status,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String taskExecutorClassName,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S_First

BackgroundTask findByG_T_S_First(long groupId,
                                 String taskExecutorClassName,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchBackgroundTaskException,
                                        SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_S_First

BackgroundTask fetchByG_T_S_First(long groupId,
                                  String taskExecutorClassName,
                                  int status,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_S_Last

BackgroundTask findByG_T_S_Last(long groupId,
                                String taskExecutorClassName,
                                int status,
                                OrderByComparator orderByComparator)
                                throws NoSuchBackgroundTaskException,
                                       SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_T_S_Last

BackgroundTask fetchByG_T_S_Last(long groupId,
                                 String taskExecutorClassName,
                                 int status,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_T_S_PrevAndNext

BackgroundTask[] findByG_T_S_PrevAndNext(long backgroundTaskId,
                                         long groupId,
                                         String taskExecutorClassName,
                                         int status,
                                         OrderByComparator orderByComparator)
                                         throws NoSuchBackgroundTaskException,
                                                SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String[] taskExecutorClassNames,
                                 int status)
                                 throws SystemException
Returns all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String[] taskExecutorClassNames,
                                 int status,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_T_S

List<BackgroundTask> findByG_T_S(long groupId,
                                 String[] taskExecutorClassNames,
                                 int status,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

removeByG_T_S

void removeByG_T_S(long groupId,
                   String taskExecutorClassName,
                   int status)
                   throws SystemException
Removes all the background tasks where groupId = ? and taskExecutorClassName = ? and status = ? from the database.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
Throws:
SystemException - if a system exception occurred

countByG_T_S

int countByG_T_S(long groupId,
                 String taskExecutorClassName,
                 int status)
                 throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

countByG_T_S

int countByG_T_S(long groupId,
                 String[] taskExecutorClassNames,
                 int status)
                 throws SystemException
Returns the number of background tasks where groupId = ? and taskExecutorClassName = any ? and status = ?.

Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T_C

List<BackgroundTask> findByG_N_T_C(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed)
                                   throws SystemException
Returns all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T_C

List<BackgroundTask> findByG_N_T_C(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed,
                                   int start,
                                   int end)
                                   throws SystemException
Returns a range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T_C

List<BackgroundTask> findByG_N_T_C(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching background tasks
Throws:
SystemException - if a system exception occurred

findByG_N_T_C_First

BackgroundTask findByG_N_T_C_First(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchBackgroundTaskException,
                                          SystemException
Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_N_T_C_First

BackgroundTask fetchByG_N_T_C_First(long groupId,
                                    String name,
                                    String taskExecutorClassName,
                                    boolean completed,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_N_T_C_Last

BackgroundTask findByG_N_T_C_Last(long groupId,
                                  String name,
                                  String taskExecutorClassName,
                                  boolean completed,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchBackgroundTaskException,
                                         SystemException
Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task
Throws:
NoSuchBackgroundTaskException - if a matching background task could not be found
SystemException - if a system exception occurred

fetchByG_N_T_C_Last

BackgroundTask fetchByG_N_T_C_Last(long groupId,
                                   String name,
                                   String taskExecutorClassName,
                                   boolean completed,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching background task, or null if a matching background task could not be found
Throws:
SystemException - if a system exception occurred

findByG_N_T_C_PrevAndNext

BackgroundTask[] findByG_N_T_C_PrevAndNext(long backgroundTaskId,
                                           long groupId,
                                           String name,
                                           String taskExecutorClassName,
                                           boolean completed,
                                           OrderByComparator orderByComparator)
                                           throws NoSuchBackgroundTaskException,
                                                  SystemException
Returns the background tasks before and after the current background task in the ordered set where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
backgroundTaskId - the primary key of the current background task
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

removeByG_N_T_C

void removeByG_N_T_C(long groupId,
                     String name,
                     String taskExecutorClassName,
                     boolean completed)
                     throws SystemException
Removes all the background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ? from the database.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
Throws:
SystemException - if a system exception occurred

countByG_N_T_C

int countByG_N_T_C(long groupId,
                   String name,
                   String taskExecutorClassName,
                   boolean completed)
                   throws SystemException
Returns the number of background tasks where groupId = ? and name = ? and taskExecutorClassName = ? and completed = ?.

Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the number of matching background tasks
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(BackgroundTask backgroundTask)
Caches the background task in the entity cache if it is enabled.

Parameters:
backgroundTask - the background task

cacheResult

void cacheResult(List<BackgroundTask> backgroundTasks)
Caches the background tasks in the entity cache if it is enabled.

Parameters:
backgroundTasks - the background tasks

create

BackgroundTask create(long backgroundTaskId)
Creates a new background task with the primary key. Does not add the background task to the database.

Parameters:
backgroundTaskId - the primary key for the new background task
Returns:
the new background task

remove

BackgroundTask remove(long backgroundTaskId)
                      throws NoSuchBackgroundTaskException,
                             SystemException
Removes the background task with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
backgroundTaskId - the primary key of the background task
Returns:
the background task that was removed
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

BackgroundTask updateImpl(BackgroundTask backgroundTask)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

BackgroundTask findByPrimaryKey(long backgroundTaskId)
                                throws NoSuchBackgroundTaskException,
                                       SystemException
Returns the background task with the primary key or throws a NoSuchBackgroundTaskException if it could not be found.

Parameters:
backgroundTaskId - the primary key of the background task
Returns:
the background task
Throws:
NoSuchBackgroundTaskException - if a background task with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

BackgroundTask fetchByPrimaryKey(long backgroundTaskId)
                                 throws SystemException
Returns the background task with the primary key or returns null if it could not be found.

Parameters:
backgroundTaskId - the primary key of the background task
Returns:
the background task, or null if a background task with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<BackgroundTask> findAll()
                             throws SystemException
Returns all the background tasks.

Returns:
the background tasks
Throws:
SystemException - if a system exception occurred

findAll

List<BackgroundTask> findAll(int start,
                             int end)
                             throws SystemException
Returns a range of all the background tasks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
Returns:
the range of background tasks
Throws:
SystemException - if a system exception occurred

findAll

List<BackgroundTask> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the background tasks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from BackgroundTaskModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of background tasks
end - the upper bound of the range of background tasks (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of background tasks
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the background tasks from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of background tasks.

Returns:
the number of background tasks
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5