Liferay 6.0.5

com.liferay.portal.service.persistence
Interface WorkflowInstanceLinkPersistence

All Superinterfaces:
BasePersistence<WorkflowInstanceLink>
All Known Implementing Classes:
WorkflowInstanceLinkPersistenceImpl

public interface WorkflowInstanceLinkPersistence
extends BasePersistence<WorkflowInstanceLink>

The persistence interface for the workflow instance link service.

Never modify or reference this interface directly. Always use WorkflowInstanceLinkUtil to access the workflow instance link persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<WorkflowInstanceLink> workflowInstanceLinks)
          Caches the workflow instance links in the entity cache if it is enabled.
 void cacheResult(WorkflowInstanceLink workflowInstanceLink)
          Caches the workflow instance link in the entity cache if it is enabled.
 int countAll()
          Counts all the workflow instance links.
 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 = ?.
 WorkflowInstanceLink create(long workflowInstanceLinkId)
          Creates a new workflow instance link with the primary key.
 WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId)
          Finds the workflow instance link with the primary key or returns null if it could not be found.
 List<WorkflowInstanceLink> findAll()
          Finds all the workflow instance links.
 List<WorkflowInstanceLink> findAll(int start, int end)
          Finds a range of all the workflow instance links.
 List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the workflow instance links.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId)
          Finds the workflow instance link with the primary key or throws a NoSuchWorkflowInstanceLinkException if it could not be found.
 WorkflowInstanceLink remove(long workflowInstanceLinkId)
          Removes the workflow instance link with the primary key from the database.
 void removeAll()
          Removes all the workflow instance links from the database.
 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.
 WorkflowInstanceLink updateImpl(WorkflowInstanceLink workflowInstanceLink, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

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

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

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

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

findByPrimaryKey

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

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

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

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

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

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

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

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

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

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

findAll

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

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

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

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

Throws:
SystemException - if a system exception occurred

countByG_C_C_C

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

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

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

Liferay 6.0.5