Liferay 6.0.5

com.liferay.portal.service.persistence
Class WorkflowDefinitionLinkUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.WorkflowDefinitionLinkUtil

public class WorkflowDefinitionLinkUtil
extends Object

The persistence utility for the workflow definition link service. This utility wraps WorkflowDefinitionLinkPersistenceImpl 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.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
WorkflowDefinitionLinkUtil()
           
 
Method Summary
static void cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
          Caches the workflow definition links in the entity cache if it is enabled.
static void cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
          Caches the workflow definition link in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(WorkflowDefinitionLink workflowDefinitionLink)
           
static int countAll()
          Counts all the workflow definition links.
static int countByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion)
          Counts all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static int countByCompanyId(long companyId)
          Counts all the workflow definition links where companyId = ?.
static int countByG_C_C(long groupId, long companyId, long classNameId)
          Counts all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static WorkflowDefinitionLink create(long workflowDefinitionLinkId)
          Creates a new workflow definition link with the primary key.
static WorkflowDefinitionLink fetchByG_C_C(long groupId, long companyId, long classNameId)
          Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or returns null if it could not be found.
static WorkflowDefinitionLink fetchByG_C_C(long groupId, long companyId, long classNameId, boolean retrieveFromCache)
          Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache.
static WorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId)
          Finds the workflow definition link with the primary key or returns null if it could not be found.
static List<WorkflowDefinitionLink> findAll()
          Finds all the workflow definition links.
static List<WorkflowDefinitionLink> findAll(int start, int end)
          Finds a range of all the workflow definition links.
static List<WorkflowDefinitionLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the workflow definition links.
static WorkflowDefinitionLink findByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator)
          Finds the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static WorkflowDefinitionLink findByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator)
          Finds the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId, long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator)
          Finds the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion)
          Finds all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end)
          Finds a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static List<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.
static WorkflowDefinitionLink findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first workflow definition link in the ordered set where companyId = ?.
static WorkflowDefinitionLink findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last workflow definition link in the ordered set where companyId = ?.
static WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId, long companyId, OrderByComparator orderByComparator)
          Finds the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?.
static List<WorkflowDefinitionLink> findByCompanyId(long companyId)
          Finds all the workflow definition links where companyId = ?.
static List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the workflow definition links where companyId = ?.
static List<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the workflow definition links where companyId = ?.
static WorkflowDefinitionLink findByG_C_C(long groupId, long companyId, long classNameId)
          Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.
static WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId)
          Finds the workflow definition link with the primary key or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.
static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static WorkflowDefinitionLinkPersistence getPersistence()
           
static WorkflowDefinitionLink remove(long workflowDefinitionLinkId)
          Removes the workflow definition link with the primary key from the database.
static WorkflowDefinitionLink remove(WorkflowDefinitionLink workflowDefinitionLink)
           
static void removeAll()
          Removes all the workflow definition links from the database.
static 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.
static void removeByCompanyId(long companyId)
          Removes all the workflow definition links where companyId = ? from the database.
static void removeByG_C_C(long groupId, long companyId, long classNameId)
          Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? from the database.
 void setPersistence(WorkflowDefinitionLinkPersistence persistence)
           
static WorkflowDefinitionLink update(WorkflowDefinitionLink workflowDefinitionLink, boolean merge)
           
static WorkflowDefinitionLink update(WorkflowDefinitionLink workflowDefinitionLink, boolean merge, ServiceContext serviceContext)
           
static WorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDefinitionLinkUtil

public WorkflowDefinitionLinkUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(WorkflowDefinitionLink workflowDefinitionLink)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                                int start,
                                                                int end)
                                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<WorkflowDefinitionLink> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                                int start,
                                                                int end,
                                                                OrderByComparator orderByComparator)
                                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static WorkflowDefinitionLink remove(WorkflowDefinitionLink workflowDefinitionLink)
                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static WorkflowDefinitionLink update(WorkflowDefinitionLink workflowDefinitionLink,
                                            boolean merge)
                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static WorkflowDefinitionLink update(WorkflowDefinitionLink workflowDefinitionLink,
                                            boolean merge,
                                            ServiceContext serviceContext)
                                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
workflowDefinitionLink - the workflow definition link to cache

cacheResult

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

Parameters:
workflowDefinitionLinks - the workflow definition links to cache

create

public static 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

public static WorkflowDefinitionLink remove(long workflowDefinitionLinkId)
                                     throws NoSuchWorkflowDefinitionLinkException,
                                            SystemException
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 to remove
Returns:
the workflow definition link that was removed
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static WorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink,
                                                boolean merge)
                                         throws SystemException
Throws:
SystemException

findByPrimaryKey

public static WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId)
                                               throws NoSuchWorkflowDefinitionLinkException,
                                                      SystemException
Finds 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 to find
Returns:
the workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static WorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId)
                                                throws SystemException
Finds 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 to find
Returns:
the workflow definition link, or null if a workflow definition link with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<WorkflowDefinitionLink> findByCompanyId(long companyId)
                                                    throws SystemException
