Liferay 7.0-ce-m6

com.liferay.portal.service.persistence.impl
Class BackgroundTaskPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<BackgroundTask>
      extended by com.liferay.portal.service.persistence.impl.BackgroundTaskPersistenceImpl
All Implemented Interfaces:
SessionFactory, BackgroundTaskPersistence, BasePersistence<BackgroundTask>

@ProviderType
public class BackgroundTaskPersistenceImpl
extends BasePersistenceImpl<BackgroundTask>
implements BackgroundTaskPersistence

The persistence implementation for the background task service.

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_N_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_N_T_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_T_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_T_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_STATUS
           
static FinderPath FINDER_PATH_COUNT_BY_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STATUS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STATUS
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
BackgroundTaskPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the background task persistence.
 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.
 void clearCache()
          Clears the cache for all background tasks.
 void clearCache(BackgroundTask backgroundTask)
          Clears the cache for the background task.
 void clearCache(List<BackgroundTask> backgroundTasks)
          Clears the cache for a List instances of this model.
 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.
 void destroy()
           
 BackgroundTask fetchByCompanyId_First(long companyId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where companyId = ?.
 BackgroundTask fetchByCompanyId_Last(long companyId, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask fetchByG_S_Last(long groupId, int status, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask fetchByG_T_Last(long groupId, String taskExecutorClassName, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns the last background task in the ordered set where groupId = ? and taskExecutorClassName = ? and status = ?.
 BackgroundTask fetchByGroupId_First(long groupId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ?.
 BackgroundTask fetchByGroupId_Last(long groupId, OrderByComparator<BackgroundTask> 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 fetchByPrimaryKey(Serializable primaryKey)
          Returns the background task with the primary key or returns null if it could not be found.
 Map<Serializable,BackgroundTask> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 BackgroundTask fetchByStatus_First(int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where status = ?.
 BackgroundTask fetchByStatus_Last(int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the last background task in the ordered set where status = ?.
 BackgroundTask fetchByT_S_First(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.
 BackgroundTask fetchByT_S_Last(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns an ordered range of all the background tasks.
 BackgroundTask findByCompanyId_First(long companyId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where companyId = ?.
 BackgroundTask findByCompanyId_Last(long companyId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the last background task in the ordered set where companyId = ?.
 BackgroundTask[] findByCompanyId_PrevAndNext(long backgroundTaskId, long companyId, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and status = ?.
 BackgroundTask findByG_S_Last(long groupId, int status, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask findByG_T_Last(long groupId, String taskExecutorClassName, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns an ordered range of all the background tasks where groupId = ? and taskExecutorClassName = ?.
 BackgroundTask findByGroupId_First(long groupId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where groupId = ?.
 BackgroundTask findByGroupId_Last(long groupId, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the last background task in the ordered set where groupId = ?.
 BackgroundTask[] findByGroupId_PrevAndNext(long backgroundTaskId, long groupId, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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 findByPrimaryKey(Serializable primaryKey)
          Returns the background task with the primary key or throws a NoSuchModelException if it could not be found.
 BackgroundTask findByStatus_First(int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where status = ?.
 BackgroundTask findByStatus_Last(int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the last background task in the ordered set where status = ?.
 BackgroundTask[] findByStatus_PrevAndNext(long backgroundTaskId, int status, OrderByComparator<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns an ordered range of all the background tasks where status = ?.
 BackgroundTask findByT_S_First(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator)
          Returns the first background task in the ordered set where taskExecutorClassName = ? and status = ?.
 BackgroundTask findByT_S_Last(String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> 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<BackgroundTask> orderByComparator)
          Returns an ordered range of all the background tasks where taskExecutorClassName = ? and status = ?.
protected  BackgroundTask getByCompanyId_PrevAndNext(Session session, BackgroundTask backgroundTask, long companyId, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_N_T_C_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, String name, String taskExecutorClassName, boolean completed, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_N_T_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, String name, String taskExecutorClassName, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_S_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, int status, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_T_C_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, String taskExecutorClassName, boolean completed, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_T_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, String taskExecutorClassName, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByG_T_S_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByGroupId_PrevAndNext(Session session, BackgroundTask backgroundTask, long groupId, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByStatus_PrevAndNext(Session session, BackgroundTask backgroundTask, int status, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
protected  BackgroundTask getByT_S_PrevAndNext(Session session, BackgroundTask backgroundTask, String taskExecutorClassName, int status, OrderByComparator<BackgroundTask> orderByComparator, boolean previous)
           
 BackgroundTask remove(long backgroundTaskId)
          Removes the background task with the primary key from the database.
 BackgroundTask remove(Serializable primaryKey)
          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.
protected  BackgroundTask removeImpl(BackgroundTask backgroundTask)
          Removes the model instance from the database.
protected  BackgroundTask toUnwrappedModel(BackgroundTask backgroundTask)
           
 BackgroundTask updateImpl(BackgroundTask backgroundTask)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_STATUS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STATUS

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STATUS

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STATUS

FINDER_PATH_COUNT_BY_STATUS

public static final FinderPath FINDER_PATH_COUNT_BY_STATUS

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T

FINDER_PATH_COUNT_BY_G_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_T

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

FINDER_PATH_COUNT_BY_G_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_S

FINDER_PATH_COUNT_BY_T_S

public static final FinderPath FINDER_PATH_COUNT_BY_T_S

FINDER_PATH_WITH_PAGINATION_COUNT_BY_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_T_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T

FINDER_PATH_COUNT_BY_G_N_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_N_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_C

FINDER_PATH_COUNT_BY_G_T_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_T_C

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_T_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_T_S

FINDER_PATH_COUNT_BY_G_T_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_T_S

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_T_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_T_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_T_C

FINDER_PATH_COUNT_BY_G_N_T_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_N_T_C
Constructor Detail

BackgroundTaskPersistenceImpl

public BackgroundTaskPersistenceImpl()
Method Detail

findByGroupId

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

Specified by:
findByGroupId in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
Returns:
the matching background tasks

findByGroupId

public List<BackgroundTask> findByGroupId(long groupId,
                                          int start,
                                          int end)
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.

Specified by:
findByGroupId in interface BackgroundTaskPersistence
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

findByGroupId

public List<BackgroundTask> findByGroupId(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByGroupId in interface BackgroundTaskPersistence
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

findByGroupId_First

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

Specified by:
findByGroupId_First in interface BackgroundTaskPersistence
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

fetchByGroupId_First

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

Specified by:
fetchByGroupId_First in interface BackgroundTaskPersistence
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

findByGroupId_Last

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

Specified by:
findByGroupId_Last in interface BackgroundTaskPersistence
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

fetchByGroupId_Last

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

Specified by:
fetchByGroupId_Last in interface BackgroundTaskPersistence
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

findByGroupId_PrevAndNext

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

Specified by:
findByGroupId_PrevAndNext in interface BackgroundTaskPersistence
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

getByGroupId_PrevAndNext

protected BackgroundTask getByGroupId_PrevAndNext(Session session,
                                                  BackgroundTask backgroundTask,
                                                  long groupId,
                                                  OrderByComparator<BackgroundTask> orderByComparator,
                                                  boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID

countByGroupId

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

Specified by:
countByGroupId in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching background tasks

findByCompanyId

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

Specified by:
findByCompanyId in interface BackgroundTaskPersistence
Parameters:
companyId - the company ID
Returns:
the matching background tasks

findByCompanyId

public List<BackgroundTask> findByCompanyId(long companyId,
                                            int start,
                                            int end)
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.

Specified by:
findByCompanyId in interface BackgroundTaskPersistence
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

findByCompanyId

public List<BackgroundTask> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByCompanyId in interface BackgroundTaskPersistence
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

findByCompanyId_First

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

Specified by:
findByCompanyId_First in interface BackgroundTaskPersistence
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

fetchByCompanyId_First

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

Specified by:
fetchByCompanyId_First in interface BackgroundTaskPersistence
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

findByCompanyId_Last

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

Specified by:
findByCompanyId_Last in interface BackgroundTaskPersistence
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

fetchByCompanyId_Last

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

Specified by:
fetchByCompanyId_Last in interface BackgroundTaskPersistence
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

findByCompanyId_PrevAndNext

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

Specified by:
findByCompanyId_PrevAndNext in interface BackgroundTaskPersistence
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

getByCompanyId_PrevAndNext

protected BackgroundTask getByCompanyId_PrevAndNext(Session session,
                                                    BackgroundTask backgroundTask,
                                                    long companyId,
                                                    OrderByComparator<BackgroundTask> orderByComparator,
                                                    boolean previous)

removeByCompanyId

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

Specified by:
removeByCompanyId in interface BackgroundTaskPersistence
Parameters:
companyId - the company ID

countByCompanyId

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

Specified by:
countByCompanyId in interface BackgroundTaskPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching background tasks

findByStatus

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

Specified by:
findByStatus in interface BackgroundTaskPersistence
Parameters:
status - the status
Returns:
the matching background tasks

findByStatus

public List<BackgroundTask> findByStatus(int status,
                                         int start,
                                         int end)
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.

Specified by:
findByStatus in interface BackgroundTaskPersistence
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

findByStatus

public List<BackgroundTask> findByStatus(int status,
                                         int start,
                                         int end,
                                         OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByStatus in interface BackgroundTaskPersistence
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

findByStatus_First

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

Specified by:
findByStatus_First in interface BackgroundTaskPersistence
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

fetchByStatus_First

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

Specified by:
fetchByStatus_First in interface BackgroundTaskPersistence
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

findByStatus_Last

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

Specified by:
findByStatus_Last in interface BackgroundTaskPersistence
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

fetchByStatus_Last

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

Specified by:
fetchByStatus_Last in interface BackgroundTaskPersistence
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

findByStatus_PrevAndNext

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

Specified by:
findByStatus_PrevAndNext in interface BackgroundTaskPersistence
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

getByStatus_PrevAndNext

protected BackgroundTask getByStatus_PrevAndNext(Session session,
                                                 BackgroundTask backgroundTask,
                                                 int status,
                                                 OrderByComparator<BackgroundTask> orderByComparator,
                                                 boolean previous)

removeByStatus

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

Specified by:
removeByStatus in interface BackgroundTaskPersistence
Parameters:
status - the status

countByStatus

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

Specified by:
countByStatus in interface BackgroundTaskPersistence
Parameters:
status - the status
Returns:
the number of matching background tasks

findByG_T

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

Specified by:
findByG_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
Returns:
the matching background tasks

findByG_T

public List<BackgroundTask> findByG_T(long groupId,
                                      String taskExecutorClassName,
                                      int start,
                                      int end)
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.

Specified by:
findByG_T in interface BackgroundTaskPersistence
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

findByG_T

public List<BackgroundTask> findByG_T(long groupId,
                                      String taskExecutorClassName,
                                      int start,
                                      int end,
                                      OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T in interface BackgroundTaskPersistence
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

findByG_T_First

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

Specified by:
findByG_T_First in interface BackgroundTaskPersistence
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

fetchByG_T_First

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

Specified by:
fetchByG_T_First in interface BackgroundTaskPersistence
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

findByG_T_Last

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

Specified by:
findByG_T_Last in interface BackgroundTaskPersistence
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

fetchByG_T_Last

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

Specified by:
fetchByG_T_Last in interface BackgroundTaskPersistence
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

findByG_T_PrevAndNext

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

Specified by:
findByG_T_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_T_PrevAndNext

protected BackgroundTask getByG_T_PrevAndNext(Session session,
                                              BackgroundTask backgroundTask,
                                              long groupId,
                                              String taskExecutorClassName,
                                              OrderByComparator<BackgroundTask> orderByComparator,
                                              boolean previous)

findByG_T

public List<BackgroundTask> findByG_T(long groupId,
                                      String[] taskExecutorClassNames)
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.

Specified by:
findByG_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
Returns:
the matching background tasks

findByG_T

public 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 ?.

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.

Specified by:
findByG_T in interface BackgroundTaskPersistence
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

findByG_T

public List<BackgroundTask> findByG_T(long groupId,
                                      String[] taskExecutorClassNames,
                                      int start,
                                      int end,
                                      OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T in interface BackgroundTaskPersistence
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

removeByG_T

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

Specified by:
removeByG_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name

countByG_T

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

Specified by:
countByG_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
Returns:
the number of matching background tasks

countByG_T

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

Specified by:
countByG_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
Returns:
the number of matching background tasks

findByG_S

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

Specified by:
findByG_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the matching background tasks

findByG_S

public List<BackgroundTask> findByG_S(long groupId,
                                      int status,
                                      int start,
                                      int end)
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.

Specified by:
findByG_S in interface BackgroundTaskPersistence
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

findByG_S

public List<BackgroundTask> findByG_S(long groupId,
                                      int status,
                                      int start,
                                      int end,
                                      OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_S in interface BackgroundTaskPersistence
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

findByG_S_First

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

Specified by:
findByG_S_First in interface BackgroundTaskPersistence
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

fetchByG_S_First

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

Specified by:
fetchByG_S_First in interface BackgroundTaskPersistence
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

findByG_S_Last

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

Specified by:
findByG_S_Last in interface BackgroundTaskPersistence
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

fetchByG_S_Last

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

Specified by:
fetchByG_S_Last in interface BackgroundTaskPersistence
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

findByG_S_PrevAndNext

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

Specified by:
findByG_S_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_S_PrevAndNext

protected BackgroundTask getByG_S_PrevAndNext(Session session,
                                              BackgroundTask backgroundTask,
                                              long groupId,
                                              int status,
                                              OrderByComparator<BackgroundTask> orderByComparator,
                                              boolean previous)

removeByG_S

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

Specified by:
removeByG_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
status - the status

countByG_S

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

Specified by:
countByG_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
status - the status
Returns:
the number of matching background tasks

findByT_S

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

Specified by:
findByT_S in interface BackgroundTaskPersistence
Parameters:
taskExecutorClassName - the task executor class name
status - the status
Returns:
the matching background tasks

findByT_S

public List<BackgroundTask> findByT_S(String taskExecutorClassName,
                                      int status,
                                      int start,
                                      int end)
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.

Specified by:
findByT_S in interface BackgroundTaskPersistence
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

findByT_S

public List<BackgroundTask> findByT_S(String taskExecutorClassName,
                                      int status,
                                      int start,
                                      int end,
                                      OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByT_S in interface BackgroundTaskPersistence
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

findByT_S_First

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

Specified by:
findByT_S_First in interface BackgroundTaskPersistence
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

fetchByT_S_First

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

Specified by:
fetchByT_S_First in interface BackgroundTaskPersistence
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

findByT_S_Last

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

Specified by:
findByT_S_Last in interface BackgroundTaskPersistence
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

fetchByT_S_Last

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

Specified by:
fetchByT_S_Last in interface BackgroundTaskPersistence
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

findByT_S_PrevAndNext

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

Specified by:
findByT_S_PrevAndNext in interface BackgroundTaskPersistence
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

getByT_S_PrevAndNext

protected BackgroundTask getByT_S_PrevAndNext(Session session,
                                              BackgroundTask backgroundTask,
                                              String taskExecutorClassName,
                                              int status,
                                              OrderByComparator<BackgroundTask> orderByComparator,
                                              boolean previous)

findByT_S

public List<BackgroundTask> findByT_S(String[] taskExecutorClassNames,
                                      int status)
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.

Specified by:
findByT_S in interface BackgroundTaskPersistence
Parameters:
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the matching background tasks

findByT_S

public 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 = ?.

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.

Specified by:
findByT_S in interface BackgroundTaskPersistence
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

findByT_S

public List<BackgroundTask> findByT_S(String[] taskExecutorClassNames,
                                      int status,
                                      int start,
                                      int end,
                                      OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByT_S in interface BackgroundTaskPersistence
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

removeByT_S

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

Specified by:
removeByT_S in interface BackgroundTaskPersistence
Parameters:
taskExecutorClassName - the task executor class name
status - the status

countByT_S

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

Specified by:
countByT_S in interface BackgroundTaskPersistence
Parameters:
taskExecutorClassName - the task executor class name
status - the status
Returns:
the number of matching background tasks

countByT_S

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

Specified by:
countByT_S in interface BackgroundTaskPersistence
Parameters:
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the number of matching background tasks

findByG_N_T

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

Specified by:
findByG_N_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
Returns:
the matching background tasks

findByG_N_T

public 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 = ?.

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.

Specified by:
findByG_N_T in interface BackgroundTaskPersistence
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

findByG_N_T

public List<BackgroundTask> findByG_N_T(long groupId,
                                        String name,
                                        String taskExecutorClassName,
                                        int start,
                                        int end,
                                        OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_N_T in interface BackgroundTaskPersistence
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

findByG_N_T_First

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

Specified by:
findByG_N_T_First in interface BackgroundTaskPersistence
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

fetchByG_N_T_First

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

Specified by:
fetchByG_N_T_First in interface BackgroundTaskPersistence
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

findByG_N_T_Last

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

Specified by:
findByG_N_T_Last in interface BackgroundTaskPersistence
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

fetchByG_N_T_Last

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

Specified by:
fetchByG_N_T_Last in interface BackgroundTaskPersistence
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

findByG_N_T_PrevAndNext

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

Specified by:
findByG_N_T_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_N_T_PrevAndNext

protected BackgroundTask getByG_N_T_PrevAndNext(Session session,
                                                BackgroundTask backgroundTask,
                                                long groupId,
                                                String name,
                                                String taskExecutorClassName,
                                                OrderByComparator<BackgroundTask> orderByComparator,
                                                boolean previous)

removeByG_N_T

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

Specified by:
removeByG_N_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name

countByG_N_T

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

Specified by:
countByG_N_T in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
Returns:
the number of matching background tasks

findByG_T_C

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

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the matching background tasks

findByG_T_C

public 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 = ?.

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.

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
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

findByG_T_C

public List<BackgroundTask> findByG_T_C(long groupId,
                                        String taskExecutorClassName,
                                        boolean completed,
                                        int start,
                                        int end,
                                        OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
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

findByG_T_C_First

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

Specified by:
findByG_T_C_First in interface BackgroundTaskPersistence
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

fetchByG_T_C_First

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

Specified by:
fetchByG_T_C_First in interface BackgroundTaskPersistence
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

findByG_T_C_Last

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

Specified by:
findByG_T_C_Last in interface BackgroundTaskPersistence
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

fetchByG_T_C_Last

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

Specified by:
fetchByG_T_C_Last in interface BackgroundTaskPersistence
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

findByG_T_C_PrevAndNext

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

Specified by:
findByG_T_C_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_T_C_PrevAndNext

protected BackgroundTask getByG_T_C_PrevAndNext(Session session,
                                                BackgroundTask backgroundTask,
                                                long groupId,
                                                String taskExecutorClassName,
                                                boolean completed,
                                                OrderByComparator<BackgroundTask> orderByComparator,
                                                boolean previous)

findByG_T_C

public List<BackgroundTask> findByG_T_C(long groupId,
                                        String[] taskExecutorClassNames,
                                        boolean completed)
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.

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
Returns:
the matching background tasks

findByG_T_C

public 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 = ?.

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.

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
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

findByG_T_C

public List<BackgroundTask> findByG_T_C(long groupId,
                                        String[] taskExecutorClassNames,
                                        boolean completed,
                                        int start,
                                        int end,
                                        OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T_C in interface BackgroundTaskPersistence
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

removeByG_T_C

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

Specified by:
removeByG_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed

countByG_T_C

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

Specified by:
countByG_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the number of matching background tasks

countByG_T_C

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

Specified by:
countByG_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
completed - the completed
Returns:
the number of matching background tasks

findByG_T_S

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

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
Returns:
the matching background tasks

findByG_T_S

public 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 = ?.

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.

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
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

findByG_T_S

public List<BackgroundTask> findByG_T_S(long groupId,
                                        String taskExecutorClassName,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
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

findByG_T_S_First

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

Specified by:
findByG_T_S_First in interface BackgroundTaskPersistence
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

fetchByG_T_S_First

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

Specified by:
fetchByG_T_S_First in interface BackgroundTaskPersistence
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

findByG_T_S_Last

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

Specified by:
findByG_T_S_Last in interface BackgroundTaskPersistence
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

fetchByG_T_S_Last

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

Specified by:
fetchByG_T_S_Last in interface BackgroundTaskPersistence
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

findByG_T_S_PrevAndNext

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

Specified by:
findByG_T_S_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_T_S_PrevAndNext

protected BackgroundTask getByG_T_S_PrevAndNext(Session session,
                                                BackgroundTask backgroundTask,
                                                long groupId,
                                                String taskExecutorClassName,
                                                int status,
                                                OrderByComparator<BackgroundTask> orderByComparator,
                                                boolean previous)

findByG_T_S

public List<BackgroundTask> findByG_T_S(long groupId,
                                        String[] taskExecutorClassNames,
                                        int status)
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.

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the matching background tasks

findByG_T_S

public 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 = ?.

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.

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
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

findByG_T_S

public List<BackgroundTask> findByG_T_S(long groupId,
                                        String[] taskExecutorClassNames,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_T_S in interface BackgroundTaskPersistence
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

removeByG_T_S

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

Specified by:
removeByG_T_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status

countByG_T_S

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

Specified by:
countByG_T_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassName - the task executor class name
status - the status
Returns:
the number of matching background tasks

countByG_T_S

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

Specified by:
countByG_T_S in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
taskExecutorClassNames - the task executor class names
status - the status
Returns:
the number of matching background tasks

findByG_N_T_C

public 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 = ?.

Specified by:
findByG_N_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the matching background tasks

findByG_N_T_C

public 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 = ?.

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.

Specified by:
findByG_N_T_C in interface BackgroundTaskPersistence
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

findByG_N_T_C

public List<BackgroundTask> findByG_N_T_C(long groupId,
                                          String name,
                                          String taskExecutorClassName,
                                          boolean completed,
                                          int start,
                                          int end,
                                          OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findByG_N_T_C in interface BackgroundTaskPersistence
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

findByG_N_T_C_First

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

Specified by:
findByG_N_T_C_First in interface BackgroundTaskPersistence
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

fetchByG_N_T_C_First

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

Specified by:
fetchByG_N_T_C_First in interface BackgroundTaskPersistence
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

findByG_N_T_C_Last

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

Specified by:
findByG_N_T_C_Last in interface BackgroundTaskPersistence
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

fetchByG_N_T_C_Last

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

Specified by:
fetchByG_N_T_C_Last in interface BackgroundTaskPersistence
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

findByG_N_T_C_PrevAndNext

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

Specified by:
findByG_N_T_C_PrevAndNext in interface BackgroundTaskPersistence
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

getByG_N_T_C_PrevAndNext

protected BackgroundTask getByG_N_T_C_PrevAndNext(Session session,
                                                  BackgroundTask backgroundTask,
                                                  long groupId,
                                                  String name,
                                                  String taskExecutorClassName,
                                                  boolean completed,
                                                  OrderByComparator<BackgroundTask> orderByComparator,
                                                  boolean previous)

removeByG_N_T_C

public 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.

Specified by:
removeByG_N_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed

countByG_N_T_C

public 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 = ?.

Specified by:
countByG_N_T_C in interface BackgroundTaskPersistence
Parameters:
groupId - the group ID
name - the name
taskExecutorClassName - the task executor class name
completed - the completed
Returns:
the number of matching background tasks

cacheResult

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

Specified by:
cacheResult in interface BackgroundTaskPersistence
Parameters:
backgroundTask - the background task

cacheResult

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

Specified by:
cacheResult in interface BackgroundTaskPersistence
Parameters:
backgroundTasks - the background tasks

clearCache

public void clearCache()
Clears the cache for all background tasks.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<BackgroundTask>
Overrides:
clearCache in class BasePersistenceImpl<BackgroundTask>

clearCache

public void clearCache(BackgroundTask backgroundTask)
Clears the cache for the background task.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<BackgroundTask>
Overrides:
clearCache in class BasePersistenceImpl<BackgroundTask>
Parameters:
backgroundTask - the instance of this model to clear the cache for

clearCache

public void clearCache(List<BackgroundTask> backgroundTasks)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<BackgroundTask>
Overrides:
clearCache in class BasePersistenceImpl<BackgroundTask>
Parameters:
backgroundTasks - the List instances of this model to clear the cache for

create

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

Specified by:
create in interface BackgroundTaskPersistence
Parameters:
backgroundTaskId - the primary key for the new background task
Returns:
the new background task

remove

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

Specified by:
remove in interface BackgroundTaskPersistence
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

remove

public BackgroundTask remove(Serializable primaryKey)
                      throws NoSuchBackgroundTaskException
Removes the background task with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<BackgroundTask>
Overrides:
remove in class BasePersistenceImpl<BackgroundTask>
Parameters:
primaryKey - 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

removeImpl

protected BackgroundTask removeImpl(BackgroundTask backgroundTask)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<BackgroundTask>
Parameters:
backgroundTask - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public BackgroundTask updateImpl(BackgroundTask backgroundTask)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface BackgroundTaskPersistence
Overrides:
updateImpl in class BasePersistenceImpl<BackgroundTask>
Parameters:
backgroundTask - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected BackgroundTask toUnwrappedModel(BackgroundTask backgroundTask)

findByPrimaryKey

public BackgroundTask findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchBackgroundTaskException
Returns the background task with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<BackgroundTask>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<BackgroundTask>
Parameters:
primaryKey - 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

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface BackgroundTaskPersistence
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

fetchByPrimaryKey

public BackgroundTask fetchByPrimaryKey(Serializable primaryKey)
Returns the background task with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<BackgroundTask>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<BackgroundTask>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface BackgroundTaskPersistence
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

fetchByPrimaryKeys

public Map<Serializable,BackgroundTask> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BackgroundTaskPersistence
Specified by:
fetchByPrimaryKeys in interface BasePersistence<BackgroundTask>
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<BackgroundTask>

findAll

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

Specified by:
findAll in interface BackgroundTaskPersistence
Returns:
the background tasks

findAll

public List<BackgroundTask> findAll(int start,
                                    int end)
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.

Specified by:
findAll in interface BackgroundTaskPersistence
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

findAll

public List<BackgroundTask> findAll(int start,
                                    int end,
                                    OrderByComparator<BackgroundTask> orderByComparator)
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.

Specified by:
findAll in interface BackgroundTaskPersistence
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

removeAll

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

Specified by:
removeAll in interface BackgroundTaskPersistence

countAll

public int countAll()
Returns the number of background tasks.

Specified by:
countAll in interface BackgroundTaskPersistence
Returns:
the number of background tasks

afterPropertiesSet

public void afterPropertiesSet()
Initializes the background task persistence.


destroy

public void destroy()

Liferay 7.0-ce-m6