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

    • cacheResult

      public static void cacheResult(List<KaleoTask> kaleoTasks)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(KaleoTask kaleoTask)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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
    • 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
    • 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, 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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
    • 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.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
    • getPersistence

      public static KaleoTaskPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoTaskPersistence persistence)