public class KaleoTransitionUtil
extends java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTransitionPersistenceImpl
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
KaleoTransitionPersistence
Constructor and Description |
---|
KaleoTransitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KaleoTransition kaleoTransition)
Caches the kaleo transition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KaleoTransition> kaleoTransitions)
Caches the kaleo transitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KaleoTransition kaleoTransition) |
static int |
countAll()
Returns the number of kaleo transitions.
|
static int |
countByCompanyId(long companyId)
Returns the number of kaleo transitions where companyId = ?.
|
static int |
countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Returns the number of kaleo transitions where kaleoDefinitionVersionId = ?.
|
static int |
countByKaleoNodeId(long kaleoNodeId)
Returns the number of kaleo transitions where kaleoNodeId = ?.
|
static int |
countByKNI_DT(long kaleoNodeId,
boolean defaultTransition)
Returns the number of kaleo transitions where kaleoNodeId = ? and defaultTransition = ?.
|
static int |
countByKNI_N(long kaleoNodeId,
java.lang.String name)
Returns the number of kaleo transitions where kaleoNodeId = ? and name = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KaleoTransition |
create(long kaleoTransitionId)
Creates a new kaleo transition with the primary key.
|
static KaleoTransition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where companyId = ?.
|
static KaleoTransition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where companyId = ?.
|
static KaleoTransition |
fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTransition |
fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTransition |
fetchByKaleoNodeId_First(long kaleoNodeId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where kaleoNodeId = ?.
|
static KaleoTransition |
fetchByKaleoNodeId_Last(long kaleoNodeId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where kaleoNodeId = ?.
|
static KaleoTransition |
fetchByKNI_DT(long kaleoNodeId,
boolean defaultTransition)
Returns the kaleo transition where kaleoNodeId = ? and defaultTransition = ? or returns
null if it could not be found. |
static KaleoTransition |
fetchByKNI_DT(long kaleoNodeId,
boolean defaultTransition,
boolean useFinderCache)
Returns the kaleo transition where kaleoNodeId = ? and defaultTransition = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoTransition |
fetchByKNI_N(long kaleoNodeId,
java.lang.String name)
Returns the kaleo transition where kaleoNodeId = ? and name = ? or returns
null if it could not be found. |
static KaleoTransition |
fetchByKNI_N(long kaleoNodeId,
java.lang.String name,
boolean useFinderCache)
Returns the kaleo transition where kaleoNodeId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoTransition |
fetchByPrimaryKey(long kaleoTransitionId)
Returns the kaleo transition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KaleoTransition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<KaleoTransition> |
findAll()
Returns all the kaleo transitions.
|
static java.util.List<KaleoTransition> |
findAll(int start,
int end)
Returns a range of all the kaleo transitions.
|
static java.util.List<KaleoTransition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns an ordered range of all the kaleo transitions.
|
static java.util.List<KaleoTransition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo transitions.
|
static KaleoTransition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where companyId = ?.
|
static KaleoTransition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where companyId = ?.
|
static KaleoTransition[] |
findByCompanyId_PrevAndNext(long kaleoTransitionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the kaleo transitions before and after the current kaleo transition in the ordered set where companyId = ?.
|
static java.util.List<KaleoTransition> |
findByCompanyId(long companyId)
Returns all the kaleo transitions where companyId = ?.
|
static java.util.List<KaleoTransition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo transitions where companyId = ?.
|
static java.util.List<KaleoTransition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns an ordered range of all the kaleo transitions where companyId = ?.
|
static java.util.List<KaleoTransition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo transitions where companyId = ?.
|
static KaleoTransition |
findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTransition |
findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTransition[] |
findByKaleoDefinitionVersionId_PrevAndNext(long kaleoTransitionId,
long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the kaleo transitions before and after the current kaleo transition in the ordered set where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Returns all the kaleo transitions where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end)
Returns a range of all the kaleo transitions where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns an ordered range of all the kaleo transitions where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo transitions where kaleoDefinitionVersionId = ?.
|
static KaleoTransition |
findByKaleoNodeId_First(long kaleoNodeId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the first kaleo transition in the ordered set where kaleoNodeId = ?.
|
static KaleoTransition |
findByKaleoNodeId_Last(long kaleoNodeId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the last kaleo transition in the ordered set where kaleoNodeId = ?.
|
static KaleoTransition[] |
findByKaleoNodeId_PrevAndNext(long kaleoTransitionId,
long kaleoNodeId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns the kaleo transitions before and after the current kaleo transition in the ordered set where kaleoNodeId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoNodeId(long kaleoNodeId)
Returns all the kaleo transitions where kaleoNodeId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoNodeId(long kaleoNodeId,
int start,
int end)
Returns a range of all the kaleo transitions where kaleoNodeId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoNodeId(long kaleoNodeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
Returns an ordered range of all the kaleo transitions where kaleoNodeId = ?.
|
static java.util.List<KaleoTransition> |
findByKaleoNodeId(long kaleoNodeId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo transitions where kaleoNodeId = ?.
|
static KaleoTransition |
findByKNI_DT(long kaleoNodeId,
boolean defaultTransition)
Returns the kaleo transition where kaleoNodeId = ? and defaultTransition = ? or throws a
NoSuchTransitionException if it could not be found. |
static KaleoTransition |
findByKNI_N(long kaleoNodeId,
java.lang.String name)
Returns the kaleo transition where kaleoNodeId = ? and name = ? or throws a
NoSuchTransitionException if it could not be found. |
static KaleoTransition |
findByPrimaryKey(long kaleoTransitionId)
Returns the kaleo transition with the primary key or throws a
NoSuchTransitionException if it could not be found. |
static java.util.List<KaleoTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KaleoTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KaleoTransition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) |
static KaleoTransitionPersistence |
getPersistence() |
static KaleoTransition |
remove(long kaleoTransitionId)
Removes the kaleo transition with the primary key from the database.
|
static void |
removeAll()
Removes all the kaleo transitions from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the kaleo transitions where companyId = ? from the database.
|
static void |
removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Removes all the kaleo transitions where kaleoDefinitionVersionId = ? from the database.
|
static void |
removeByKaleoNodeId(long kaleoNodeId)
Removes all the kaleo transitions where kaleoNodeId = ? from the database.
|
static KaleoTransition |
removeByKNI_DT(long kaleoNodeId,
boolean defaultTransition)
Removes the kaleo transition where kaleoNodeId = ? and defaultTransition = ? from the database.
|
static KaleoTransition |
removeByKNI_N(long kaleoNodeId,
java.lang.String name)
Removes the kaleo transition where kaleoNodeId = ? and name = ? from the database.
|
static KaleoTransition |
update(KaleoTransition kaleoTransition) |
static KaleoTransition |
update(KaleoTransition kaleoTransition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoTransition |
updateImpl(KaleoTransition kaleoTransition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KaleoTransition kaleoTransition)
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.Map<java.io.Serializable,KaleoTransition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<KaleoTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KaleoTransition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KaleoTransition update(KaleoTransition kaleoTransition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KaleoTransition update(KaleoTransition kaleoTransition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KaleoTransition> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoTransition> findByCompanyId(long companyId, 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)public static java.util.List<KaleoTransition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTransition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static KaleoTransition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition[] findByCompanyId_PrevAndNext(long kaleoTransitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoTransitionId
- the primary key of the current kaleo transitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a kaleo transition with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoTransition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version IDpublic static java.util.List<KaleoTransition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)public static java.util.List<KaleoTransition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTransition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static KaleoTransition findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition[] findByKaleoDefinitionVersionId_PrevAndNext(long kaleoTransitionId, long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoTransitionId
- the primary key of the current kaleo transitionkaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a kaleo transition with the primary key could not be foundpublic static void removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version IDpublic static int countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version IDpublic static java.util.List<KaleoTransition> findByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDpublic static java.util.List<KaleoTransition> findByKaleoNodeId(long kaleoNodeId, 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoNodeId
- the kaleo node IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)public static java.util.List<KaleoTransition> findByKaleoNodeId(long kaleoNodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoNodeId
- the kaleo node IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTransition> findByKaleoNodeId(long kaleoNodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
kaleoNodeId
- the kaleo node IDstart
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static KaleoTransition findByKaleoNodeId_First(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoNodeId
- the kaleo node IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKaleoNodeId_First(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
kaleoNodeId
- the kaleo node IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition findByKaleoNodeId_Last(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoNodeId
- the kaleo node IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKaleoNodeId_Last(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator)
kaleoNodeId
- the kaleo node IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo transition could not be foundpublic static KaleoTransition[] findByKaleoNodeId_PrevAndNext(long kaleoTransitionId, long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator) throws NoSuchTransitionException
kaleoTransitionId
- the primary key of the current kaleo transitionkaleoNodeId
- the kaleo node IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTransitionException
- if a kaleo transition with the primary key could not be foundpublic static void removeByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDpublic static int countByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDpublic static KaleoTransition findByKNI_N(long kaleoNodeId, java.lang.String name) throws NoSuchTransitionException
NoSuchTransitionException
if it could not be found.kaleoNodeId
- the kaleo node IDname
- the nameNoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKNI_N(long kaleoNodeId, java.lang.String name)
null
if it could not be found. Uses the finder cache.kaleoNodeId
- the kaleo node IDname
- the namenull
if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKNI_N(long kaleoNodeId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.kaleoNodeId
- the kaleo node IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching kaleo transition could not be foundpublic static KaleoTransition removeByKNI_N(long kaleoNodeId, java.lang.String name) throws NoSuchTransitionException
kaleoNodeId
- the kaleo node IDname
- the nameNoSuchTransitionException
public static int countByKNI_N(long kaleoNodeId, java.lang.String name)
kaleoNodeId
- the kaleo node IDname
- the namepublic static KaleoTransition findByKNI_DT(long kaleoNodeId, boolean defaultTransition) throws NoSuchTransitionException
NoSuchTransitionException
if it could not be found.kaleoNodeId
- the kaleo node IDdefaultTransition
- the default transitionNoSuchTransitionException
- if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKNI_DT(long kaleoNodeId, boolean defaultTransition)
null
if it could not be found. Uses the finder cache.kaleoNodeId
- the kaleo node IDdefaultTransition
- the default transitionnull
if a matching kaleo transition could not be foundpublic static KaleoTransition fetchByKNI_DT(long kaleoNodeId, boolean defaultTransition, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.kaleoNodeId
- the kaleo node IDdefaultTransition
- the default transitionuseFinderCache
- whether to use the finder cachenull
if a matching kaleo transition could not be foundpublic static KaleoTransition removeByKNI_DT(long kaleoNodeId, boolean defaultTransition) throws NoSuchTransitionException
kaleoNodeId
- the kaleo node IDdefaultTransition
- the default transitionNoSuchTransitionException
public static int countByKNI_DT(long kaleoNodeId, boolean defaultTransition)
kaleoNodeId
- the kaleo node IDdefaultTransition
- the default transitionpublic static void cacheResult(KaleoTransition kaleoTransition)
kaleoTransition
- the kaleo transitionpublic static void cacheResult(java.util.List<KaleoTransition> kaleoTransitions)
kaleoTransitions
- the kaleo transitionspublic static KaleoTransition create(long kaleoTransitionId)
kaleoTransitionId
- the primary key for the new kaleo transitionpublic static KaleoTransition remove(long kaleoTransitionId) throws NoSuchTransitionException
kaleoTransitionId
- the primary key of the kaleo transitionNoSuchTransitionException
- if a kaleo transition with the primary key could not be foundpublic static KaleoTransition updateImpl(KaleoTransition kaleoTransition)
public static KaleoTransition findByPrimaryKey(long kaleoTransitionId) throws NoSuchTransitionException
NoSuchTransitionException
if it could not be found.kaleoTransitionId
- the primary key of the kaleo transitionNoSuchTransitionException
- if a kaleo transition with the primary key could not be foundpublic static KaleoTransition fetchByPrimaryKey(long kaleoTransitionId)
null
if it could not be found.kaleoTransitionId
- the primary key of the kaleo transitionnull
if a kaleo transition with the primary key could not be foundpublic static java.util.List<KaleoTransition> findAll()
public static java.util.List<KaleoTransition> 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
start
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)public static java.util.List<KaleoTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> 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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
start
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTransition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTransition> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from KaleoTransitionModelImpl
.
start
- the lower bound of the range of kaleo transitionsend
- the upper bound of the range of kaleo transitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoTransitionPersistence getPersistence()