Class DispatchLogUtil

java.lang.Object
com.liferay.dispatch.service.persistence.DispatchLogUtil

public class DispatchLogUtil extends Object
The persistence utility for the dispatch log service. This utility wraps com.liferay.dispatch.service.persistence.impl.DispatchLogPersistenceImpl 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

    • DispatchLogUtil

      public DispatchLogUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static DispatchLog update(DispatchLog dispatchLog, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByDispatchTriggerId

      public static List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId)
      Returns all the dispatch logs where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      Returns:
      the matching dispatch logs
    • findByDispatchTriggerId

      public static List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end)
      Returns a range of all the dispatch logs where dispatchTriggerId = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (not inclusive)
      Returns:
      the range of matching dispatch logs
    • findByDispatchTriggerId

      public static List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns an ordered range of all the dispatch logs where dispatchTriggerId = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching dispatch logs
    • findByDispatchTriggerId

      public static List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the dispatch logs where dispatchTriggerId = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (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 dispatch logs
    • findByDispatchTriggerId_First

      public static DispatchLog findByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the first dispatch log in the ordered set where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dispatch log
    • fetchByDispatchTriggerId_First

      public static DispatchLog fetchByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns the first dispatch log in the ordered set where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dispatch log, or null if a matching dispatch log could not be found
    • findByDispatchTriggerId_Last

      public static DispatchLog findByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the last dispatch log in the ordered set where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dispatch log
    • fetchByDispatchTriggerId_Last

      public static DispatchLog fetchByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns the last dispatch log in the ordered set where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dispatch log, or null if a matching dispatch log could not be found
    • findByDispatchTriggerId_PrevAndNext

      public static DispatchLog[] findByDispatchTriggerId_PrevAndNext(long dispatchLogId, long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the dispatch logs before and after the current dispatch log in the ordered set where dispatchTriggerId = ?.
      Parameters:
      dispatchLogId - the primary key of the current dispatch log
      dispatchTriggerId - the dispatch trigger ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next dispatch log
    • removeByDispatchTriggerId

      public static void removeByDispatchTriggerId(long dispatchTriggerId)
      Removes all the dispatch logs where dispatchTriggerId = ? from the database.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
    • countByDispatchTriggerId

      public static int countByDispatchTriggerId(long dispatchTriggerId)
      Returns the number of dispatch logs where dispatchTriggerId = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      Returns:
      the number of matching dispatch logs
    • findByDTI_S

      public static List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status)
      Returns all the dispatch logs where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      Returns:
      the matching dispatch logs
    • findByDTI_S

      public static List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end)
      Returns a range of all the dispatch logs where dispatchTriggerId = ? and status = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (not inclusive)
      Returns:
      the range of matching dispatch logs
    • findByDTI_S

      public static List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns an ordered range of all the dispatch logs where dispatchTriggerId = ? and status = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching dispatch logs
    • findByDTI_S

      public static List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the dispatch logs where dispatchTriggerId = ? and status = ?.

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

      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (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 dispatch logs
    • findByDTI_S_First

      public static DispatchLog findByDTI_S_First(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the first dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dispatch log
    • fetchByDTI_S_First

      public static DispatchLog fetchByDTI_S_First(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns the first dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dispatch log, or null if a matching dispatch log could not be found
    • findByDTI_S_Last

      public static DispatchLog findByDTI_S_Last(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the last dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dispatch log
    • fetchByDTI_S_Last

      public static DispatchLog fetchByDTI_S_Last(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
      Returns the last dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching dispatch log, or null if a matching dispatch log could not be found
    • findByDTI_S_PrevAndNext

      public static DispatchLog[] findByDTI_S_PrevAndNext(long dispatchLogId, long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
      Returns the dispatch logs before and after the current dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchLogId - the primary key of the current dispatch log
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next dispatch log
    • removeByDTI_S

      public static void removeByDTI_S(long dispatchTriggerId, int status)
      Removes all the dispatch logs where dispatchTriggerId = ? and status = ? from the database.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
    • countByDTI_S

      public static int countByDTI_S(long dispatchTriggerId, int status)
      Returns the number of dispatch logs where dispatchTriggerId = ? and status = ?.
      Parameters:
      dispatchTriggerId - the dispatch trigger ID
      status - the status
      Returns:
      the number of matching dispatch logs
    • cacheResult

      public static void cacheResult(DispatchLog dispatchLog)
      Caches the dispatch log in the entity cache if it is enabled.
      Parameters:
      dispatchLog - the dispatch log
    • cacheResult

      public static void cacheResult(List<DispatchLog> dispatchLogs)
      Caches the dispatch logs in the entity cache if it is enabled.
      Parameters:
      dispatchLogs - the dispatch logs
    • create

      public static DispatchLog create(long dispatchLogId)
      Creates a new dispatch log with the primary key. Does not add the dispatch log to the database.
      Parameters:
      dispatchLogId - the primary key for the new dispatch log
      Returns:
      the new dispatch log
    • remove

      public static DispatchLog remove(long dispatchLogId) throws NoSuchLogException
      Removes the dispatch log with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      dispatchLogId - the primary key of the dispatch log
      Returns:
      the dispatch log that was removed
    • updateImpl

      public static DispatchLog updateImpl(DispatchLog dispatchLog)
    • findByPrimaryKey

      public static DispatchLog findByPrimaryKey(long dispatchLogId) throws NoSuchLogException
      Returns the dispatch log with the primary key or throws a NoSuchLogException if it could not be found.
      Parameters:
      dispatchLogId - the primary key of the dispatch log
      Returns:
      the dispatch log
    • fetchByPrimaryKey

      public static DispatchLog fetchByPrimaryKey(long dispatchLogId)
      Returns the dispatch log with the primary key or returns null if it could not be found.
      Parameters:
      dispatchLogId - the primary key of the dispatch log
      Returns:
      the dispatch log, or null if a dispatch log with the primary key could not be found
    • findAll

      public static List<DispatchLog> findAll()
      Returns all the dispatch logs.
      Returns:
      the dispatch logs
    • findAll

      public static List<DispatchLog> findAll(int start, int end)
      Returns a range of all the dispatch logs.

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

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

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

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

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

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

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

      Parameters:
      start - the lower bound of the range of dispatch logs
      end - the upper bound of the range of dispatch logs (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of dispatch logs
    • removeAll

      public static void removeAll()
      Removes all the dispatch logs from the database.
    • countAll

      public static int countAll()
      Returns the number of dispatch logs.
      Returns:
      the number of dispatch logs
    • getPersistence

      public static DispatchLogPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DispatchLogPersistence persistence)