Class WorkflowInstanceLinkUtil

Object
com.liferay.portal.kernel.service.persistence.WorkflowInstanceLinkUtil

public class WorkflowInstanceLinkUtil extends Object
The persistence utility for the workflow instance link service. This utility wraps com.liferay.portal.service.persistence.impl.WorkflowInstanceLinkPersistenceImpl 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

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • WorkflowInstanceLinkUtil

      public WorkflowInstanceLinkUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(WorkflowInstanceLink workflowInstanceLink)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

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

      public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      See Also:
    • update

      public static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink)
      See Also:
    • update

      public static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, ServiceContext serviceContext)
      See Also:
    • findByG_C_C

      public static List<WorkflowInstanceLink> findByG_C_C(long groupId, long companyId, long classNameId)
      Returns all the workflow instance links where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the matching workflow instance links
    • findByG_C_C

      public static List<WorkflowInstanceLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end)
      Returns a range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance links (not inclusive)
      Returns:
      the range of matching workflow instance links
    • findByG_C_C

      public static List<WorkflowInstanceLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching workflow instance links
    • findByG_C_C

      public static List<WorkflowInstanceLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance 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 workflow instance links
    • findByG_C_C_First

      public static WorkflowInstanceLink findByG_C_C_First(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
      NoSuchWorkflowInstanceLinkException
    • fetchByG_C_C_First

      public static WorkflowInstanceLink fetchByG_C_C_First(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching workflow instance link, or null if a matching workflow instance link could not be found
    • findByG_C_C_Last

      public static WorkflowInstanceLink findByG_C_C_Last(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
      NoSuchWorkflowInstanceLinkException
    • fetchByG_C_C_Last

      public static WorkflowInstanceLink fetchByG_C_C_Last(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching workflow instance link, or null if a matching workflow instance link could not be found
    • findByG_C_C_PrevAndNext

      public static WorkflowInstanceLink[] findByG_C_C_PrevAndNext(long workflowInstanceLinkId, long groupId, long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the workflow instance links before and after the current workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      workflowInstanceLinkId - the primary key of the current workflow instance link
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
      NoSuchWorkflowInstanceLinkException
    • removeByG_C_C

      public static void removeByG_C_C(long groupId, long companyId, long classNameId)
      Removes all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? from the database.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
    • countByG_C_C

      public static int countByG_C_C(long groupId, long companyId, long classNameId)
      Returns the number of workflow instance links where groupId = ? and companyId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the number of matching workflow instance links
    • findByG_C_C_C

      public static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
      Returns all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching workflow instance links
    • findByG_C_C_C

      public static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK, int start, int end)
      Returns a range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance links (not inclusive)
      Returns:
      the range of matching workflow instance links
    • findByG_C_C_C

      public static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching workflow instance links
    • findByG_C_C_C

      public static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of workflow instance links
      end - the upper bound of the range of workflow instance 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 workflow instance links
    • findByG_C_C_C_First

      public static WorkflowInstanceLink findByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
      NoSuchWorkflowInstanceLinkException
    • fetchByG_C_C_C_First

      public static WorkflowInstanceLink fetchByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching workflow instance link, or null if a matching workflow instance link could not be found
    • findByG_C_C_C_Last

      public static WorkflowInstanceLink findByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
      NoSuchWorkflowInstanceLinkException
    • fetchByG_C_C_C_Last

      public static WorkflowInstanceLink fetchByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching workflow instance link, or null if a matching workflow instance link could not be found
    • findByG_C_C_C_PrevAndNext

      public static WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(long workflowInstanceLinkId, long groupId, long companyId, long classNameId, long classPK, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException
      Returns the workflow instance links before and after the current workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      workflowInstanceLinkId - the primary key of the current workflow instance link
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
      NoSuchWorkflowInstanceLinkException
    • removeByG_C_C_C

      public static void removeByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
      Removes all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
    • countByG_C_C_C

      public static int countByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
      Returns the number of workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      companyId - the company ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching workflow instance links
    • cacheResult

      public static void cacheResult(WorkflowInstanceLink workflowInstanceLink)
      Caches the workflow instance link in the entity cache if it is enabled.
      Parameters:
      workflowInstanceLink - the workflow instance link
    • cacheResult

      public static void cacheResult(List<WorkflowInstanceLink> workflowInstanceLinks)
      Caches the workflow instance links in the entity cache if it is enabled.
      Parameters:
      workflowInstanceLinks - the workflow instance links
    • create

      public static WorkflowInstanceLink create(long workflowInstanceLinkId)
      Creates a new workflow instance link with the primary key. Does not add the workflow instance link to the database.
      Parameters:
      workflowInstanceLinkId - the primary key for the new workflow instance link
      Returns:
      the new workflow instance link
    • remove

      public static WorkflowInstanceLink remove(long workflowInstanceLinkId) throws NoSuchWorkflowInstanceLinkException
      Removes the workflow instance link with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      workflowInstanceLinkId - the primary key of the workflow instance link
      Returns:
      the workflow instance link that was removed
      Throws:
      NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
      NoSuchWorkflowInstanceLinkException
    • updateImpl

      public static WorkflowInstanceLink updateImpl(WorkflowInstanceLink workflowInstanceLink)
    • findByPrimaryKey

      public static WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId) throws NoSuchWorkflowInstanceLinkException
      Returns the workflow instance link with the primary key or throws a NoSuchWorkflowInstanceLinkException if it could not be found.
      Parameters:
      workflowInstanceLinkId - the primary key of the workflow instance link
      Returns:
      the workflow instance link
      Throws:
      NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
      NoSuchWorkflowInstanceLinkException
    • fetchByPrimaryKey

      public static WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId)
      Returns the workflow instance link with the primary key or returns null if it could not be found.
      Parameters:
      workflowInstanceLinkId - the primary key of the workflow instance link
      Returns:
      the workflow instance link, or null if a workflow instance link with the primary key could not be found
    • findAll

      public static List<WorkflowInstanceLink> findAll()
      Returns all the workflow instance links.
      Returns:
      the workflow instance links
    • findAll

      public static List<WorkflowInstanceLink> findAll(int start, int end)
      Returns a range of all the workflow instance 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 WorkflowInstanceLinkModelImpl.

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

      public static List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator)
      Returns an ordered range of all the workflow instance 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 WorkflowInstanceLinkModelImpl.

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

      public static List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the workflow instance 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 WorkflowInstanceLinkModelImpl.

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

      public static void removeAll()
      Removes all the workflow instance links from the database.
    • countAll

      public static int countAll()
      Returns the number of workflow instance links.
      Returns:
      the number of workflow instance links
    • getPersistence

      public static WorkflowInstanceLinkPersistence getPersistence()
    • setPersistence

      public static void setPersistence(WorkflowInstanceLinkPersistence persistence)