Finds all the workflow definition links where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<WorkflowDefinitionLink> findByCompanyId(long companyId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
Returns:
the range of matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<WorkflowDefinitionLink> findByCompanyId(long companyId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static WorkflowDefinitionLink findByCompanyId_First(long companyId,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchWorkflowDefinitionLinkException,
                                                           SystemException
Finds the first workflow definition link in the ordered set 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static WorkflowDefinitionLink findByCompanyId_Last(long companyId,
                                                          OrderByComparator orderByComparator)
                                                   throws NoSuchWorkflowDefinitionLinkException,
                                                          SystemException
Finds the last workflow definition link in the ordered set 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.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static WorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId,
                                                                   long companyId,
                                                                   OrderByComparator orderByComparator)
                                                            throws NoSuchWorkflowDefinitionLinkException,
                                                                   SystemException
Finds the workflow definition links before and after the current workflow definition link in the ordered set 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.

Parameters:
workflowDefinitionLinkId - the primary key of the current workflow definition link
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found
SystemException - if a system exception occurred

findByG_C_C

public static WorkflowDefinitionLink findByG_C_C(long groupId,
                                                 long companyId,
                                                 long classNameId)
                                          throws NoSuchWorkflowDefinitionLinkException,
                                                 SystemException
Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
Returns:
the matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found
SystemException - if a system exception occurred

fetchByG_C_C

public static WorkflowDefinitionLink fetchByG_C_C(long groupId,
                                                  long companyId,
                                                  long classNameId)
                                           throws SystemException
Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
Returns:
the matching workflow definition link, or null if a matching workflow definition link could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_C_C

public static WorkflowDefinitionLink fetchByG_C_C(long groupId,
                                                  long companyId,
                                                  long classNameId,
                                                  boolean retrieveFromCache)
                                           throws SystemException
Finds the workflow definition link where groupId = ? and companyId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
Returns:
the matching workflow definition link, or null if a matching workflow definition link could not be found
Throws:
SystemException - if a system exception occurred

findByC_W_W

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

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
Returns:
the matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByC_W_W

public static List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                                       String workflowDefinitionName,
                                                       int workflowDefinitionVersion,
                                                       int start,
                                                       int end)
                                                throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
Returns:
the range of matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByC_W_W

public static List<WorkflowDefinitionLink> findByC_W_W(long companyId,
                                                       String workflowDefinitionName,
                                                       int workflowDefinitionVersion,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Finds 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.

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching workflow definition links
Throws:
SystemException - if a system exception occurred

findByC_W_W_First

public static WorkflowDefinitionLink findByC_W_W_First(long companyId,
                                                       String workflowDefinitionName,
                                                       int workflowDefinitionVersion,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchWorkflowDefinitionLinkException,
                                                       SystemException
Finds the first workflow definition link in the ordered set 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.

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found
SystemException - if a system exception occurred

findByC_W_W_Last

public static WorkflowDefinitionLink findByC_W_W_Last(long companyId,
                                                      String workflowDefinitionName,
                                                      int workflowDefinitionVersion,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchWorkflowDefinitionLinkException,
                                                      SystemException
Finds the last workflow definition link in the ordered set 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.

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a matching workflow definition link could not be found
SystemException - if a system exception occurred

findByC_W_W_PrevAndNext

public static WorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId,
                                                               long companyId,
                                                               String workflowDefinitionName,
                                                               int workflowDefinitionVersion,
                                                               OrderByComparator orderByComparator)
                                                        throws NoSuchWorkflowDefinitionLinkException,
                                                               SystemException
Finds the workflow definition links before and after the current workflow definition link in the ordered set 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.

Parameters:
workflowDefinitionLinkId - the primary key of the current workflow definition link
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next workflow definition link
Throws:
NoSuchWorkflowDefinitionLinkException - if a workflow definition link with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<WorkflowDefinitionLink> findAll()
                                            throws SystemException
Finds all the workflow definition links.

Returns:
the workflow definition links
Throws:
SystemException - if a system exception occurred

findAll

public static List<WorkflowDefinitionLink> findAll(int start,
                                                   int end)
                                            throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
Returns:
the range of workflow definition links
Throws:
SystemException - if a system exception occurred

findAll

public static List<WorkflowDefinitionLink> findAll(int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of workflow definition links to return
end - the upper bound of the range of workflow definition links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of workflow definition links
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByG_C_C

public static void removeByG_C_C(long groupId,
                                 long companyId,
                                 long classNameId)
                          throws NoSuchWorkflowDefinitionLinkException,
                                 SystemException
Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? from the database.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred
NoSuchWorkflowDefinitionLinkException

removeByC_W_W

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

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the workflow definition links from the database.

Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Counts all the workflow definition links where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching workflow definition links
Throws:
SystemException - if a system exception occurred

countByG_C_C

public static int countByG_C_C(long groupId,
                               long companyId,
                               long classNameId)
                        throws SystemException
Counts all the workflow definition links where groupId = ? and companyId = ? and classNameId = ?.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
Returns:
the number of matching workflow definition links
Throws:
SystemException - if a system exception occurred

countByC_W_W

public static int countByC_W_W(long companyId,
                               String workflowDefinitionName,
                               int workflowDefinitionVersion)
                        throws SystemException
Counts all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?.

Parameters:
companyId - the company id to search with
workflowDefinitionName - the workflow definition name to search with
workflowDefinitionVersion - the workflow definition version to search with
Returns:
the number of matching workflow definition links
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the workflow definition links.

Returns:
the number of workflow definition links
Throws:
SystemException - if a system exception occurred

getPersistence

public static WorkflowDefinitionLinkPersistence getPersistence()

setPersistence

public void setPersistence(WorkflowDefinitionLinkPersistence persistence)

Liferay 6.0.5