|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowDefinitionLinkPersistence
The persistence interface for the workflow definition link service.
Caching information and settings can be found in portal.properties
WorkflowDefinitionLinkPersistenceImpl
,
WorkflowDefinitionLinkUtil
Method Summary | |
---|---|
void |
cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
Caches the workflow definition links in the entity cache if it is enabled. |
void |
cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
Caches the workflow definition link in the entity cache if it is enabled. |
int |
countAll()
Returns the number of workflow definition links. |
int |
countByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Returns the number of workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
int |
countByCompanyId(long companyId)
Returns the number of workflow definition links where companyId = ?. |
int |
countByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the number of workflow definition links where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ?. |
WorkflowDefinitionLink |
create(long workflowDefinitionLinkId)
Creates a new workflow definition link with the primary key. |
WorkflowDefinitionLink |
fetchByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found. |
WorkflowDefinitionLink |
fetchByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK,
boolean retrieveFromCache)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or returns null if it could not be found, optionally using the finder cache. |
WorkflowDefinitionLink |
fetchByPrimaryKey(long workflowDefinitionLinkId)
Returns the workflow definition link with the primary key or returns null if it could not be found. |
List<WorkflowDefinitionLink> |
findAll()
Returns all the workflow definition links. |
List<WorkflowDefinitionLink> |
findAll(int start,
int end)
Returns a range of all the workflow definition links. |
List<WorkflowDefinitionLink> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links. |
WorkflowDefinitionLink |
findByC_W_W_First(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
findByC_W_W_Last(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink[] |
findByC_W_W_PrevAndNext(long workflowDefinitionLinkId,
long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
OrderByComparator orderByComparator)
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Returns all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
int start,
int end)
Returns a range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
List<WorkflowDefinitionLink> |
findByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ?. |
WorkflowDefinitionLink |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last workflow definition link in the ordered set where companyId = ?. |
WorkflowDefinitionLink[] |
findByCompanyId_PrevAndNext(long workflowDefinitionLinkId,
long companyId,
OrderByComparator orderByComparator)
Returns the workflow definition links before and after the current workflow definition link in the ordered set where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId)
Returns all the workflow definition links where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the workflow definition links where companyId = ?. |
List<WorkflowDefinitionLink> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the workflow definition links where companyId = ?. |
WorkflowDefinitionLink |
findByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Returns the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? or throws a NoSuchWorkflowDefinitionLinkException if it could not be found. |
WorkflowDefinitionLink |
findByPrimaryKey(long workflowDefinitionLinkId)
Returns the workflow definition link with the primary key or throws a NoSuchWorkflowDefinitionLinkException if it could not be found. |
WorkflowDefinitionLink |
remove(long workflowDefinitionLinkId)
Removes the workflow definition link with the primary key from the database. |
void |
removeAll()
Removes all the workflow definition links from the database. |
void |
removeByC_W_W(long companyId,
String workflowDefinitionName,
int workflowDefinitionVersion)
Removes all the workflow definition links where companyId = ? and workflowDefinitionName = ? and workflowDefinitionVersion = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the workflow definition links where companyId = ? from the database. |
void |
removeByG_C_C_C_T(long groupId,
long companyId,
long classNameId,
long classPK,
long typePK)
Removes the workflow definition link where groupId = ? and companyId = ? and classNameId = ? and classPK = ? and typePK = ? from the database. |
WorkflowDefinitionLink |
updateImpl(WorkflowDefinitionLink workflowDefinitionLink,
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 |
---|
void cacheResult(WorkflowDefinitionLink workflowDefinitionLink)
workflowDefinitionLink
- the workflow definition linkvoid cacheResult(List<WorkflowDefinitionLink> workflowDefinitionLinks)
workflowDefinitionLinks
- the workflow definition linksWorkflowDefinitionLink create(long workflowDefinitionLinkId)
workflowDefinitionLinkId
- the primary key for the new workflow definition link
WorkflowDefinitionLink remove(long workflowDefinitionLinkId) throws NoSuchWorkflowDefinitionLinkException, SystemException
workflowDefinitionLinkId
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink updateImpl(WorkflowDefinitionLink workflowDefinitionLink, boolean merge) throws SystemException
SystemException
WorkflowDefinitionLink findByPrimaryKey(long workflowDefinitionLinkId) throws NoSuchWorkflowDefinitionLinkException, SystemException
NoSuchWorkflowDefinitionLinkException
if it could not be found.
workflowDefinitionLinkId
- the primary key of the workflow definition link
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink fetchByPrimaryKey(long workflowDefinitionLinkId) throws SystemException
null
if it could not be found.
workflowDefinitionLinkId
- the primary key of the workflow definition link
null
if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company IDstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredWorkflowDefinitionLink findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink[] findByCompanyId_PrevAndNext(long workflowDefinitionLinkId, long companyId, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
workflowDefinitionLinkId
- the primary key of the current workflow definition linkcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end) throws SystemException
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.
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionstart
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredWorkflowDefinitionLink findByC_W_W_First(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink findByC_W_W_Last(long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink[] findByC_W_W_PrevAndNext(long workflowDefinitionLinkId, long companyId, String workflowDefinitionName, int workflowDefinitionVersion, OrderByComparator orderByComparator) throws NoSuchWorkflowDefinitionLinkException, SystemException
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.
workflowDefinitionLinkId
- the primary key of the current workflow definition linkcompanyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition versionorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowDefinitionLinkException
- if a workflow definition link with the primary key could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink findByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws NoSuchWorkflowDefinitionLinkException, SystemException
NoSuchWorkflowDefinitionLinkException
if it could not be found.
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
NoSuchWorkflowDefinitionLinkException
- if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredWorkflowDefinitionLink fetchByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p kretrieveFromCache
- whether to use the finder cache
null
if a matching workflow definition link could not be found
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findAll() throws SystemException
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)
SystemException
- if a system exception occurredList<WorkflowDefinitionLink> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of workflow definition linksend
- the upper bound of the range of workflow definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredvoid removeByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredvoid removeByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws NoSuchWorkflowDefinitionLinkException, SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
SystemException
- if a system exception occurred
NoSuchWorkflowDefinitionLinkException
void removeAll() throws SystemException
SystemException
- if a system exception occurredint countByCompanyId(long companyId) throws SystemException
companyId
- the company ID
SystemException
- if a system exception occurredint countByC_W_W(long companyId, String workflowDefinitionName, int workflowDefinitionVersion) throws SystemException
companyId
- the company IDworkflowDefinitionName
- the workflow definition nameworkflowDefinitionVersion
- the workflow definition version
SystemException
- if a system exception occurredint countByG_C_C_C_T(long groupId, long companyId, long classNameId, long classPK, long typePK) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p ktypePK
- the type p k
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |