Class KaleoConditionUtil

java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.KaleoConditionUtil

public class KaleoConditionUtil extends Object
The persistence utility for the kaleo condition service. This utility wraps 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 Details

    • KaleoConditionUtil

      public KaleoConditionUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(KaleoCondition kaleoCondition)
      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

      public static Map<Serializable,KaleoCondition> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      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

      public static KaleoCondition update(KaleoCondition kaleoCondition)
      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

      public static List<KaleoCondition> findByCompanyId(long companyId)
      Returns all the kaleo conditions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching kaleo conditions
    • findByCompanyId

      public static List<KaleoCondition> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the kaleo conditions where companyId = ?.

      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 KaleoConditionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo conditions
      end - 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 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 KaleoConditionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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 KaleoConditionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo condition
      Throws:
      NoSuchConditionException - if a matching kaleo condition could not be found
      NoSuchConditionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo condition
      Throws:
      NoSuchConditionException - if a matching kaleo condition could not be found
      NoSuchConditionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 condition
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo condition
      Throws:
      NoSuchConditionException - if a kaleo condition with the primary key could not be found
      NoSuchConditionException
    • 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

      public static List<KaleoCondition> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
      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 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 KaleoConditionModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo conditions
      end - 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 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 KaleoConditionModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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 KaleoConditionModelImpl.

      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo condition
      Throws:
      NoSuchConditionException - if a matching kaleo condition could not be found
      NoSuchConditionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo condition
      Throws:
      NoSuchConditionException - if a matching kaleo condition could not be found
      NoSuchConditionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 condition
      kaleoDefinitionVersionId - the kaleo definition version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo condition
      Throws:
      NoSuchConditionException - if a kaleo condition with the primary key could not be found
      NoSuchConditionException
    • 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

      public static KaleoCondition findByKaleoNodeId(long kaleoNodeId) throws NoSuchConditionException
      Returns the kaleo condition where kaleoNodeId = ? or throws a NoSuchConditionException 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 found
      NoSuchConditionException
    • fetchByKaleoNodeId

      public static KaleoCondition fetchByKaleoNodeId(long kaleoNodeId)
      Returns the kaleo condition where kaleoNodeId = ? or returns null 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

      public static KaleoCondition fetchByKaleoNodeId(long kaleoNodeId, boolean useFinderCache)
      Returns the kaleo condition where kaleoNodeId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      kaleoNodeId - the kaleo node ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kaleo condition, or null if a matching kaleo condition could not be found
    • removeByKaleoNodeId

      public static KaleoCondition removeByKaleoNodeId(long kaleoNodeId) throws NoSuchConditionException
      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

      public static void cacheResult(KaleoCondition kaleoCondition)
      Caches the kaleo condition in the entity cache if it is enabled.
      Parameters:
      kaleoCondition - the kaleo condition
    • cacheResult

      public static void cacheResult(List<KaleoCondition> kaleoConditions)
      Caches the kaleo conditions in the entity cache if it is enabled.
      Parameters:
      kaleoConditions - the kaleo conditions
    • create

      public static KaleoCondition create(long kaleoConditionId)
      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

      public static KaleoCondition remove(long kaleoConditionId) throws NoSuchConditionException
      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 found
      NoSuchConditionException
    • updateImpl

      public static KaleoCondition updateImpl(KaleoCondition kaleoCondition)
    • findByPrimaryKey

      public static KaleoCondition findByPrimaryKey(long kaleoConditionId) throws NoSuchConditionException
      Returns the kaleo condition with the primary key or throws a NoSuchConditionException 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 found
      NoSuchConditionException
    • fetchByPrimaryKey

      public static KaleoCondition fetchByPrimaryKey(long kaleoConditionId)
      Returns the kaleo condition with the primary key or returns null 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

      public static List<KaleoCondition> findAll()
      Returns all the kaleo conditions.
      Returns:
      the kaleo conditions
    • findAll

      public static List<KaleoCondition> findAll(int start, int end)
      Returns a range of all the kaleo conditions.

      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 KaleoConditionModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo conditions
      end - 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 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 KaleoConditionModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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 KaleoConditionModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo conditions
      end - the upper bound of the range of kaleo conditions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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

      public static KaleoConditionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoConditionPersistence persistence)