@ProviderType public interface KaleoTaskPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoTask>
Caching information and settings can be found in portal.properties
com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoTaskPersistenceImpl
,
KaleoTaskUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(KaleoTask kaleoTask)
Caches the kaleo task in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<KaleoTask> kaleoTasks)
Caches the kaleo tasks in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of kaleo tasks.
|
int |
countByCompanyId(long companyId)
Returns the number of kaleo tasks where companyId = ?.
|
int |
countByKaleoDefinitionId(long kaleoDefinitionId)
Returns the number of kaleo tasks where kaleoDefinitionId = ?.
|
int |
countByKaleoNodeId(long kaleoNodeId)
Returns the number of kaleo tasks where kaleoNodeId = ?.
|
KaleoTask |
create(long kaleoTaskId)
Creates a new kaleo task with the primary key.
|
KaleoTask |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where companyId = ?.
|
KaleoTask |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where companyId = ?.
|
KaleoTask |
fetchByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionId = ?.
|
KaleoTask |
fetchByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionId = ?.
|
KaleoTask |
fetchByKaleoNodeId(long kaleoNodeId)
Returns the kaleo task where kaleoNodeId = ? or returns
null if it could not be found. |
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. |
KaleoTask |
fetchByPrimaryKey(long kaleoTaskId)
Returns the kaleo task with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,KaleoTask> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<KaleoTask> |
findAll()
Returns all the kaleo tasks.
|
java.util.List<KaleoTask> |
findAll(int start,
int end)
Returns a range of all the kaleo tasks.
|
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.
|
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.
|
KaleoTask |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where companyId = ?.
|
KaleoTask |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<KaleoTask> |
findByCompanyId(long companyId)
Returns all the kaleo tasks where companyId = ?.
|
java.util.List<KaleoTask> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the kaleo tasks where companyId = ?.
|
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 = ?.
|
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 = ?.
|
KaleoTask |
findByKaleoDefinitionId_First(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the first kaleo task in the ordered set where kaleoDefinitionId = ?.
|
KaleoTask |
findByKaleoDefinitionId_Last(long kaleoDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<KaleoTask> orderByComparator)
Returns the last kaleo task in the ordered set where kaleoDefinitionId = ?.
|
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 = ?.
|
java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId)
Returns all the kaleo tasks where kaleoDefinitionId = ?.
|
java.util.List<KaleoTask> |
findByKaleoDefinitionId(long kaleoDefinitionId,
int start,
int end)
Returns a range of all the kaleo tasks where kaleoDefinitionId = ?.
|
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 = ?.
|
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 = ?.
|
KaleoTask |
findByKaleoNodeId(long kaleoNodeId)
Returns the kaleo task where kaleoNodeId = ? or throws a
NoSuchTaskException if it could not be found. |
KaleoTask |
findByPrimaryKey(long kaleoTaskId)
Returns the kaleo task with the primary key or throws a
NoSuchTaskException if it could not be found. |
KaleoTask |
remove(long kaleoTaskId)
Removes the kaleo task with the primary key from the database.
|
void |
removeAll()
Removes all the kaleo tasks from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the kaleo tasks where companyId = ? from the database.
|
void |
removeByKaleoDefinitionId(long kaleoDefinitionId)
Removes all the kaleo tasks where kaleoDefinitionId = ? from the database.
|
KaleoTask |
removeByKaleoNodeId(long kaleoNodeId)
Removes the kaleo task where kaleoNodeId = ? from the database.
|
KaleoTask |
updateImpl(KaleoTask kaleoTask) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<KaleoTask> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheKaleoTask 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 foundKaleoTask 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 foundKaleoTask 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 foundKaleoTask 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 foundKaleoTask[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<KaleoTask> findByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDjava.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)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
)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 cacheKaleoTask 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 foundKaleoTask 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 foundKaleoTask 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 foundKaleoTask 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 foundKaleoTask[] 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 foundvoid removeByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDint countByKaleoDefinitionId(long kaleoDefinitionId)
kaleoDefinitionId
- the kaleo definition IDKaleoTask 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 foundKaleoTask 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 foundKaleoTask 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 foundKaleoTask removeByKaleoNodeId(long kaleoNodeId) throws NoSuchTaskException
kaleoNodeId
- the kaleo node IDNoSuchTaskException
int countByKaleoNodeId(long kaleoNodeId)
kaleoNodeId
- the kaleo node IDvoid cacheResult(KaleoTask kaleoTask)
kaleoTask
- the kaleo taskvoid cacheResult(java.util.List<KaleoTask> kaleoTasks)
kaleoTasks
- the kaleo tasksKaleoTask create(long kaleoTaskId)
kaleoTaskId
- the primary key for the new kaleo taskKaleoTask remove(long kaleoTaskId) throws NoSuchTaskException
kaleoTaskId
- the primary key of the kaleo taskNoSuchTaskException
- if a kaleo task with the primary key could not be foundKaleoTask 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 foundKaleoTask 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 foundjava.util.Map<java.io.Serializable,KaleoTask> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoTask>
java.util.List<KaleoTask> findAll()
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)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
)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 cachevoid removeAll()
int countAll()