java.lang.Object
com.liferay.portal.workflow.kaleo.forms.service.persistence.KaleoProcessLinkUtil

public class KaleoProcessLinkUtil extends Object
The persistence utility for the kaleo process link service. This utility wraps com.liferay.portal.workflow.kaleo.forms.service.persistence.impl.KaleoProcessLinkPersistenceImpl 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

    • KaleoProcessLinkUtil

      public KaleoProcessLinkUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(KaleoProcessLink kaleoProcessLink)
      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,KaleoProcessLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static KaleoProcessLink update(KaleoProcessLink kaleoProcessLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByKaleoProcessId

      public static List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId)
      Returns all the kaleo process links where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      Returns:
      the matching kaleo process links
    • findByKaleoProcessId

      public static List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end)
      Returns a range of all the kaleo process links where kaleoProcessId = ?.

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

      Parameters:
      kaleoProcessId - the kaleo process ID
      start - the lower bound of the range of kaleo process links
      end - the upper bound of the range of kaleo process links (not inclusive)
      Returns:
      the range of matching kaleo process links
    • findByKaleoProcessId

      public static List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
      Returns an ordered range of all the kaleo process links where kaleoProcessId = ?.

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

      Parameters:
      kaleoProcessId - the kaleo process ID
      start - the lower bound of the range of kaleo process links
      end - the upper bound of the range of kaleo process links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo process links
    • findByKaleoProcessId

      public static List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo process links where kaleoProcessId = ?.

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

      Parameters:
      kaleoProcessId - the kaleo process ID
      start - the lower bound of the range of kaleo process links
      end - the upper bound of the range of kaleo process links (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 process links
    • findByKaleoProcessId_First

      public static KaleoProcessLink findByKaleoProcessId_First(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
      Returns the first kaleo process link in the ordered set where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo process link
      Throws:
      NoSuchKaleoProcessLinkException - if a matching kaleo process link could not be found
      NoSuchKaleoProcessLinkException
    • fetchByKaleoProcessId_First

      public static KaleoProcessLink fetchByKaleoProcessId_First(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
      Returns the first kaleo process link in the ordered set where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo process link, or null if a matching kaleo process link could not be found
    • findByKaleoProcessId_Last

      public static KaleoProcessLink findByKaleoProcessId_Last(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
      Returns the last kaleo process link in the ordered set where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo process link
      Throws:
      NoSuchKaleoProcessLinkException - if a matching kaleo process link could not be found
      NoSuchKaleoProcessLinkException
    • fetchByKaleoProcessId_Last

      public static KaleoProcessLink fetchByKaleoProcessId_Last(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
      Returns the last kaleo process link in the ordered set where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo process link, or null if a matching kaleo process link could not be found
    • findByKaleoProcessId_PrevAndNext

      public static KaleoProcessLink[] findByKaleoProcessId_PrevAndNext(long kaleoProcessLinkId, long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
      Returns the kaleo process links before and after the current kaleo process link in the ordered set where kaleoProcessId = ?.
      Parameters:
      kaleoProcessLinkId - the primary key of the current kaleo process link
      kaleoProcessId - the kaleo process ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo process link
      Throws:
      NoSuchKaleoProcessLinkException - if a kaleo process link with the primary key could not be found
      NoSuchKaleoProcessLinkException
    • removeByKaleoProcessId

      public static void removeByKaleoProcessId(long kaleoProcessId)
      Removes all the kaleo process links where kaleoProcessId = ? from the database.
      Parameters:
      kaleoProcessId - the kaleo process ID
    • countByKaleoProcessId

      public static int countByKaleoProcessId(long kaleoProcessId)
      Returns the number of kaleo process links where kaleoProcessId = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      Returns:
      the number of matching kaleo process links
    • findByKPI_WTN

      public static KaleoProcessLink findByKPI_WTN(long kaleoProcessId, String workflowTaskName) throws NoSuchKaleoProcessLinkException
      Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or throws a NoSuchKaleoProcessLinkException if it could not be found.
      Parameters:
      kaleoProcessId - the kaleo process ID
      workflowTaskName - the workflow task name
      Returns:
      the matching kaleo process link
      Throws:
      NoSuchKaleoProcessLinkException - if a matching kaleo process link could not be found
      NoSuchKaleoProcessLinkException
    • fetchByKPI_WTN

      public static KaleoProcessLink fetchByKPI_WTN(long kaleoProcessId, String workflowTaskName)
      Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      kaleoProcessId - the kaleo process ID
      workflowTaskName - the workflow task name
      Returns:
      the matching kaleo process link, or null if a matching kaleo process link could not be found
    • fetchByKPI_WTN

      public static KaleoProcessLink fetchByKPI_WTN(long kaleoProcessId, String workflowTaskName, boolean useFinderCache)
      Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      kaleoProcessId - the kaleo process ID
      workflowTaskName - the workflow task name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kaleo process link, or null if a matching kaleo process link could not be found
    • removeByKPI_WTN

      public static KaleoProcessLink removeByKPI_WTN(long kaleoProcessId, String workflowTaskName) throws NoSuchKaleoProcessLinkException
      Removes the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? from the database.
      Parameters:
      kaleoProcessId - the kaleo process ID
      workflowTaskName - the workflow task name
      Returns:
      the kaleo process link that was removed
      Throws:
      NoSuchKaleoProcessLinkException
    • countByKPI_WTN

      public static int countByKPI_WTN(long kaleoProcessId, String workflowTaskName)
      Returns the number of kaleo process links where kaleoProcessId = ? and workflowTaskName = ?.
      Parameters:
      kaleoProcessId - the kaleo process ID
      workflowTaskName - the workflow task name
      Returns:
      the number of matching kaleo process links
    • cacheResult

      public static void cacheResult(KaleoProcessLink kaleoProcessLink)
      Caches the kaleo process link in the entity cache if it is enabled.
      Parameters:
      kaleoProcessLink - the kaleo process link
    • cacheResult

      public static void cacheResult(List<KaleoProcessLink> kaleoProcessLinks)
      Caches the kaleo process links in the entity cache if it is enabled.
      Parameters:
      kaleoProcessLinks - the kaleo process links
    • create

      public static KaleoProcessLink create(long kaleoProcessLinkId)
      Creates a new kaleo process link with the primary key. Does not add the kaleo process link to the database.
      Parameters:
      kaleoProcessLinkId - the primary key for the new kaleo process link
      Returns:
      the new kaleo process link
    • remove

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

      public static KaleoProcessLink updateImpl(KaleoProcessLink kaleoProcessLink)
    • findByPrimaryKey

      public static KaleoProcessLink findByPrimaryKey(long kaleoProcessLinkId) throws NoSuchKaleoProcessLinkException
      Returns the kaleo process link with the primary key or throws a NoSuchKaleoProcessLinkException if it could not be found.
      Parameters:
      kaleoProcessLinkId - the primary key of the kaleo process link
      Returns:
      the kaleo process link
      Throws:
      NoSuchKaleoProcessLinkException - if a kaleo process link with the primary key could not be found
      NoSuchKaleoProcessLinkException
    • fetchByPrimaryKey

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

      public static List<KaleoProcessLink> findAll()
      Returns all the kaleo process links.
      Returns:
      the kaleo process links
    • findAll

      public static List<KaleoProcessLink> findAll(int start, int end)
      Returns a range of all the kaleo process links.

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

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

      public static List<KaleoProcessLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
      Returns an ordered range of all the kaleo process links.

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

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

      public static List<KaleoProcessLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo process links.

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

      Parameters:
      start - the lower bound of the range of kaleo process links
      end - the upper bound of the range of kaleo process links (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 process links
    • removeAll

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

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

      public static KaleoProcessLinkPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoProcessLinkPersistence persistence)