Class KaleoConditionUtil
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoConditionPersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(KaleoCondition kaleoCondition) Caches the kaleo condition in the entity cache if it is enabled.static void
cacheResult
(List<KaleoCondition> kaleoConditions) Caches the kaleo conditions in the entity cache if it is enabled.static void
static void
clearCache
(KaleoCondition kaleoCondition) static int
countAll()
Returns the number of kaleo conditions.static int
countByCompanyId
(long companyId) Returns the number of kaleo conditions where companyId = ?.static int
countByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId) Returns the number of kaleo conditions where kaleoDefinitionVersionId = ?.static int
countByKaleoNodeId
(long kaleoNodeId) Returns the number of kaleo conditions where kaleoNodeId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static KaleoCondition
create
(long kaleoConditionId) Creates a new kaleo condition with the primary key.static KaleoCondition
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where companyId = ?.static KaleoCondition
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where companyId = ?.static KaleoCondition
fetchByKaleoDefinitionVersionId_First
(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.static KaleoCondition
fetchByKaleoDefinitionVersionId_Last
(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.static KaleoCondition
fetchByKaleoNodeId
(long kaleoNodeId) Returns the kaleo condition where kaleoNodeId = ? or returnsnull
if it could not be found.static KaleoCondition
fetchByKaleoNodeId
(long kaleoNodeId, boolean useFinderCache) Returns the kaleo condition where kaleoNodeId = ? or returnsnull
if it could not be found, optionally using the finder cache.static KaleoCondition
fetchByPrimaryKey
(long kaleoConditionId) Returns the kaleo condition with the primary key or returnsnull
if it could not be found.static Map<Serializable,
KaleoCondition> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<KaleoCondition>
findAll()
Returns all the kaleo conditions.static List<KaleoCondition>
findAll
(int start, int end) Returns a range of all the kaleo conditions.static List<KaleoCondition>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions.static List<KaleoCondition>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions.static List<KaleoCondition>
findByCompanyId
(long companyId) Returns all the kaleo conditions where companyId = ?.static List<KaleoCondition>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the kaleo conditions where companyId = ?.static List<KaleoCondition>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions where companyId = ?.static List<KaleoCondition>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions where companyId = ?.static KaleoCondition
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where companyId = ?.static KaleoCondition
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where companyId = ?.static KaleoCondition[]
findByCompanyId_PrevAndNext
(long kaleoConditionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the kaleo conditions before and after the current kaleo condition in the ordered set where companyId = ?.static List<KaleoCondition>
findByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId) Returns all the kaleo conditions where kaleoDefinitionVersionId = ?.static List<KaleoCondition>
findByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId, int start, int end) Returns a range of all the kaleo conditions where kaleoDefinitionVersionId = ?.static List<KaleoCondition>
findByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions where kaleoDefinitionVersionId = ?.static List<KaleoCondition>
findByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions where kaleoDefinitionVersionId = ?.static KaleoCondition
findByKaleoDefinitionVersionId_First
(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.static KaleoCondition
findByKaleoDefinitionVersionId_Last
(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.static KaleoCondition[]
findByKaleoDefinitionVersionId_PrevAndNext
(long kaleoConditionId, long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the kaleo conditions before and after the current kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.static KaleoCondition
findByKaleoNodeId
(long kaleoNodeId) Returns the kaleo condition where kaleoNodeId = ? or throws aNoSuchConditionException
if it could not be found.static KaleoCondition
findByPrimaryKey
(long kaleoConditionId) Returns the kaleo condition with the primary key or throws aNoSuchConditionException
if it could not be found.static List<KaleoCondition>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<KaleoCondition>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<KaleoCondition>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) static KaleoConditionPersistence
static KaleoCondition
remove
(long kaleoConditionId) Removes the kaleo condition with the primary key from the database.static void
Removes all the kaleo conditions from the database.static void
removeByCompanyId
(long companyId) Removes all the kaleo conditions where companyId = ? from the database.static void
removeByKaleoDefinitionVersionId
(long kaleoDefinitionVersionId) Removes all the kaleo conditions where kaleoDefinitionVersionId = ? from the database.static KaleoCondition
removeByKaleoNodeId
(long kaleoNodeId) Removes the kaleo condition where kaleoNodeId = ? from the database.static void
setPersistence
(KaleoConditionPersistence persistence) static KaleoCondition
update
(KaleoCondition kaleoCondition) static KaleoCondition
update
(KaleoCondition kaleoCondition, com.liferay.portal.kernel.service.ServiceContext serviceContext) static KaleoCondition
updateImpl
(KaleoCondition kaleoCondition)
-
Constructor Details
-
KaleoConditionUtil
public KaleoConditionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<KaleoCondition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<KaleoCondition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<KaleoCondition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static KaleoCondition update(KaleoCondition kaleoCondition, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCompanyId
Returns all the kaleo conditions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching kaleo conditions
-
findByCompanyId
Returns a range of all the kaleo conditions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)- Returns:
- the range of matching kaleo conditions
-
findByCompanyId
public static List<KaleoCondition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kaleo conditions
-
findByCompanyId
public static List<KaleoCondition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kaleo conditions
-
findByCompanyId_First
public static KaleoCondition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the first kaleo condition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo condition
- Throws:
NoSuchConditionException
- if a matching kaleo condition could not be foundNoSuchConditionException
-
fetchByCompanyId_First
public static KaleoCondition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
findByCompanyId_Last
public static KaleoCondition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the last kaleo condition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo condition
- Throws:
NoSuchConditionException
- if a matching kaleo condition could not be foundNoSuchConditionException
-
fetchByCompanyId_Last
public static KaleoCondition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
findByCompanyId_PrevAndNext
public static KaleoCondition[] findByCompanyId_PrevAndNext(long kaleoConditionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the kaleo conditions before and after the current kaleo condition in the ordered set where companyId = ?.- Parameters:
kaleoConditionId
- the primary key of the current kaleo conditioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kaleo condition
- Throws:
NoSuchConditionException
- if a kaleo condition with the primary key could not be foundNoSuchConditionException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the kaleo conditions where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of kaleo conditions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching kaleo conditions
-
findByKaleoDefinitionVersionId
Returns all the kaleo conditions where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version ID- Returns:
- the matching kaleo conditions
-
findByKaleoDefinitionVersionId
public static List<KaleoCondition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end) Returns a range of all the kaleo conditions where kaleoDefinitionVersionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)- Returns:
- the range of matching kaleo conditions
-
findByKaleoDefinitionVersionId
public static List<KaleoCondition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions where kaleoDefinitionVersionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching kaleo conditions
-
findByKaleoDefinitionVersionId
public static List<KaleoCondition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions where kaleoDefinitionVersionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDstart
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching kaleo conditions
-
findByKaleoDefinitionVersionId_First
public static KaleoCondition findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the first kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo condition
- Throws:
NoSuchConditionException
- if a matching kaleo condition could not be foundNoSuchConditionException
-
fetchByKaleoDefinitionVersionId_First
public static KaleoCondition fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the first kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
findByKaleoDefinitionVersionId_Last
public static KaleoCondition findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the last kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo condition
- Throws:
NoSuchConditionException
- if a matching kaleo condition could not be foundNoSuchConditionException
-
fetchByKaleoDefinitionVersionId_Last
public static KaleoCondition fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns the last kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
findByKaleoDefinitionVersionId_PrevAndNext
public static KaleoCondition[] findByKaleoDefinitionVersionId_PrevAndNext(long kaleoConditionId, long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) throws NoSuchConditionException Returns the kaleo conditions before and after the current kaleo condition in the ordered set where kaleoDefinitionVersionId = ?.- Parameters:
kaleoConditionId
- the primary key of the current kaleo conditionkaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next kaleo condition
- Throws:
NoSuchConditionException
- if a kaleo condition with the primary key could not be foundNoSuchConditionException
-
removeByKaleoDefinitionVersionId
public static void removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId) Removes all the kaleo conditions where kaleoDefinitionVersionId = ? from the database.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version ID
-
countByKaleoDefinitionVersionId
public static int countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId) Returns the number of kaleo conditions where kaleoDefinitionVersionId = ?.- Parameters:
kaleoDefinitionVersionId
- the kaleo definition version ID- Returns:
- the number of matching kaleo conditions
-
findByKaleoNodeId
Returns the kaleo condition where kaleoNodeId = ? or throws aNoSuchConditionException
if it could not be found.- Parameters:
kaleoNodeId
- the kaleo node ID- Returns:
- the matching kaleo condition
- Throws:
NoSuchConditionException
- if a matching kaleo condition could not be foundNoSuchConditionException
-
fetchByKaleoNodeId
Returns the kaleo condition where kaleoNodeId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
kaleoNodeId
- the kaleo node ID- Returns:
- the matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
fetchByKaleoNodeId
Returns the kaleo condition where kaleoNodeId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
kaleoNodeId
- the kaleo node IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching kaleo condition, or
null
if a matching kaleo condition could not be found
-
removeByKaleoNodeId
Removes the kaleo condition where kaleoNodeId = ? from the database.- Parameters:
kaleoNodeId
- the kaleo node ID- Returns:
- the kaleo condition that was removed
- Throws:
NoSuchConditionException
-
countByKaleoNodeId
public static int countByKaleoNodeId(long kaleoNodeId) Returns the number of kaleo conditions where kaleoNodeId = ?.- Parameters:
kaleoNodeId
- the kaleo node ID- Returns:
- the number of matching kaleo conditions
-
cacheResult
Caches the kaleo condition in the entity cache if it is enabled.- Parameters:
kaleoCondition
- the kaleo condition
-
cacheResult
Caches the kaleo conditions in the entity cache if it is enabled.- Parameters:
kaleoConditions
- the kaleo conditions
-
create
Creates a new kaleo condition with the primary key. Does not add the kaleo condition to the database.- Parameters:
kaleoConditionId
- the primary key for the new kaleo condition- Returns:
- the new kaleo condition
-
remove
Removes the kaleo condition with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
kaleoConditionId
- the primary key of the kaleo condition- Returns:
- the kaleo condition that was removed
- Throws:
NoSuchConditionException
- if a kaleo condition with the primary key could not be foundNoSuchConditionException
-
updateImpl
-
findByPrimaryKey
public static KaleoCondition findByPrimaryKey(long kaleoConditionId) throws NoSuchConditionException Returns the kaleo condition with the primary key or throws aNoSuchConditionException
if it could not be found.- Parameters:
kaleoConditionId
- the primary key of the kaleo condition- Returns:
- the kaleo condition
- Throws:
NoSuchConditionException
- if a kaleo condition with the primary key could not be foundNoSuchConditionException
-
fetchByPrimaryKey
Returns the kaleo condition with the primary key or returnsnull
if it could not be found.- Parameters:
kaleoConditionId
- the primary key of the kaleo condition- Returns:
- the kaleo condition, or
null
if a kaleo condition with the primary key could not be found
-
findAll
Returns all the kaleo conditions.- Returns:
- the kaleo conditions
-
findAll
Returns a range of all the kaleo conditions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)- Returns:
- the range of kaleo conditions
-
findAll
public static List<KaleoCondition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator) Returns an ordered range of all the kaleo conditions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of kaleo conditions
-
findAll
public static List<KaleoCondition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoCondition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the kaleo conditions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromKaleoConditionModelImpl
.- Parameters:
start
- the lower bound of the range of kaleo conditionsend
- the upper bound of the range of kaleo conditions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of kaleo conditions
-
removeAll
public static void removeAll()Removes all the kaleo conditions from the database. -
countAll
public static int countAll()Returns the number of kaleo conditions.- Returns:
- the number of kaleo conditions
-
getPersistence
-
setPersistence
-