java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.KaleoTaskUtil

public class KaleoTaskUtil extends Object
The persistence utility for the kaleo task service. This utility wraps com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTaskPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • KaleoTaskUtil

      public KaleoTaskUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(KaleoTask kaleoTask)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,KaleoTask> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static KaleoTask update(KaleoTask kaleoTask)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static KaleoTask update(KaleoTask kaleoTask, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCompanyId

      public static List<KaleoTask> findByCompanyId(long companyId)
      Returns all the kaleo tasks where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching kaleo tasks
    • findByCompanyId

      public static List<KaleoTask> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      Returns:
      the range of matching kaleo tasks
    • findByCompanyId

      public static List<KaleoTask> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns an ordered range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo tasks
    • findByCompanyId

      public static List<KaleoTask> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kaleo tasks
    • findByCompanyId_First

      public static KaleoTask findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the first kaleo task in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo task
      Throws:
      NoSuchTaskException - if a matching kaleo task could not be found
      NoSuchTaskException
    • fetchByCompanyId_First

      public static KaleoTask fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns the first kaleo task in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo task, or null if a matching kaleo task could not be found
    • findByCompanyId_Last

      public static KaleoTask findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the last kaleo task in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo task
      Throws:
      NoSuchTaskException - if a matching kaleo task could not be found
      NoSuchTaskException
    • fetchByCompanyId_Last

      public static KaleoTask fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns the last kaleo task in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo task, or null if a matching kaleo task could not be found
    • findByCompanyId_PrevAndNext

      public static KaleoTask[] findByCompanyId_PrevAndNext(long kaleoTaskId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the kaleo tasks before and after the current kaleo task in the ordered set where companyId = ?.
      Parameters:
      kaleoTaskId - the primary key of the current kaleo task
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo task
      Throws:
      NoSuchTaskException - if a kaleo task with the primary key could not be found
      NoSuchTaskException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the kaleo tasks where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of kaleo tasks where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching kaleo tasks
    • findByKaleoDefinitionVersionId

      public static List<KaleoTask> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
      Returns all the kaleo tasks where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      Returns:
      the matching kaleo tasks
    • findByKaleoDefinitionVersionId

      public static List<KaleoTask> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end)
      Returns a range of all the kaleo tasks where kaleoDefinitionVersionId = ?.

      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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      Returns:
      the range of matching kaleo tasks
    • findByKaleoDefinitionVersionId

      public static List<KaleoTask> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns an ordered range of all the kaleo tasks where kaleoDefinitionVersionId = ?.

      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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo tasks
    • findByKaleoDefinitionVersionId

      public static List<KaleoTask> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo tasks where kaleoDefinitionVersionId = ?.

      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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kaleo tasks
    • findByKaleoDefinitionVersionId_First

      public static KaleoTask findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the first kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo task
      Throws:
      NoSuchTaskException - if a matching kaleo task could not be found
      NoSuchTaskException
    • fetchByKaleoDefinitionVersionId_First

      public static KaleoTask fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns the first kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo task, or null if a matching kaleo task could not be found
    • findByKaleoDefinitionVersionId_Last

      public static KaleoTask findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the last kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo task
      Throws:
      NoSuchTaskException - if a matching kaleo task could not be found
      NoSuchTaskException
    • fetchByKaleoDefinitionVersionId_Last

      public static KaleoTask fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns the last kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo task, or null if a matching kaleo task could not be found
    • findByKaleoDefinitionVersionId_PrevAndNext

      public static KaleoTask[] findByKaleoDefinitionVersionId_PrevAndNext(long kaleoTaskId, long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
      Returns the kaleo tasks before and after the current kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoTaskId - the primary key of the current kaleo task
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo task
      Throws:
      NoSuchTaskException - if a kaleo task with the primary key could not be found
      NoSuchTaskException
    • removeByKaleoDefinitionVersionId

      public static void removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
      Removes all the kaleo tasks where kaleoDefinitionVersionId = ? from the database.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
    • countByKaleoDefinitionVersionId

      public static int countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
      Returns the number of kaleo tasks where kaleoDefinitionVersionId = ?.
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      Returns:
      the number of matching kaleo tasks
    • findByKaleoNodeId

      public static KaleoTask findByKaleoNodeId(long kaleoNodeId) throws NoSuchTaskException
      Returns the kaleo task where kaleoNodeId = ? or throws a NoSuchTaskException if it could not be found.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the matching kaleo task
      Throws:
      NoSuchTaskException - if a matching kaleo task could not be found
      NoSuchTaskException
    • fetchByKaleoNodeId

      public static KaleoTask fetchByKaleoNodeId(long kaleoNodeId)
      Returns the kaleo task where kaleoNodeId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the matching kaleo task, or null if a matching kaleo task could not be found
    • fetchByKaleoNodeId

      public static KaleoTask fetchByKaleoNodeId(long kaleoNodeId, boolean useFinderCache)
      Returns the kaleo task where kaleoNodeId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      kaleoNodeId - the kaleo node ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kaleo task, or null if a matching kaleo task could not be found
    • removeByKaleoNodeId

      public static KaleoTask removeByKaleoNodeId(long kaleoNodeId) throws NoSuchTaskException
      Removes the kaleo task where kaleoNodeId = ? from the database.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the kaleo task that was removed
      Throws:
      NoSuchTaskException
    • countByKaleoNodeId

      public static int countByKaleoNodeId(long kaleoNodeId)
      Returns the number of kaleo tasks where kaleoNodeId = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the number of matching kaleo tasks
    • cacheResult

      public static void cacheResult(KaleoTask kaleoTask)
      Caches the kaleo task in the entity cache if it is enabled.
      Parameters:
      kaleoTask - the kaleo task
    • cacheResult

      public static void cacheResult(List<KaleoTask> kaleoTasks)
      Caches the kaleo tasks in the entity cache if it is enabled.
      Parameters:
      kaleoTasks - the kaleo tasks
    • create

      public static KaleoTask create(long kaleoTaskId)
      Creates a new kaleo task with the primary key. Does not add the kaleo task to the database.
      Parameters:
      kaleoTaskId - the primary key for the new kaleo task
      Returns:
      the new kaleo task
    • remove

      public static KaleoTask remove(long kaleoTaskId) throws NoSuchTaskException
      Removes the kaleo task with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kaleoTaskId - the primary key of the kaleo task
      Returns:
      the kaleo task that was removed
      Throws:
      NoSuchTaskException - if a kaleo task with the primary key could not be found
      NoSuchTaskException
    • updateImpl

      public static KaleoTask updateImpl(KaleoTask kaleoTask)
    • findByPrimaryKey

      public static KaleoTask findByPrimaryKey(long kaleoTaskId) throws NoSuchTaskException
      Returns the kaleo task with the primary key or throws a NoSuchTaskException if it could not be found.
      Parameters:
      kaleoTaskId - the primary key of the kaleo task
      Returns:
      the kaleo task
      Throws:
      NoSuchTaskException - if a kaleo task with the primary key could not be found
      NoSuchTaskException
    • fetchByPrimaryKey

      public static KaleoTask fetchByPrimaryKey(long kaleoTaskId)
      Returns the kaleo task with the primary key or returns null if it could not be found.
      Parameters:
      kaleoTaskId - the primary key of the kaleo task
      Returns:
      the kaleo task, or null if a kaleo task with the primary key could not be found
    • findAll

      public static List<KaleoTask> findAll()
      Returns all the kaleo tasks.
      Returns:
      the kaleo tasks
    • findAll

      public static List<KaleoTask> findAll(int start, int end)
      Returns a range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      Returns:
      the range of kaleo tasks
    • findAll

      public static List<KaleoTask> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
      Returns an ordered range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of kaleo tasks
    • findAll

      public static List<KaleoTask> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo tasks
      end - the upper bound of the range of kaleo tasks (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of kaleo tasks
    • removeAll

      public static void removeAll()
      Removes all the kaleo tasks from the database.
    • countAll

      public static int countAll()
      Returns the number of kaleo tasks.
      Returns:
      the number of kaleo tasks
    • getPersistence

      public static KaleoTaskPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoTaskPersistence persistence)