public class DispatchLogUtil
extends java.lang.Object
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
DispatchLogPersistence
Constructor and Description |
---|
DispatchLogUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DispatchLog dispatchLog)
Caches the dispatch log in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DispatchLog> dispatchLogs)
Caches the dispatch logs in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DispatchLog dispatchLog) |
static int |
countAll()
Returns the number of dispatch logs.
|
static int |
countByDispatchTriggerId(long dispatchTriggerId)
Returns the number of dispatch logs where dispatchTriggerId = ?.
|
static int |
countByDTI_S(long dispatchTriggerId,
int status)
Returns the number of dispatch logs where dispatchTriggerId = ? and status = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static DispatchLog |
create(long dispatchLogId)
Creates a new dispatch log with the primary key.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static DispatchLog |
fetchByPrimaryKey(long dispatchLogId)
Returns the dispatch log with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DispatchLog> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<DispatchLog> |
findAll()
Returns all the dispatch logs.
|
static java.util.List<DispatchLog> |
findAll(int start,
int end)
Returns a range of all the dispatch logs.
|
static java.util.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 java.util.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 DispatchLog |
findByDispatchTriggerId_First(long dispatchTriggerId,
com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
Returns the first dispatch log in the ordered set where dispatchTriggerId = ?.
|
static DispatchLog |
findByDispatchTriggerId_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 java.util.List<DispatchLog> |
findByDispatchTriggerId(long dispatchTriggerId)
Returns all the dispatch logs where dispatchTriggerId = ?.
|
static java.util.List<DispatchLog> |
findByDispatchTriggerId(long dispatchTriggerId,
int start,
int end)
Returns a range of all the dispatch logs where dispatchTriggerId = ?.
|
static java.util.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 java.util.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 DispatchLog |
findByDTI_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 DispatchLog |
findByDTI_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 java.util.List<DispatchLog> |
findByDTI_S(long dispatchTriggerId,
int status)
Returns all the dispatch logs where dispatchTriggerId = ? and status = ?.
|
static java.util.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 java.util.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 java.util.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 DispatchLog |
findByPrimaryKey(long dispatchLogId)
Returns the dispatch log with the primary key or throws a
NoSuchLogException if it could not be found. |
static java.util.List<DispatchLog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DispatchLog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DispatchLog> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) |
static DispatchLogPersistence |
getPersistence() |
static DispatchLog |
remove(long dispatchLogId)
Removes the dispatch log with the primary key from the database.
|
static void |
removeAll()
Removes all the dispatch logs from the database.
|
static void |
removeByDispatchTriggerId(long dispatchTriggerId)
Removes all the dispatch logs where dispatchTriggerId = ? from the database.
|
static void |
removeByDTI_S(long dispatchTriggerId,
int status)
Removes all the dispatch logs where dispatchTriggerId = ? and status = ? from the database.
|
static DispatchLog |
update(DispatchLog dispatchLog) |
static DispatchLog |
update(DispatchLog dispatchLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DispatchLog |
updateImpl(DispatchLog dispatchLog) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DispatchLog dispatchLog)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DispatchLog> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DispatchLog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DispatchLog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DispatchLog> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DispatchLog update(DispatchLog dispatchLog)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DispatchLog update(DispatchLog dispatchLog, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId)
dispatchTriggerId
- the dispatch trigger IDpublic static java.util.List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end)
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
.
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)public static java.util.List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DispatchLog> findByDispatchTriggerId(long dispatchTriggerId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DispatchLog findByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchTriggerId
- the dispatch trigger IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a matching dispatch log could not be foundpublic static DispatchLog fetchByDispatchTriggerId_First(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
dispatchTriggerId
- the dispatch trigger IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dispatch log could not be foundpublic static DispatchLog findByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchTriggerId
- the dispatch trigger IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a matching dispatch log could not be foundpublic static DispatchLog fetchByDispatchTriggerId_Last(long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
dispatchTriggerId
- the dispatch trigger IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dispatch log could not be foundpublic static DispatchLog[] findByDispatchTriggerId_PrevAndNext(long dispatchLogId, long dispatchTriggerId, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchLogId
- the primary key of the current dispatch logdispatchTriggerId
- the dispatch trigger IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a dispatch log with the primary key could not be foundpublic static void removeByDispatchTriggerId(long dispatchTriggerId)
dispatchTriggerId
- the dispatch trigger IDpublic static int countByDispatchTriggerId(long dispatchTriggerId)
dispatchTriggerId
- the dispatch trigger IDpublic static java.util.List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status)
dispatchTriggerId
- the dispatch trigger IDstatus
- the statuspublic static java.util.List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end)
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
.
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)public static java.util.List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DispatchLog> findByDTI_S(long dispatchTriggerId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static DispatchLog findByDTI_S_First(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchTriggerId
- the dispatch trigger IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a matching dispatch log could not be foundpublic static DispatchLog fetchByDTI_S_First(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
dispatchTriggerId
- the dispatch trigger IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dispatch log could not be foundpublic static DispatchLog findByDTI_S_Last(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchTriggerId
- the dispatch trigger IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a matching dispatch log could not be foundpublic static DispatchLog fetchByDTI_S_Last(long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
dispatchTriggerId
- the dispatch trigger IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dispatch log could not be foundpublic static DispatchLog[] findByDTI_S_PrevAndNext(long dispatchLogId, long dispatchTriggerId, int status, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator) throws NoSuchLogException
dispatchLogId
- the primary key of the current dispatch logdispatchTriggerId
- the dispatch trigger IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchLogException
- if a dispatch log with the primary key could not be foundpublic static void removeByDTI_S(long dispatchTriggerId, int status)
dispatchTriggerId
- the dispatch trigger IDstatus
- the statuspublic static int countByDTI_S(long dispatchTriggerId, int status)
dispatchTriggerId
- the dispatch trigger IDstatus
- the statuspublic static void cacheResult(DispatchLog dispatchLog)
dispatchLog
- the dispatch logpublic static void cacheResult(java.util.List<DispatchLog> dispatchLogs)
dispatchLogs
- the dispatch logspublic static DispatchLog create(long dispatchLogId)
dispatchLogId
- the primary key for the new dispatch logpublic static DispatchLog remove(long dispatchLogId) throws NoSuchLogException
dispatchLogId
- the primary key of the dispatch logNoSuchLogException
- if a dispatch log with the primary key could not be foundpublic static DispatchLog updateImpl(DispatchLog dispatchLog)
public static DispatchLog findByPrimaryKey(long dispatchLogId) throws NoSuchLogException
NoSuchLogException
if it could not be found.dispatchLogId
- the primary key of the dispatch logNoSuchLogException
- if a dispatch log with the primary key could not be foundpublic static DispatchLog fetchByPrimaryKey(long dispatchLogId)
null
if it could not be found.dispatchLogId
- the primary key of the dispatch lognull
if a dispatch log with the primary key could not be foundpublic static java.util.List<DispatchLog> findAll()
public static java.util.List<DispatchLog> findAll(int start, int end)
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
.
start
- the lower bound of the range of dispatch logsend
- the upper bound of the range of dispatch logs (not inclusive)public static java.util.List<DispatchLog> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<DispatchLog> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DispatchLog> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DispatchLogPersistence getPersistence()