@ProviderType
public class KaleoTaskUtil
extends java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTaskPersistenceImpl
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
KaleoTaskPersistence
,
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTaskPersistenceImpl
Constructor and Description |
---|
KaleoTaskUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(KaleoTask kaleoTask)
Caches the kaleo task in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<KaleoTask> kaleoTasks)
Caches the kaleo tasks in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(KaleoTask kaleoTask) |
static int |
countAll()
Returns the number of kaleo tasks.
|
static int |
countByCompanyId(long companyId)
Returns the number of kaleo tasks where companyId = ?.
|
static int |
countByKaleoDefinitionId(long kaleoDefinitionId)
Returns the number of kaleo tasks where kaleoDefinitionId = ?.
|
static int |
countByKaleoNodeId(long kaleoNodeId)
Returns the number of kaleo tasks where kaleoNodeId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static KaleoTask |
create(long kaleoTaskId)
Creates a new kaleo task with the primary key.
|
static KaleoTask |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where companyId = ?.
|
static KaleoTask |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where companyId = ?.
|
static KaleoTask |
fetchByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionId = ?.
|
static KaleoTask |
fetchByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionId = ?.
|
static KaleoTask |
fetchByKaleoNodeId(long kaleoNodeId)
Returns the kaleo task where kaleoNodeId = ? or returns
null if it could not be found. |
static KaleoTask |
fetchByKaleoNodeId(long kaleoNodeId,
boolean retrieveFromCache)
Returns the kaleo task where kaleoNodeId = ? or returns
null if it could not be found, optionally using the finder cache. |
static KaleoTask |
fetchByPrimaryKey(long kaleoTaskId)
Returns the kaleo task with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,KaleoTask> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<KaleoTask> |
findAll()
Returns all the kaleo tasks.
|
static java.util.List<KaleoTask> |
findAll(int start,
int end)
Returns a range of all the kaleo tasks.
|
static java.util.List<KaleoTask> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns an ordered range of all the kaleo tasks.
|
static java.util.List<KaleoTask> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo tasks.
|
static KaleoTask |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where companyId = ?.
|
static KaleoTask |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where companyId = ?.
|
static KaleoTask[] |
findByCompanyId_PrevAndNext(long kaleoTaskId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the kaleo tasks before and after the current kaleo task in the ordered set where companyId = ?.
|
static java.util.List<KaleoTask> |
findByCompanyId(long companyId)
Returns all the kaleo tasks where companyId = ?.
|
static java.util.List<KaleoTask> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo tasks where companyId = ?.
|
static java.util.List<KaleoTask> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns an ordered range of all the kaleo tasks where companyId = ?.
|
static java.util.List<KaleoTask> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo tasks where companyId = ?.
|
static KaleoTask |
findByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionId = ?.
|
static KaleoTask |
findByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionId = ?.
|
static KaleoTask[] |
findByKaleoDefinitionId_PrevAndNext(long kaleoTaskId,
long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the kaleo tasks before and after the current kaleo task in the ordered set where kaleoDefinitionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId)
Returns all the kaleo tasks where kaleoDefinitionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end)
Returns a range of all the kaleo tasks where kaleoDefinitionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns an ordered range of all the kaleo tasks where kaleoDefinitionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the kaleo tasks where kaleoDefinitionId = ?.
|
static KaleoTask |
findByKaleoNodeId(long kaleoNodeId)
Returns the kaleo task where kaleoNodeId = ? or throws a
NoSuchTaskException if it could not be found. |
static KaleoTask |
findByPrimaryKey(long kaleoTaskId)
Returns the kaleo task with the primary key or throws a
NoSuchTaskException if it could not be found. |
static java.util.List<KaleoTask> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<KaleoTask> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<KaleoTask> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) |
static KaleoTaskPersistence |
getPersistence() |
static KaleoTask |
remove(long kaleoTaskId)
Removes the kaleo task with the primary key from the database.
|
static void |
removeAll()
Removes all the kaleo tasks from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the kaleo tasks where companyId = ? from the database.
|
static void |
removeByKaleoDefinitionId(long kaleoDefinitionId)
Removes all the kaleo tasks where kaleoDefinitionId = ? from the database.
|
static KaleoTask |
removeByKaleoNodeId(long kaleoNodeId)
Removes the kaleo task where kaleoNodeId = ? from the database.
|
static KaleoTask |
update(KaleoTask kaleoTask) |
static KaleoTask |
update(KaleoTask kaleoTask,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KaleoTask |
updateImpl(KaleoTask kaleoTask) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(KaleoTask kaleoTask)
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.List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<KaleoTask> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static KaleoTask update(KaleoTask kaleoTask)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static KaleoTask update(KaleoTask kaleoTask, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<KaleoTask> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoTask> findByCompanyId(long companyId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)public static java.util.List<KaleoTask> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTask> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoTask findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask[] findByCompanyId_PrevAndNext(long kaleoTaskId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoTaskId
- the primary key of the current kaleo taskcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a kaleo task with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<KaleoTask> findByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDpublic static java.util.List<KaleoTask> findByKaleoDefinitionId(long kaleoDefinitionId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)public static java.util.List<KaleoTask> findByKaleoDefinitionId(long kaleoDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTask> findByKaleoDefinitionId(long kaleoDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
kaleoDefinitionId
- the kaleo definition IDstart
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static KaleoTask findByKaleoDefinitionId_First(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoDefinitionId_First(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask findByKaleoDefinitionId_Last(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoDefinitionId_Last(long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
kaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask[] findByKaleoDefinitionId_PrevAndNext(long kaleoTaskId, long kaleoDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoTaskId
- the primary key of the current kaleo taskkaleoDefinitionId
- the kaleo definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a kaleo task with the primary key could not be foundpublic static void removeByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDpublic static int countByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDpublic static KaleoTask findByKaleoNodeId(long kaleoNodeId) throws NoSuchTaskException
NoSuchTaskException
if it could not be found.kaleoNodeId
- the kaleo node IDNoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoNodeId(long kaleoNodeId)
null
if it could not be found. Uses the finder cache.kaleoNodeId
- the kaleo node IDnull
if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoNodeId(long kaleoNodeId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.kaleoNodeId
- the kaleo node IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching kaleo task could not be foundpublic static KaleoTask removeByKaleoNodeId(long kaleoNodeId) throws NoSuchTaskException
kaleoNodeId
- the kaleo node IDNoSuchTaskException
public static int countByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDpublic static void cacheResult(KaleoTask kaleoTask)
kaleoTask
- the kaleo taskpublic static void cacheResult(java.util.List<KaleoTask> kaleoTasks)
kaleoTasks
- the kaleo taskspublic static KaleoTask create(long kaleoTaskId)
kaleoTaskId
- the primary key for the new kaleo taskpublic static KaleoTask remove(long kaleoTaskId) throws NoSuchTaskException
kaleoTaskId
- the primary key of the kaleo taskNoSuchTaskException
- if a kaleo task with the primary key could not be foundpublic static KaleoTask findByPrimaryKey(long kaleoTaskId) throws NoSuchTaskException
NoSuchTaskException
if it could not be found.kaleoTaskId
- the primary key of the kaleo taskNoSuchTaskException
- if a kaleo task with the primary key could not be foundpublic static KaleoTask fetchByPrimaryKey(long kaleoTaskId)
null
if it could not be found.kaleoTaskId
- the primary key of the kaleo tasknull
if a kaleo task with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,KaleoTask> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<KaleoTask> findAll()
public static java.util.List<KaleoTask> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)public static java.util.List<KaleoTask> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<KaleoTask> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from KaleoTaskModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of kaleo tasksend
- the upper bound of the range of kaleo tasks (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoTaskPersistence getPersistence()