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

public class KaleoTimerUtil extends Object
The persistence utility for the kaleo timer service. This utility wraps com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTimerPersistenceImpl 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

    • KaleoTimerUtil

      public KaleoTimerUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(KaleoTimer kaleoTimer)
      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,KaleoTimer> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<KaleoTimer> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<KaleoTimer> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<KaleoTimer> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static KaleoTimer update(KaleoTimer kaleoTimer)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static KaleoTimer update(KaleoTimer kaleoTimer, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByKCN_KCPK

      public static List<KaleoTimer> findByKCN_KCPK(String kaleoClassName, long kaleoClassPK)
      Returns all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      Returns:
      the matching kaleo timers
    • findByKCN_KCPK

      public static List<KaleoTimer> findByKCN_KCPK(String kaleoClassName, long kaleoClassPK, int start, int end)
      Returns a range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      Returns:
      the range of matching kaleo timers
    • findByKCN_KCPK

      public static List<KaleoTimer> findByKCN_KCPK(String kaleoClassName, long kaleoClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      Returns an ordered range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo timers
    • findByKCN_KCPK

      public static List<KaleoTimer> findByKCN_KCPK(String kaleoClassName, long kaleoClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (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 timers
    • findByKCN_KCPK_First

      public static KaleoTimer findByKCN_KCPK_First(String kaleoClassName, long kaleoClassPK, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator) throws NoSuchTimerException
      Returns the first kaleo timer in the ordered set where kaleoClassName = ? and kaleoClassPK = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo timer
    • fetchByKCN_KCPK_First

      public static KaleoTimer fetchByKCN_KCPK_First(String kaleoClassName, long kaleoClassPK, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      Returns the first kaleo timer in the ordered set where kaleoClassName = ? and kaleoClassPK = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo timer, or null if a matching kaleo timer could not be found
    • removeByKCN_KCPK

      public static void removeByKCN_KCPK(String kaleoClassName, long kaleoClassPK)
      Removes all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? from the database.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
    • countByKCN_KCPK

      public static int countByKCN_KCPK(String kaleoClassName, long kaleoClassPK)
      Returns the number of kaleo timers where kaleoClassName = ? and kaleoClassPK = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      Returns:
      the number of matching kaleo timers
    • findByKCN_KCPK_Blocking

      public static List<KaleoTimer> findByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking)
      Returns all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      Returns:
      the matching kaleo timers
    • findByKCN_KCPK_Blocking

      public static List<KaleoTimer> findByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking, int start, int end)
      Returns a range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      Returns:
      the range of matching kaleo timers
    • findByKCN_KCPK_Blocking

      public static List<KaleoTimer> findByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      Returns an ordered range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo timers
    • findByKCN_KCPK_Blocking

      public static List<KaleoTimer> findByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (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 timers
    • findByKCN_KCPK_Blocking_First

      public static KaleoTimer findByKCN_KCPK_Blocking_First(String kaleoClassName, long kaleoClassPK, boolean blocking, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator) throws NoSuchTimerException
      Returns the first kaleo timer in the ordered set where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo timer
    • fetchByKCN_KCPK_Blocking_First

      public static KaleoTimer fetchByKCN_KCPK_Blocking_First(String kaleoClassName, long kaleoClassPK, boolean blocking, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      Returns the first kaleo timer in the ordered set where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo timer, or null if a matching kaleo timer could not be found
    • removeByKCN_KCPK_Blocking

      public static void removeByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking)
      Removes all the kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ? from the database.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
    • countByKCN_KCPK_Blocking

      public static int countByKCN_KCPK_Blocking(String kaleoClassName, long kaleoClassPK, boolean blocking)
      Returns the number of kaleo timers where kaleoClassName = ? and kaleoClassPK = ? and blocking = ?.
      Parameters:
      kaleoClassName - the kaleo class name
      kaleoClassPK - the kaleo class pk
      blocking - the blocking
      Returns:
      the number of matching kaleo timers
    • cacheResult

      public static void cacheResult(KaleoTimer kaleoTimer)
      Caches the kaleo timer in the entity cache if it is enabled.
      Parameters:
      kaleoTimer - the kaleo timer
    • cacheResult

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

      public static KaleoTimer create(long kaleoTimerId)
      Creates a new kaleo timer with the primary key. Does not add the kaleo timer to the database.
      Parameters:
      kaleoTimerId - the primary key for the new kaleo timer
      Returns:
      the new kaleo timer
    • remove

      public static KaleoTimer remove(long kaleoTimerId) throws NoSuchTimerException
      Removes the kaleo timer with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kaleoTimerId - the primary key of the kaleo timer
      Returns:
      the kaleo timer that was removed
    • updateImpl

      public static KaleoTimer updateImpl(KaleoTimer kaleoTimer)
    • findByPrimaryKey

      public static KaleoTimer findByPrimaryKey(long kaleoTimerId) throws NoSuchTimerException
      Returns the kaleo timer with the primary key or throws a NoSuchTimerException if it could not be found.
      Parameters:
      kaleoTimerId - the primary key of the kaleo timer
      Returns:
      the kaleo timer
    • fetchByPrimaryKey

      public static KaleoTimer fetchByPrimaryKey(long kaleoTimerId)
      Returns the kaleo timer with the primary key or returns null if it could not be found.
      Parameters:
      kaleoTimerId - the primary key of the kaleo timer
      Returns:
      the kaleo timer, or null if a kaleo timer with the primary key could not be found
    • findAll

      public static List<KaleoTimer> findAll()
      Returns all the kaleo timers.
      Returns:
      the kaleo timers
    • findAll

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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      Returns:
      the range of kaleo timers
    • findAll

      public static List<KaleoTimer> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator)
      Returns an ordered range of all the kaleo timers.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of kaleo timers
    • findAll

      public static List<KaleoTimer> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTimer> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo timers.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoTimerModelImpl.

      Parameters:
      start - the lower bound of the range of kaleo timers
      end - the upper bound of the range of kaleo timers (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 timers
    • removeAll

      public static void removeAll()
      Removes all the kaleo timers from the database.
    • countAll

      public static int countAll()
      Returns the number of kaleo timers.
      Returns:
      the number of kaleo timers
    • getPersistence

      public static KaleoTimerPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoTimerPersistence persistence)