Class DispatchLogUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(DispatchLog dispatchLog) Caches the dispatch log in the entity cache if it is enabled.static voidcacheResult(List<DispatchLog> dispatchLogs) Caches the dispatch logs in the entity cache if it is enabled.static voidstatic voidclearCache(DispatchLog dispatchLog) static intcountAll()Returns the number of dispatch logs.static intcountByDispatchTriggerId(long dispatchTriggerId) Returns the number of dispatch logs where dispatchTriggerId = ?.static intcountByDTI_S(long dispatchTriggerId, int status) Returns the number of dispatch logs where dispatchTriggerId = ? and status = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DispatchLogcreate(long dispatchLogId) Creates a new dispatch log with the primary key.static DispatchLogfetchByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the first dispatch log in the ordered set where dispatchTriggerId = ?.static DispatchLogfetchByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the last dispatch log in the ordered set where dispatchTriggerId = ?.static DispatchLogfetchByDTI_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 = ?.static DispatchLogfetchByDTI_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 = ?.static DispatchLogfetchByPrimaryKey(long dispatchLogId) Returns the dispatch log with the primary key or returnsnullif it could not be found.static Map<Serializable,DispatchLog> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<DispatchLog>findAll()Returns all the dispatch logs.static List<DispatchLog>findAll(int start, int end) Returns a range of all the dispatch logs.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.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.static List<DispatchLog>findByDispatchTriggerId(long dispatchTriggerId) Returns all the dispatch logs where dispatchTriggerId = ?.static List<DispatchLog>findByDispatchTriggerId(long dispatchTriggerId, int start, int end) Returns a range of all the dispatch logs where dispatchTriggerId = ?.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 = ?.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 = ?.static DispatchLogfindByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the first dispatch log in the ordered set where dispatchTriggerId = ?.static DispatchLogfindByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the last dispatch log in the ordered set where dispatchTriggerId = ?.static DispatchLog[]findByDispatchTriggerId_PrevAndNext(long dispatchLogId, long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the dispatch logs before and after the current dispatch log in the ordered set where dispatchTriggerId = ?.static List<DispatchLog>findByDTI_S(long dispatchTriggerId, int status) Returns all the dispatch logs where dispatchTriggerId = ? and status = ?.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 = ?.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 = ?.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 = ?.static DispatchLogfindByDTI_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 = ?.static DispatchLogfindByDTI_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 = ?.static DispatchLog[]findByDTI_S_PrevAndNext(long dispatchLogId, long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) Returns the dispatch logs before and after the current dispatch log in the ordered set where dispatchTriggerId = ? and status = ?.static DispatchLogfindByPrimaryKey(long dispatchLogId) Returns the dispatch log with the primary key or throws aNoSuchLogExceptionif it could not be found.static List<DispatchLog>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DispatchLog>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DispatchLog>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) static DispatchLogPersistencestatic DispatchLogremove(long dispatchLogId) Removes the dispatch log with the primary key from the database.static voidRemoves all the dispatch logs from the database.static voidremoveByDispatchTriggerId(long dispatchTriggerId) Removes all the dispatch logs where dispatchTriggerId = ? from the database.static voidremoveByDTI_S(long dispatchTriggerId, int status) Removes all the dispatch logs where dispatchTriggerId = ? and status = ? from the database.static voidsetPersistence(DispatchLogPersistence persistence) static DispatchLogupdate(DispatchLog dispatchLog) static DispatchLogupdate(DispatchLog dispatchLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DispatchLogupdateImpl(DispatchLog dispatchLog)
-
Constructor Details
-
DispatchLogUtil
public DispatchLogUtil()
-
-
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<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
- 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
Returns all the dispatch logs where dispatchTriggerId = ?.- Parameters:
dispatchTriggerId- the dispatch trigger ID- Returns:
- the matching dispatch logs
-
findByDispatchTriggerId
Returns a range of all the dispatch logs where dispatchTriggerId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstart- the lower bound of the range of dispatch logsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstart- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstart- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching dispatch log
- Throws:
NoSuchLogException- if a matching dispatch log could not be foundNoSuchLogException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching dispatch log, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching dispatch log
- Throws:
NoSuchLogException- if a matching dispatch log could not be foundNoSuchLogException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching dispatch log, or
nullif 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 logdispatchTriggerId- the dispatch trigger IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next dispatch log
- Throws:
NoSuchLogException- if a dispatch log with the primary key could not be foundNoSuchLogException
-
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
Returns all the dispatch logs where dispatchTriggerId = ? and status = ?.- Parameters:
dispatchTriggerId- the dispatch trigger IDstatus- the status- Returns:
- the matching dispatch logs
-
findByDTI_S
Returns a range of all the dispatch logs where dispatchTriggerId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstatus- the statusstart- the lower bound of the range of dispatch logsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstatus- the statusstart- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
dispatchTriggerId- the dispatch trigger IDstatus- the statusstart- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching dispatch log
- Throws:
NoSuchLogException- if a matching dispatch log could not be foundNoSuchLogException
-
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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching dispatch log, or
nullif 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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching dispatch log
- Throws:
NoSuchLogException- if a matching dispatch log could not be foundNoSuchLogException
-
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 IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching dispatch log, or
nullif 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 logdispatchTriggerId- the dispatch trigger IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next dispatch log
- Throws:
NoSuchLogException- if a dispatch log with the primary key could not be foundNoSuchLogException
-
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 IDstatus- 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 IDstatus- the status- Returns:
- the number of matching dispatch logs
-
cacheResult
Caches the dispatch log in the entity cache if it is enabled.- Parameters:
dispatchLog- the dispatch log
-
cacheResult
Caches the dispatch logs in the entity cache if it is enabled.- Parameters:
dispatchLogs- the dispatch logs
-
create
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
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
- Throws:
NoSuchLogException- if a dispatch log with the primary key could not be foundNoSuchLogException
-
updateImpl
-
findByPrimaryKey
Returns the dispatch log with the primary key or throws aNoSuchLogExceptionif it could not be found.- Parameters:
dispatchLogId- the primary key of the dispatch log- Returns:
- the dispatch log
- Throws:
NoSuchLogException- if a dispatch log with the primary key could not be foundNoSuchLogException
-
fetchByPrimaryKey
Returns the dispatch log with the primary key or returnsnullif it could not be found.- Parameters:
dispatchLogId- the primary key of the dispatch log- Returns:
- the dispatch log, or
nullif a dispatch log with the primary key could not be found
-
findAll
Returns all the dispatch logs.- Returns:
- the dispatch logs
-
findAll
Returns a range of all the dispatch logs.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
start- the lower bound of the range of dispatch logsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
start- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromDispatchLogModelImpl.- Parameters:
start- the lower bound of the range of dispatch logsend- the upper bound of the range of dispatch logs (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-