|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.WorkflowInstanceLinkUtil
public class WorkflowInstanceLinkUtil
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.
Caching information and settings can be found in portal.properties
WorkflowInstanceLinkPersistence
,
WorkflowInstanceLinkPersistenceImpl
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()
Returns the number of workflow instance links. |
static 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 = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static WorkflowInstanceLink |
create(long workflowInstanceLinkId)
Creates a new workflow instance link with the primary key. |
static 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 = ?. |
static 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 = ?. |
static WorkflowInstanceLink |
fetchByPrimaryKey(long workflowInstanceLinkId)
Returns the workflow instance link with the primary key or returns null if it could not be found. |
static List<WorkflowInstanceLink> |
findAll()
Returns all the workflow instance links. |
static List<WorkflowInstanceLink> |
findAll(int start,
int end)
Returns a range of all the workflow instance links. |
static List<WorkflowInstanceLink> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns 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)
Returns 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)
Returns 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)
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 = ?. |
static 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 = ?. |
static 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 = ?. |
static 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 = ?. |
static WorkflowInstanceLink |
findByPrimaryKey(long workflowInstanceLinkId)
Returns 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 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)
Deprecated. |
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 |
---|
public WorkflowInstanceLinkUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(WorkflowInstanceLink workflowInstanceLink)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<WorkflowInstanceLink> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static WorkflowInstanceLink update(WorkflowInstanceLink workflowInstanceLink, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(WorkflowInstanceLink workflowInstanceLink)
workflowInstanceLink
- the workflow instance linkpublic static void cacheResult(List<WorkflowInstanceLink> workflowInstanceLinks)
workflowInstanceLinks
- the workflow instance linkspublic static WorkflowInstanceLink create(long workflowInstanceLinkId)
workflowInstanceLinkId
- the primary key for the new workflow instance link
public static WorkflowInstanceLink remove(long workflowInstanceLinkId) throws NoSuchWorkflowInstanceLinkException, SystemException
workflowInstanceLinkId
- the primary key of the workflow instance link
NoSuchWorkflowInstanceLinkException
- if a workflow instance link with the primary key could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink updateImpl(WorkflowInstanceLink workflowInstanceLink, boolean merge) throws SystemException
SystemException
public static WorkflowInstanceLink findByPrimaryKey(long workflowInstanceLinkId) throws NoSuchWorkflowInstanceLinkException, SystemException
NoSuchWorkflowInstanceLinkException
if it could not be found.
workflowInstanceLinkId
- the primary key of the workflow instance link
NoSuchWorkflowInstanceLinkException
- if a workflow instance link with the primary key could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink fetchByPrimaryKey(long workflowInstanceLinkId) throws SystemException
null
if it could not be found.
workflowInstanceLinkId
- the primary key of the workflow instance link
null
if a workflow instance link with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK, 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.
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p kstart
- the lower bound of the range of workflow instance linksend
- the upper bound of the range of workflow instance links (not inclusive)
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> findByG_C_C_C(long groupId, long companyId, long classNameId, long classPK, 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.
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p kstart
- the lower bound of the range of workflow instance linksend
- the upper bound of the range of workflow instance links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink findByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchWorkflowInstanceLinkException, SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowInstanceLinkException
- if a matching workflow instance link could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink fetchByG_C_C_C_First(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow instance link could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink findByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchWorkflowInstanceLinkException, SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowInstanceLinkException
- if a matching workflow instance link could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink fetchByG_C_C_C_Last(long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching workflow instance link could not be found
SystemException
- if a system exception occurredpublic static WorkflowInstanceLink[] findByG_C_C_C_PrevAndNext(long workflowInstanceLinkId, long groupId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchWorkflowInstanceLinkException, SystemException
workflowInstanceLinkId
- the primary key of the current workflow instance linkgroupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchWorkflowInstanceLinkException
- if a workflow instance link with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> 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 instance linksend
- the upper bound of the range of workflow instance links (not inclusive)
SystemException
- if a system exception occurredpublic static List<WorkflowInstanceLink> 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 instance linksend
- the upper bound of the range of workflow instance links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByG_C_C_C(long groupId, long companyId, long classNameId, long classPK) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByG_C_C_C(long groupId, long companyId, long classNameId, long classPK) throws SystemException
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static WorkflowInstanceLinkPersistence getPersistence()
public void setPersistence(WorkflowInstanceLinkPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |