@ProviderType
public class KaleoProcessLinkUtil
extends java.lang.Object
com.liferay.portal.workflow.kaleo.forms.service.persistence.impl.KaleoProcessLinkPersistenceImpl
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
KaleoProcessLinkPersistence
,
com.liferay.portal.workflow.kaleo.forms.service.persistence.impl.KaleoProcessLinkPersistenceImpl
Constructor and Description |
---|
KaleoProcessLinkUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KaleoProcessLink kaleoProcessLink)
Caches the kaleo process link in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KaleoProcessLink> kaleoProcessLinks)
Caches the kaleo process links in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KaleoProcessLink kaleoProcessLink) |
static int |
countAll()
Returns the number of kaleo process links.
|
static int |
countByKaleoProcessId(long kaleoProcessId)
Returns the number of kaleo process links where kaleoProcessId = ?.
|
static int |
countByKPI_WTN(long kaleoProcessId,
java.lang.String workflowTaskName)
Returns the number of kaleo process links where kaleoProcessId = ? and workflowTaskName = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KaleoProcessLink |
create(long kaleoProcessLinkId)
Creates a new kaleo process link with the primary key.
|
static KaleoProcessLink |
fetchByKaleoProcessId_First(long kaleoProcessId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns the first kaleo process link in the ordered set where kaleoProcessId = ?.
|
static KaleoProcessLink |
fetchByKaleoProcessId_Last(long kaleoProcessId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns the last kaleo process link in the ordered set where kaleoProcessId = ?.
|
static KaleoProcessLink |
fetchByKPI_WTN(long kaleoProcessId,
java.lang.String workflowTaskName)
Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or returns
null if it could not be found. |
static KaleoProcessLink |
fetchByKPI_WTN(long kaleoProcessId,
java.lang.String workflowTaskName,
boolean retrieveFromCache)
Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoProcessLink |
fetchByPrimaryKey(long kaleoProcessLinkId)
Returns the kaleo process link with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KaleoProcessLink> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<KaleoProcessLink> |
findAll()
Returns all the kaleo process links.
|
static java.util.List<KaleoProcessLink> |
findAll(int start,
int end)
Returns a range of all the kaleo process links.
|
static java.util.List<KaleoProcessLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns an ordered range of all the kaleo process links.
|
static java.util.List<KaleoProcessLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo process links.
|
static KaleoProcessLink |
findByKaleoProcessId_First(long kaleoProcessId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns the first kaleo process link in the ordered set where kaleoProcessId = ?.
|
static KaleoProcessLink |
findByKaleoProcessId_Last(long kaleoProcessId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns the last kaleo process link in the ordered set where kaleoProcessId = ?.
|
static KaleoProcessLink[] |
findByKaleoProcessId_PrevAndNext(long kaleoProcessLinkId,
long kaleoProcessId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns the kaleo process links before and after the current kaleo process link in the ordered set where kaleoProcessId = ?.
|
static java.util.List<KaleoProcessLink> |
findByKaleoProcessId(long kaleoProcessId)
Returns all the kaleo process links where kaleoProcessId = ?.
|
static java.util.List<KaleoProcessLink> |
findByKaleoProcessId(long kaleoProcessId,
int start,
int end)
Returns a range of all the kaleo process links where kaleoProcessId = ?.
|
static java.util.List<KaleoProcessLink> |
findByKaleoProcessId(long kaleoProcessId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
Returns an ordered range of all the kaleo process links where kaleoProcessId = ?.
|
static java.util.List<KaleoProcessLink> |
findByKaleoProcessId(long kaleoProcessId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo process links where kaleoProcessId = ?.
|
static KaleoProcessLink |
findByKPI_WTN(long kaleoProcessId,
java.lang.String workflowTaskName)
Returns the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? or throws a
NoSuchKaleoProcessLinkException if it could not be found. |
static KaleoProcessLink |
findByPrimaryKey(long kaleoProcessLinkId)
Returns the kaleo process link with the primary key or throws a
NoSuchKaleoProcessLinkException if it could not be found. |
static java.util.List<KaleoProcessLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KaleoProcessLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KaleoProcessLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) |
static KaleoProcessLinkPersistence |
getPersistence() |
static KaleoProcessLink |
remove(long kaleoProcessLinkId)
Removes the kaleo process link with the primary key from the database.
|
static void |
removeAll()
Removes all the kaleo process links from the database.
|
static void |
removeByKaleoProcessId(long kaleoProcessId)
Removes all the kaleo process links where kaleoProcessId = ? from the database.
|
static KaleoProcessLink |
removeByKPI_WTN(long kaleoProcessId,
java.lang.String workflowTaskName)
Removes the kaleo process link where kaleoProcessId = ? and workflowTaskName = ? from the database.
|
static KaleoProcessLink |
update(KaleoProcessLink kaleoProcessLink) |
static KaleoProcessLink |
update(KaleoProcessLink kaleoProcessLink,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoProcessLink |
updateImpl(KaleoProcessLink kaleoProcessLink) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KaleoProcessLink kaleoProcessLink)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoProcessLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoProcessLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KaleoProcessLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KaleoProcessLink update(KaleoProcessLink kaleoProcessLink)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KaleoProcessLink update(KaleoProcessLink kaleoProcessLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId)
kaleoProcessId
- the kaleo process IDpublic static java.util.List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoProcessId
- the kaleo process IDstart
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)public static java.util.List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoProcessId
- the kaleo process IDstart
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoProcessLink> findByKaleoProcessId(long kaleoProcessId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator, boolean retrieveFromCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoProcessId
- the kaleo process IDstart
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoProcessLink findByKaleoProcessId_First(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
kaleoProcessId
- the kaleo process IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoProcessLinkException
- if a matching kaleo process link could not be foundpublic static KaleoProcessLink fetchByKaleoProcessId_First(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
kaleoProcessId
- the kaleo process IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo process link could not be foundpublic static KaleoProcessLink findByKaleoProcessId_Last(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
kaleoProcessId
- the kaleo process IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoProcessLinkException
- if a matching kaleo process link could not be foundpublic static KaleoProcessLink fetchByKaleoProcessId_Last(long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
kaleoProcessId
- the kaleo process IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo process link could not be foundpublic static KaleoProcessLink[] findByKaleoProcessId_PrevAndNext(long kaleoProcessLinkId, long kaleoProcessId, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator) throws NoSuchKaleoProcessLinkException
kaleoProcessLinkId
- the primary key of the current kaleo process linkkaleoProcessId
- the kaleo process IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchKaleoProcessLinkException
- if a kaleo process link with the primary key could not be foundpublic static void removeByKaleoProcessId(long kaleoProcessId)
kaleoProcessId
- the kaleo process IDpublic static int countByKaleoProcessId(long kaleoProcessId)
kaleoProcessId
- the kaleo process IDpublic static KaleoProcessLink findByKPI_WTN(long kaleoProcessId, java.lang.String workflowTaskName) throws NoSuchKaleoProcessLinkException
NoSuchKaleoProcessLinkException
if it could not be found.kaleoProcessId
- the kaleo process IDworkflowTaskName
- the workflow task nameNoSuchKaleoProcessLinkException
- if a matching kaleo process link could not be foundpublic static KaleoProcessLink fetchByKPI_WTN(long kaleoProcessId, java.lang.String workflowTaskName)
null
if it could not be found. Uses the finder cache.kaleoProcessId
- the kaleo process IDworkflowTaskName
- the workflow task namenull
if a matching kaleo process link could not be foundpublic static KaleoProcessLink fetchByKPI_WTN(long kaleoProcessId, java.lang.String workflowTaskName, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.kaleoProcessId
- the kaleo process IDworkflowTaskName
- the workflow task nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching kaleo process link could not be foundpublic static KaleoProcessLink removeByKPI_WTN(long kaleoProcessId, java.lang.String workflowTaskName) throws NoSuchKaleoProcessLinkException
kaleoProcessId
- the kaleo process IDworkflowTaskName
- the workflow task nameNoSuchKaleoProcessLinkException
public static int countByKPI_WTN(long kaleoProcessId, java.lang.String workflowTaskName)
kaleoProcessId
- the kaleo process IDworkflowTaskName
- the workflow task namepublic static void cacheResult(KaleoProcessLink kaleoProcessLink)
kaleoProcessLink
- the kaleo process linkpublic static void cacheResult(java.util.List<KaleoProcessLink> kaleoProcessLinks)
kaleoProcessLinks
- the kaleo process linkspublic static KaleoProcessLink create(long kaleoProcessLinkId)
kaleoProcessLinkId
- the primary key for the new kaleo process linkpublic static KaleoProcessLink remove(long kaleoProcessLinkId) throws NoSuchKaleoProcessLinkException
kaleoProcessLinkId
- the primary key of the kaleo process linkNoSuchKaleoProcessLinkException
- if a kaleo process link with the primary key could not be foundpublic static KaleoProcessLink updateImpl(KaleoProcessLink kaleoProcessLink)
public static KaleoProcessLink findByPrimaryKey(long kaleoProcessLinkId) throws NoSuchKaleoProcessLinkException
NoSuchKaleoProcessLinkException
if it could not be found.kaleoProcessLinkId
- the primary key of the kaleo process linkNoSuchKaleoProcessLinkException
- if a kaleo process link with the primary key could not be foundpublic static KaleoProcessLink fetchByPrimaryKey(long kaleoProcessLinkId)
null
if it could not be found.kaleoProcessLinkId
- the primary key of the kaleo process linknull
if a kaleo process link with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KaleoProcessLink> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<KaleoProcessLink> findAll()
public static java.util.List<KaleoProcessLink> findAll(int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)public static java.util.List<KaleoProcessLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoProcessLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoProcessLink> orderByComparator, boolean retrieveFromCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoProcessLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo process linksend
- the upper bound of the range of kaleo process links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoProcessLinkPersistence getPersistence()