Class WorkflowInstanceLinkUtil
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(WorkflowInstanceLink workflowInstanceLink) Caches the workflow instance link in the entity cache if it is enabled.static voidcacheResult(List<WorkflowInstanceLink> workflowInstanceLinks) Caches the workflow instance links in the entity cache if it is enabled.static voidstatic voidclearCache(WorkflowInstanceLink workflowInstanceLink) static intcountAll()Returns the number of workflow instance links.static intcountByC_C(long companyId, long classNameId) Returns the number of workflow instance links where companyId = ? and classNameId = ?.static intcountByG_C_C(long groupId, long companyId, long classNameId) Returns the number of workflow instance links where groupId = ? and companyId = ? and classNameId = ?.static intcountByG_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 = ?.static intcountByWorkflowInstanceId(long workflowInstanceId) Returns the number of workflow instance links where workflowInstanceId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static WorkflowInstanceLinkcreate(long workflowInstanceLinkId) Creates a new workflow instance link with the primary key.static WorkflowInstanceLinkfetchByC_C_First(long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns the first workflow instance link in the ordered set where companyId = ? and classNameId = ?.static WorkflowInstanceLinkfetchByG_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 = ?.static WorkflowInstanceLinkfetchByG_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 = ?.static WorkflowInstanceLinkfetchByPrimaryKey(long workflowInstanceLinkId) Returns the workflow instance link with the primary key or returnsnullif it could not be found.static Map<Serializable, WorkflowInstanceLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static WorkflowInstanceLinkfetchByWorkflowInstanceId(long workflowInstanceId) Returns the workflow instance link where workflowInstanceId = ? or returnsnullif it could not be found.static WorkflowInstanceLinkfetchByWorkflowInstanceId(long workflowInstanceId, boolean useFinderCache) Returns the workflow instance link where workflowInstanceId = ? or returnsnullif it could not be found, optionally using the finder cache.static List<WorkflowInstanceLink> findAll()Returns all the workflow instance links.static List<WorkflowInstanceLink> findAll(int start, int end) Returns a range of all the workflow instance links.static List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns an ordered range of all the workflow instance links.static List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the workflow instance links.static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId) Returns all the workflow instance links where companyId = ? and classNameId = ?.static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end) Returns a range of all the workflow instance links where companyId = ? and classNameId = ?.static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns an ordered range of all the workflow instance links where companyId = ? and classNameId = ?.static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the workflow instance links where companyId = ? and classNameId = ?.static WorkflowInstanceLinkfindByC_C_First(long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns the first workflow instance link in the ordered set where companyId = ? and classNameId = ?.static List<WorkflowInstanceLink> findByG_C_C(long groupId, long companyId, long classNameId) Returns all the workflow instance links where groupId = ? and companyId = ? and classNameId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.static WorkflowInstanceLinkfindByG_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 = ?.static WorkflowInstanceLinkfindByG_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 = ?.static WorkflowInstanceLinkfindByPrimaryKey(long workflowInstanceLinkId) Returns the workflow instance link with the primary key or throws aNoSuchWorkflowInstanceLinkExceptionif it could not be found.static WorkflowInstanceLinkfindByWorkflowInstanceId(long workflowInstanceId) Returns the workflow instance link where workflowInstanceId = ? or throws aNoSuchWorkflowInstanceLinkExceptionif it could not be found.static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery) static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator) static WorkflowInstanceLinkremove(long workflowInstanceLinkId) Removes the workflow instance link with the primary key from the database.static voidRemoves all the workflow instance links from the database.static voidremoveByC_C(long companyId, long classNameId) Removes all the workflow instance links where companyId = ? and classNameId = ? from the database.static voidremoveByG_C_C(long groupId, long companyId, long classNameId) Removes all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? from the database.static voidremoveByG_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.static WorkflowInstanceLinkremoveByWorkflowInstanceId(long workflowInstanceId) Removes the workflow instance link where workflowInstanceId = ? from the database.static voidsetPersistence(WorkflowInstanceLinkPersistence persistence) static WorkflowInstanceLinkupdate(WorkflowInstanceLink workflowInstanceLink) static WorkflowInstanceLinkupdate(WorkflowInstanceLink workflowInstanceLink, ServiceContext serviceContext) static WorkflowInstanceLinkupdateImpl(WorkflowInstanceLink workflowInstanceLink)
-
Constructor Details
-
WorkflowInstanceLinkUtil
public WorkflowInstanceLinkUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
- See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,WorkflowInstanceLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
- 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
- See Also:
-
update
public static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, ServiceContext serviceContext) - See Also:
-
findByWorkflowInstanceId
public static WorkflowInstanceLink findByWorkflowInstanceId(long workflowInstanceId) throws NoSuchWorkflowInstanceLinkException Returns the workflow instance link where workflowInstanceId = ? or throws aNoSuchWorkflowInstanceLinkExceptionif it could not be found.- Parameters:
workflowInstanceId- the workflow instance ID- Returns:
- the matching workflow instance link
-
fetchByWorkflowInstanceId
Returns the workflow instance link where workflowInstanceId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
workflowInstanceId- the workflow instance ID- Returns:
- the matching workflow instance link, or
nullif a matching workflow instance link could not be found
-
fetchByWorkflowInstanceId
public static WorkflowInstanceLink fetchByWorkflowInstanceId(long workflowInstanceId, boolean useFinderCache) Returns the workflow instance link where workflowInstanceId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
workflowInstanceId- the workflow instance IDuseFinderCache- whether to use the finder cache- Returns:
- the matching workflow instance link, or
nullif a matching workflow instance link could not be found
-
removeByWorkflowInstanceId
public static WorkflowInstanceLink removeByWorkflowInstanceId(long workflowInstanceId) throws NoSuchWorkflowInstanceLinkException Removes the workflow instance link where workflowInstanceId = ? from the database.- Parameters:
workflowInstanceId- the workflow instance ID- Returns:
- the workflow instance link that was removed
- Throws:
NoSuchWorkflowInstanceLinkException
-
countByWorkflowInstanceId
public static int countByWorkflowInstanceId(long workflowInstanceId) Returns the number of workflow instance links where workflowInstanceId = ?.- Parameters:
workflowInstanceId- the workflow instance ID- Returns:
- the number of matching workflow instance links
-
findByC_C
Returns all the workflow instance links where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the matching workflow instance links
-
findByC_C
public static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end) Returns a range of all the workflow instance links where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)- Returns:
- the range of matching workflow instance links
-
findByC_C
public static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns an ordered range of all the workflow instance links where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching workflow instance links
-
findByC_C
public static List<WorkflowInstanceLink> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowInstanceLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the workflow instance links where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching workflow instance links
-
findByC_C_First
public static WorkflowInstanceLink findByC_C_First(long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) throws NoSuchWorkflowInstanceLinkException Returns the first workflow instance link in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link
-
fetchByC_C_First
public static WorkflowInstanceLink fetchByC_C_First(long companyId, long classNameId, OrderByComparator<WorkflowInstanceLink> orderByComparator) Returns the first workflow instance link in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link, or
nullif a matching workflow instance link could not be found
-
removeByC_C
public static void removeByC_C(long companyId, long classNameId) Removes all the workflow instance links where companyId = ? and classNameId = ? from the database.- Parameters:
companyId- the company IDclassNameId- the class name ID
-
countByC_C
public static int countByC_C(long companyId, long classNameId) Returns the number of workflow instance links where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the number of matching workflow instance links
-
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 IDcompanyId- the company IDclassNameId- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDcompanyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link
-
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 IDcompanyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link, or
nullif a matching workflow instance link could not be found
-
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 IDcompanyId- the company IDclassNameId- 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 IDcompanyId- the company IDclassNameId- 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 IDcompanyId- the company IDclassNameId- the class name IDclassPK- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of workflow instance linksend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
groupId- the group IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pkstart- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link
-
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 IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching workflow instance link, or
nullif a matching workflow instance link could not be found
-
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 IDcompanyId- the company IDclassNameId- the class name IDclassPK- 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 IDcompanyId- the company IDclassNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching workflow instance links
-
cacheResult
Caches the workflow instance link in the entity cache if it is enabled.- Parameters:
workflowInstanceLink- the workflow instance link
-
cacheResult
Caches the workflow instance links in the entity cache if it is enabled.- Parameters:
workflowInstanceLinks- the workflow instance links
-
create
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
-
updateImpl
-
findByPrimaryKey
public static WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId) throws NoSuchWorkflowInstanceLinkException Returns the workflow instance link with the primary key or throws aNoSuchWorkflowInstanceLinkExceptionif it could not be found.- Parameters:
workflowInstanceLinkId- the primary key of the workflow instance link- Returns:
- the workflow instance link
-
fetchByPrimaryKey
Returns the workflow instance link with the primary key or returnsnullif it could not be found.- Parameters:
workflowInstanceLinkId- the primary key of the workflow instance link- Returns:
- the workflow instance link, or
nullif a workflow instance link with the primary key could not be found
-
findAll
Returns all the workflow instance links.- Returns:
- the workflow instance links
-
findAll
Returns a range of all the workflow instance links.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
start- the lower bound of the range of workflow instance linksend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
start- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WorkflowInstanceLinkModelImpl.- Parameters:
start- the lower bound of the range of workflow instance linksend- the upper bound of the range of workflow instance links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-