Liferay 6.0.5

com.liferay.portal.service.persistence
Class WorkflowInstanceLinkUtil

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

public class WorkflowInstanceLinkUtil
extends Object

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

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:
WorkflowInstanceLinkPersistence, WorkflowInstanceLinkPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
WorkflowInstanceLinkUtil()
           
 
Method Summary
static void cacheResult(List<WorkflowInstanceLink> workflowInstanceLinks)
          Caches the workflow instance links in the entity cache if it is enabled.
static void cacheResult(WorkflowInstanceLink workflowInstanceLink)
          Caches the workflow instance link in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(WorkflowInstanceLink workflowInstanceLink)
           
static int countAll()
          Counts all the workflow instance links.
static int countByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
          Counts all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static WorkflowInstanceLink create(long workflowInstanceLinkId)
          Creates a new workflow instance link with the primary key.
static WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId)
          Finds the workflow instance link with the primary key or returns null if it could not be found.
static List<WorkflowInstanceLink> findAll()
          Finds all the workflow instance links.
static List<WorkflowInstanceLink> findAll(int start, int end)
          Finds a range of all the workflow instance links.
static List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the workflow instance links.
static WorkflowInstanceLink findByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
static WorkflowInstanceLink findByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
static WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(long workflowInstanceLinkId, long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Finds the workflow instance links before and after the current workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
          Finds 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)
          Finds 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 orderByComparator)
          Finds an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
static WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId)
          Finds the workflow instance link with the primary key or throws a NoSuchWorkflowInstanceLinkException if 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 orderByComparator)
           
static WorkflowInstanceLinkPersistence getPersistence()
           
static WorkflowInstanceLink remove(long workflowInstanceLinkId)
          Removes the workflow instance link with the primary key from the database.
static WorkflowInstanceLink remove(WorkflowInstanceLink workflowInstanceLink)
           
static void removeAll()
          Removes all the workflow instance links from the database.
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.
 void setPersistence(WorkflowInstanceLinkPersistence persistence)
           
static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, boolean merge)
           
static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, boolean merge, ServiceContext serviceContext)
           
static WorkflowInstanceLink updateImpl(WorkflowInstanceLink workflowInstanceLink, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowInstanceLinkUtil

public WorkflowInstanceLinkUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(WorkflowInstanceLink workflowInstanceLink)
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<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

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

update

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

update

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

cacheResult

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

Parameters:
workflowInstanceLink - the workflow instance link to cache

cacheResult

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

Parameters:
workflowInstanceLinks - the workflow instance links to cache

create

public static WorkflowInstanceLink create(long workflowInstanceLinkId)
Creates a new workflow instance link with the primary key. Does not add the workflow instance link to the database.

Parameters:
workflowInstanceLinkId - the primary key for the new workflow instance link
Returns:
the new workflow instance link

remove

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

updateImpl

public static WorkflowInstanceLink updateImpl(WorkflowInstanceLink workflowInstanceLink,
                                              boolean merge)
                                       throws SystemException
Throws:
SystemException

findByPrimaryKey

public static WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId)
                                             throws NoSuchWorkflowInstanceLinkException,
                                                    SystemException
Finds the workflow instance link with the primary key or throws a NoSuchWorkflowInstanceLinkException if it could not be found.

Parameters:
workflowInstanceLinkId - the primary key of the workflow instance link to find
Returns:
the workflow instance link
Throws:
NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId)
                                              throws SystemException
Finds the workflow instance link with the primary key or returns null if it could not be found.

Parameters:
workflowInstanceLinkId - the primary key of the workflow instance link to find
Returns:
the workflow instance link, or null if a workflow instance link with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_C

public static List<WorkflowInstanceLink> findByG_C_C_C(long groupId,
                                                       long companyId,
                                                       long classNameId,
                                                       long classPK)
                                                throws SystemException
Finds all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
Returns:
the matching workflow instance links
Throws:
SystemException - if a system exception occurred

findByG_C_C_C

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of workflow instance links to return
end - the upper bound of the range of workflow instance links to return (not inclusive)
Returns:
the range of matching workflow instance links
Throws:
SystemException - if a system exception occurred

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 orderByComparator)
                                                throws SystemException
Finds an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
start - the lower bound of the range of workflow instance links to return
end - the upper bound of the range of workflow instance links to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching workflow instance links
Throws:
SystemException - if a system exception occurred

findByG_C_C_C_First

public static WorkflowInstanceLink findByG_C_C_C_First(long groupId,
                                                       long companyId,
                                                       long classNameId,
                                                       long classPK,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchWorkflowInstanceLinkException,
                                                       SystemException
Finds the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching workflow instance link
Throws:
NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
SystemException - if a system exception occurred

findByG_C_C_C_Last

public static WorkflowInstanceLink findByG_C_C_C_Last(long groupId,
                                                      long companyId,
                                                      long classNameId,
                                                      long classPK,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchWorkflowInstanceLinkException,
                                                      SystemException
Finds the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching workflow instance link
Throws:
NoSuchWorkflowInstanceLinkException - if a matching workflow instance link could not be found
SystemException - if a system exception occurred

findByG_C_C_C_PrevAndNext

public static WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(long workflowInstanceLinkId,
                                                               long groupId,
                                                               long companyId,
                                                               long classNameId,
                                                               long classPK,
                                                               OrderByComparator orderByComparator)
                                                        throws NoSuchWorkflowInstanceLinkException,
                                                               SystemException
Finds the workflow instance links before and after the current workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
workflowInstanceLinkId - the primary key of the current workflow instance link
groupId - the group id to search with
companyId - the company id to search with
classNameId - the class name id to search with
classPK - the class p k to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next workflow instance link
Throws:
NoSuchWorkflowInstanceLinkException - if a workflow instance link with the primary key could not be found
SystemException - if a system exception occurred

findAll

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

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

findAll

public static List<WorkflowInstanceLink> findAll(int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the workflow instance links.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findAll

public static List<WorkflowInstanceLink> findAll(int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the workflow instance links.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

removeByG_C_C_C

public static void removeByG_C_C_C(long groupId,
                                   long companyId,
                                   long classNameId,
                                   long classPK)
                            throws SystemException
Removes all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? 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
classPK - the class p k to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByG_C_C_C

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

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

countAll

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

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

getPersistence

public static WorkflowInstanceLinkPersistence getPersistence()

setPersistence

public void setPersistence(WorkflowInstanceLinkPersistence persistence)

Liferay 6.0.5