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
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 |
countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Returns the number of kaleo tasks where kaleoDefinitionVersionId = ?.
|
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 |
fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTask |
fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
|
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 useFinderCache)
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 useFinderCache)
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 useFinderCache)
Returns an ordered range of all the kaleo tasks where companyId = ?.
|
static KaleoTask |
findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTask |
findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
|
static KaleoTask[] |
findByKaleoDefinitionVersionId_PrevAndNext(long kaleoTaskId,
long kaleoDefinitionVersionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the kaleo tasks before and after the current kaleo task in the ordered set where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Returns all the kaleo tasks where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end)
Returns a range of all the kaleo tasks where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns an ordered range of all the kaleo tasks where kaleoDefinitionVersionId = ?.
|
static java.util.List<KaleoTask> |
findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the kaleo tasks where kaleoDefinitionVersionId = ?.
|
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 |
removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
Removes all the kaleo tasks where kaleoDefinitionVersionId = ? 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.Map<java.io.Serializable,KaleoTask> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl
.
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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl
.
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 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 KaleoTaskModelImpl
.
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
)useFinderCache
- whether to use 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> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version IDpublic static java.util.List<KaleoTask> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, 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 KaleoTaskModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version 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> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, 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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version 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> findByKaleoDefinitionVersionId(long kaleoDefinitionVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> 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 KaleoTaskModelImpl
.
kaleoDefinitionVersionId
- the kaleo definition version 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
)useFinderCache
- whether to use the finder cachepublic static KaleoTask findByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoDefinitionVersionId_First(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask findByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTaskException
- if a matching kaleo task could not be foundpublic static KaleoTask fetchByKaleoDefinitionVersionId_Last(long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
kaleoDefinitionVersionId
- the kaleo definition version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching kaleo task could not be foundpublic static KaleoTask[] findByKaleoDefinitionVersionId_PrevAndNext(long kaleoTaskId, long kaleoDefinitionVersionId, com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator) throws NoSuchTaskException
kaleoTaskId
- the primary key of the current kaleo taskkaleoDefinitionVersionId
- the kaleo definition version 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 removeByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version IDpublic static int countByKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
kaleoDefinitionVersionId
- the kaleo definition version 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 useFinderCache)
null
if it could not be found, optionally using the finder cache.kaleoNodeId
- the kaleo node IDuseFinderCache
- whether to use 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.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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl
.
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, then the query will include the default ORDER BY logic from KaleoTaskModelImpl
.
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 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 KaleoTaskModelImpl
.
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
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static KaleoTaskPersistence getPersistence()