Liferay 6.1.2-ce-ga3

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.

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 it 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()
          Returns the number of workflow instance links.
 int countByG_C_C_C(long groupId, long companyId, long classNameId, long classPK)
          Returns the number of workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
 WorkflowInstanceLink create(long workflowInstanceLinkId)
          Creates a new workflow instance link with the primary key.
 WorkflowInstanceLink fetchByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
 WorkflowInstanceLink fetchByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
 WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId)
          Returns the workflow instance link with the primary key or returns null if it could not be found.
 List<WorkflowInstanceLink> findAll()
          Returns all the workflow instance links.
 List<WorkflowInstanceLink> findAll(int start, int end)
          Returns a range of all the workflow instance links.
 List<WorkflowInstanceLink> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns 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)
          Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.
 WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId)
          Returns 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, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, 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

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

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
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
Returns 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
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
Returns 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
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
Returns all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
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
Returns a range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - 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
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of workflow instance links
end - the upper bound of the range of workflow instance links (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
Returns an ordered range of all the workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - 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
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of workflow instance links
end - the upper bound of the range of workflow instance links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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
Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
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

fetchByG_C_C_C_First

WorkflowInstanceLink fetchByG_C_C_C_First(long groupId,
                                          long companyId,
                                          long classNameId,
                                          long classPK,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Returns the first workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching workflow instance link, or null if a matching workflow instance link could not be found
Throws:
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
Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
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

fetchByG_C_C_C_Last

WorkflowInstanceLink fetchByG_C_C_C_Last(long groupId,
                                         long companyId,
                                         long classNameId,
                                         long classPK,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Returns the last workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching workflow instance link, or null if a matching workflow instance link could not be found
Throws:
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
Returns the workflow instance links before and after the current workflow instance link in the ordered set where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

Parameters:
workflowInstanceLinkId - the primary key of the current workflow instance link
groupId - the group ID
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
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
Returns 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
Returns 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
end - the upper bound of the range of workflow instance links (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
Returns 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
end - the upper bound of the range of workflow instance links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
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
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
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
Returns the number of workflow instance links where groupId = ? and companyId = ? and classNameId = ? and classPK = ?.

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

countAll

int countAll()
             throws SystemException
Returns the number of workflow instance links.

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

Liferay 6.1.2-ce-ga3