Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Interface WorkflowDefinitionLinkPersistence

All Superinterfaces:
BasePersistence<WorkflowDefinitionLink>
All Known Implementing Classes:
WorkflowDefinitionLinkPersistenceImpl

@ProviderType
public interface WorkflowDefinitionLinkPersistence
extends BasePersistence<WorkflowDefinitionLink>

The persistence interface for the workflow definition link service.

Caching information and settings can be found in portal.properties

See Also:
WorkflowDefinitionLinkPersistenceImpl, WorkflowDefinitionLinkUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
          Caches the workflow definition links in the entity cache if it is enabled.
 void cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
          Caches the workflow definition link in the entity cache if it is enabled.
 int countAll()
          Returns the number of workflow definition links.
 int countByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion)
          Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 int countByCompanyId(long companyId)
          Returns the number of workflow definition links where companyId = ?.
 int countByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK)
          Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?.
 int countByG_C_C(long groupId, long companyId, long classNameId)
          Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink create(long workflowDefinitionLinkId)
          Creates a new workflow definition link with the primary key.
 WorkflowDefinitionLink fetchByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 WorkflowDefinitionLink fetchByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 WorkflowDefinitionLink fetchByCompanyId_First(long companyId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where companyId = ?.
 WorkflowDefinitionLink fetchByCompanyId_Last(long companyId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where companyId = ?.
 WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK)
          Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found.
 WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK, boolean retrieveFromCache)
          Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found, optionally using the finder cache.
 WorkflowDefinitionLink fetchByG_C_C_First(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink fetchByG_C_C_Last(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId)
          Returns the workflow definition link with the primary key or returns null if it could not be found.
 Map<Serializable,WorkflowDefinitionLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 List<WorkflowDefinitionLink> findAll()
          Returns all the workflow definition links.
 List<WorkflowDefinitionLink> findAll(int start, int end)
          Returns a range of all the workflow definition links.
 List<WorkflowDefinitionLink> findAll(int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns an ordered range of all the workflow definition links.
 List<WorkflowDefinitionLink> findAll(int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the workflow definition links.
 WorkflowDefinitionLink findByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 WorkflowDefinitionLink findByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId, long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion)
          Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end)
          Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
 WorkflowDefinitionLink findByCompanyId_First(long companyId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where companyId = ?.
 WorkflowDefinitionLink findByCompanyId_Last(long companyId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where companyId = ?.
 WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId, long companyId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?.
 List<WorkflowDefinitionLink> findByCompanyId(long companyId)
          Returns all the workflow definition links where companyId = ?.
 List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the workflow definition links where companyId = ?.
 List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns an ordered range of all the workflow definition links where companyId = ?.
 List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the workflow definition links where companyId = ?.
 WorkflowDefinitionLink findByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK)
          Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.
 WorkflowDefinitionLink findByG_C_C_First(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the first workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink findByG_C_C_Last(long groupId, long companyId, long classNameId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the last workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink[] findByG_C_C_PrevAndNext(long workflowDefinitionLinkId, long groupId, long companyId, long classNameId, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns the workflow definition links before and after the current workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.
 List<WorkflowDefinitionLink> findByG_C_C(long groupId, long companyId, long classNameId)
          Returns all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 List<WorkflowDefinitionLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end)
          Returns a range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 List<WorkflowDefinitionLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator)
          Returns an ordered range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 List<WorkflowDefinitionLink> findByG_C_C(long groupId, long companyId, long classNameId, int start, int end, OrderByComparator<WorkflowDefinitionLink> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId)
          Returns the workflow definition link with the primary key or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.
 WorkflowDefinitionLink remove(long workflowDefinitionLinkId)
          Removes the workflow definition link with the primary key from the database.
 void removeAll()
          Removes all the workflow definition links from the database.
 void removeByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion)
          Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the workflow definition links where companyId = ? from the database.
 WorkflowDefinitionLink removeByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK)
          Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database.
 void removeByG_C_C(long groupId, long companyId, long classNameId)
          Removes all the workflow definition links where groupId = ? and companyId = ? and classNameId = ? from the database.
 WorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByCompanyId

List<WorkflowDefinitionLink> findByCompanyId(long companyId)
Returns all the workflow definition links where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching workflow definition links

findByCompanyId

List<WorkflowDefinitionLink> findByCompanyId(long companyId,
                                             int start,
                                             int end)
Returns a range of all the workflow definition links where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
Returns:
the range of matching workflow definition links

findByCompanyId

List<WorkflowDefinitionLink> findByCompanyId(long companyId,
                                             int start,
                                             int end,
                                             OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByCompanyId

List<WorkflowDefinitionLink> findByCompanyId(long companyId,
                                             int start,
                                             int end,
                                             OrderByComparator<WorkflowDefinitionLink> orderByComparator,
                                             boolean retrieveFromCache)
Returns an ordered range of all the workflow definition links where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching workflow definition links

findByCompanyId_First

WorkflowDefinitionLink findByCompanyId_First(long companyId,
                                             OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                             throws NoSuchWorkflowDefinitionLinkException
Returns the first workflow definition link 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 workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByCompanyId_First

WorkflowDefinitionLink fetchByCompanyId_First(long companyId,
                                              OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the first workflow definition link 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 workflow definition link, or null if a matching workflow definition link could not be found

findByCompanyId_Last

WorkflowDefinitionLink findByCompanyId_Last(long companyId,
                                            OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                            throws NoSuchWorkflowDefinitionLinkException
Returns the last workflow definition link in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByCompanyId_Last

WorkflowDefinitionLink fetchByCompanyId_Last(long companyId,
                                             OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching workflow definition link, or null if a matching workflow definition link could not be found

findByCompanyId_PrevAndNext

WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId,
                                                     long companyId,
                                                     OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                                     throws NoSuchWorkflowDefinitionLinkException
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?.

Parameters:
workflowDefinitionLinkId - the primary key of the current workflow definition link
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found

removeByCompanyId

void removeByCompanyId(long companyId)
Removes all the workflow definition links where companyId = ? from the database.

Parameters:
companyId - the company ID

countByCompanyId

int countByCompanyId(long companyId)
Returns the number of workflow definition links where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching workflow definition links

findByG_C_C

List<WorkflowDefinitionLink> findByG_C_C(long groupId,
                                         long companyId,
                                         long classNameId)
Returns all the workflow definition 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 definition links

findByG_C_C

List<WorkflowDefinitionLink> findByG_C_C(long groupId,
                                         long companyId,
                                         long classNameId,
                                         int start,
                                         int end)
Returns a range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_C

List<WorkflowDefinitionLink> findByG_C_C(long groupId,
                                         long companyId,
                                         long classNameId,
                                         int start,
                                         int end,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns an ordered range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByG_C_C

List<WorkflowDefinitionLink> findByG_C_C(long groupId,
                                         long companyId,
                                         long classNameId,
                                         int start,
                                         int end,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching workflow definition links

findByG_C_C_First

WorkflowDefinitionLink findByG_C_C_First(long groupId,
                                         long companyId,
                                         long classNameId,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                         throws NoSuchWorkflowDefinitionLinkException
Returns the first workflow definition 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 definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByG_C_C_First

WorkflowDefinitionLink fetchByG_C_C_First(long groupId,
                                          long companyId,
                                          long classNameId,
                                          OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the first workflow definition 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 definition link, or null if a matching workflow definition link could not be found

findByG_C_C_Last

WorkflowDefinitionLink findByG_C_C_Last(long groupId,
                                        long companyId,
                                        long classNameId,
                                        OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                        throws NoSuchWorkflowDefinitionLinkException
Returns the last workflow definition 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 definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByG_C_C_Last

WorkflowDefinitionLink fetchByG_C_C_Last(long groupId,
                                         long companyId,
                                         long classNameId,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the last workflow definition 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 definition link, or null if a matching workflow definition link could not be found

findByG_C_C_PrevAndNext

WorkflowDefinitionLink[] findByG_C_C_PrevAndNext(long workflowDefinitionLinkId,
                                                 long groupId,
                                                 long companyId,
                                                 long classNameId,
                                                 OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                                 throws NoSuchWorkflowDefinitionLinkException
Returns the workflow definition links before and after the current workflow definition link in the ordered set where groupId = ? and companyId = ? and classNameId = ?.

Parameters:
workflowDefinitionLinkId - the primary key of the current workflow definition 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 definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found

removeByG_C_C

void removeByG_C_C(long groupId,
                   long companyId,
                   long classNameId)
Removes all the workflow definition 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

int countByG_C_C(long groupId,
                 long companyId,
                 long classNameId)
Returns the number of workflow definition 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 definition links

findByC_W_W

List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion)
Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
Returns:
the matching workflow definition links

findByC_W_W

List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion,
                                         int start,
                                         int end)
Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
Returns:
the range of matching workflow definition links

findByC_W_W

List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion,
                                         int start,
                                         int end,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching workflow definition links

findByC_W_W

List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion,
                                         int start,
                                         int end,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator,
                                         boolean retrieveFromCache)
Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching workflow definition links

findByC_W_W_First

WorkflowDefinitionLink findByC_W_W_First(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                         throws NoSuchWorkflowDefinitionLinkException
Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByC_W_W_First

WorkflowDefinitionLink fetchByC_W_W_First(long companyId,
                                          String workflowDefinitionName,
                                          int workflowDefinitionVersion,
                                          OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching workflow definition link, or null if a matching workflow definition link could not be found

findByC_W_W_Last

WorkflowDefinitionLink findByC_W_W_Last(long companyId,
                                        String workflowDefinitionName,
                                        int workflowDefinitionVersion,
                                        OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                        throws NoSuchWorkflowDefinitionLinkException
Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByC_W_W_Last

WorkflowDefinitionLink fetchByC_W_W_Last(long companyId,
                                         String workflowDefinitionName,
                                         int workflowDefinitionVersion,
                                         OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching workflow definition link, or null if a matching workflow definition link could not be found

findByC_W_W_PrevAndNext

WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId,
                                                 long companyId,
                                                 String workflowDefinitionName,
                                                 int workflowDefinitionVersion,
                                                 OrderByComparator<WorkflowDefinitionLink> orderByComparator)
                                                 throws NoSuchWorkflowDefinitionLinkException
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
workflowDefinitionLinkId - the primary key of the current workflow definition link
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found

removeByC_W_W

void removeByC_W_W(long companyId,
                   String workflowDefinitionName,
                   int workflowDefinitionVersion)
Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version

countByC_W_W

int countByC_W_W(long companyId,
                 String workflowDefinitionName,
                 int workflowDefinitionVersion)
Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company ID
workflowDefinitionName - the workflow definition name
workflowDefinitionVersion - the workflow definition version
Returns:
the number of matching workflow definition links

findByG_C_C_C_T

WorkflowDefinitionLink findByG_C_C_C_T(long groupId,
                                       long companyId,
                                       long classNameId,
                                       long classPK,
                                       long typePK)
                                       throws NoSuchWorkflowDefinitionLinkException
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
typePK - the type p k
Returns:
the matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found

fetchByG_C_C_C_T

WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId,
                                        long companyId,
                                        long classNameId,
                                        long classPK,
                                        long typePK)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
typePK - the type p k
Returns:
the matching workflow definition link, or null if a matching workflow definition link could not be found

fetchByG_C_C_C_T

WorkflowDefinitionLink fetchByG_C_C_C_T(long groupId,
                                        long companyId,
                                        long classNameId,
                                        long classPK,
                                        long typePK,
                                        boolean retrieveFromCache)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
typePK - the type p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching workflow definition link, or null if a matching workflow definition link could not be found

removeByG_C_C_C_T

WorkflowDefinitionLink removeByG_C_C_C_T(long groupId,
                                         long companyId,
                                         long classNameId,
                                         long classPK,
                                         long typePK)
                                         throws NoSuchWorkflowDefinitionLinkException
Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
typePK - the type p k
Returns:
the workflow definition link that was removed
Throws:
NoSuchWorkflowDefinitionLinkException

countByG_C_C_C_T

int countByG_C_C_C_T(long groupId,
                     long companyId,
                     long classNameId,
                     long classPK,
                     long typePK)
Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
typePK - the type p k
Returns:
the number of matching workflow definition links

cacheResult

void cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
Caches the workflow definition link in the entity cache if it is enabled.

Parameters:
workflowDefinitionLink - the workflow definition link

cacheResult

void cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
Caches the workflow definition links in the entity cache if it is enabled.

Parameters:
workflowDefinitionLinks - the workflow definition links

create

WorkflowDefinitionLink create(long workflowDefinitionLinkId)
Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.

Parameters:
workflowDefinitionLinkId - the primary key for the new workflow definition link
Returns:
the new workflow definition link

remove

WorkflowDefinitionLink remove(long workflowDefinitionLinkId)
                              throws NoSuchWorkflowDefinitionLinkException
Removes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
workflowDefinitionLinkId - the primary key of the workflow definition link
Returns:
the workflow definition link that was removed
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found

updateImpl

WorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink)

findByPrimaryKey

WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId)
                                        throws NoSuchWorkflowDefinitionLinkException
Returns the workflow definition link with the primary key or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.

Parameters:
workflowDefinitionLinkId - the primary key of the workflow definition link
Returns:
the workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found

fetchByPrimaryKey

WorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId)
Returns the workflow definition link with the primary key or returns null if it could not be found.

Parameters:
workflowDefinitionLinkId - the primary key of the workflow definition link
Returns:
the workflow definition link, or null if a workflow definition link with the primary key could not be found

fetchByPrimaryKeys

Map<Serializable,WorkflowDefinitionLink> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<WorkflowDefinitionLink>

findAll

List<WorkflowDefinitionLink> findAll()
Returns all the workflow definition links.

Returns:
the workflow definition links

findAll

List<WorkflowDefinitionLink> findAll(int start,
                                     int end)
Returns a range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

List<WorkflowDefinitionLink> findAll(int start,
                                     int end,
                                     OrderByComparator<WorkflowDefinitionLink> orderByComparator)
Returns an ordered range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

List<WorkflowDefinitionLink> findAll(int start,
                                     int end,
                                     OrderByComparator<WorkflowDefinitionLink> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the workflow definition 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from WorkflowDefinitionLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of workflow definition links
end - the upper bound of the range of workflow definition links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of workflow definition links

removeAll

void removeAll()
Removes all the workflow definition links from the database.


countAll

int countAll()
Returns the number of workflow definition links.

Returns:
the number of workflow definition links

Liferay 7.0-ce-b4