@ProviderType public interface CTProcessPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTProcess>
Caching information and settings can be found in portal.properties
CTProcessUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTProcess ctProcess)
Caches the ct process in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTProcess> ctProcesses)
Caches the ct processes in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct processes.
|
int |
countByCollectionId(long ctCollectionId)
Returns the number of ct processes where ctCollectionId = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of ct processes where companyId = ?.
|
int |
countByUserId(long userId)
Returns the number of ct processes where userId = ?.
|
CTProcess |
create(long ctProcessId)
Creates a new ct process with the primary key.
|
CTProcess |
fetchByCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where ctCollectionId = ?.
|
CTProcess |
fetchByCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where ctCollectionId = ?.
|
CTProcess |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where companyId = ?.
|
CTProcess |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where companyId = ?.
|
CTProcess |
fetchByPrimaryKey(long ctProcessId)
Returns the ct process with the primary key or returns
null if it could not be found. |
CTProcess |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where userId = ?.
|
CTProcess |
fetchByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where userId = ?.
|
java.util.List<CTProcess> |
findAll()
Returns all the ct processes.
|
java.util.List<CTProcess> |
findAll(int start,
int end)
Returns a range of all the ct processes.
|
java.util.List<CTProcess> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes.
|
java.util.List<CTProcess> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct processes.
|
CTProcess |
findByCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where ctCollectionId = ?.
|
CTProcess |
findByCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where ctCollectionId = ?.
|
CTProcess[] |
findByCollectionId_PrevAndNext(long ctProcessId,
long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the ct processes before and after the current ct process in the ordered set where ctCollectionId = ?.
|
java.util.List<CTProcess> |
findByCollectionId(long ctCollectionId)
Returns all the ct processes where ctCollectionId = ?.
|
java.util.List<CTProcess> |
findByCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct processes where ctCollectionId = ?.
|
java.util.List<CTProcess> |
findByCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes where ctCollectionId = ?.
|
java.util.List<CTProcess> |
findByCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct processes where ctCollectionId = ?.
|
CTProcess |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where companyId = ?.
|
CTProcess |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where companyId = ?.
|
CTProcess[] |
findByCompanyId_PrevAndNext(long ctProcessId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the ct processes before and after the current ct process in the ordered set where companyId = ?.
|
java.util.List<CTProcess> |
findByCompanyId(long companyId)
Returns all the ct processes where companyId = ?.
|
java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct processes where companyId = ?.
|
java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes where companyId = ?.
|
java.util.List<CTProcess> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct processes where companyId = ?.
|
CTProcess |
findByPrimaryKey(long ctProcessId)
Returns the ct process with the primary key or throws a
NoSuchProcessException if it could not be found. |
CTProcess |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the first ct process in the ordered set where userId = ?.
|
CTProcess |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the last ct process in the ordered set where userId = ?.
|
CTProcess[] |
findByUserId_PrevAndNext(long ctProcessId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns the ct processes before and after the current ct process in the ordered set where userId = ?.
|
java.util.List<CTProcess> |
findByUserId(long userId)
Returns all the ct processes where userId = ?.
|
java.util.List<CTProcess> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the ct processes where userId = ?.
|
java.util.List<CTProcess> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
Returns an ordered range of all the ct processes where userId = ?.
|
java.util.List<CTProcess> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the ct processes where userId = ?.
|
CTProcess |
remove(long ctProcessId)
Removes the ct process with the primary key from the database.
|
void |
removeAll()
Removes all the ct processes from the database.
|
void |
removeByCollectionId(long ctCollectionId)
Removes all the ct processes where ctCollectionId = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct processes where companyId = ? from the database.
|
void |
removeByUserId(long userId)
Removes all the ct processes where userId = ? from the database.
|
CTProcess |
updateImpl(CTProcess ctProcess) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CTProcess> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)java.util.List<CTProcess> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTProcess> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCTProcess findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess[] findByCompanyId_PrevAndNext(long ctProcessId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctProcessId
- the primary key of the current ct processcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a ct process with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTProcess> findByUserId(long userId)
userId
- the user IDjava.util.List<CTProcess> findByUserId(long userId, 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 CTProcessModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)java.util.List<CTProcess> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTProcess> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCTProcess findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess[] findByUserId_PrevAndNext(long ctProcessId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctProcessId
- the primary key of the current ct processuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a ct process with the primary key could not be foundvoid removeByUserId(long userId)
userId
- the user IDint countByUserId(long userId)
userId
- the user IDjava.util.List<CTProcess> findByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTProcess> findByCollectionId(long ctCollectionId, 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 CTProcessModelImpl
. 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.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)java.util.List<CTProcess> findByCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTProcess> findByCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheCTProcess findByCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess findByCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a matching ct process could not be foundCTProcess fetchByCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct process could not be foundCTProcess[] findByCollectionId_PrevAndNext(long ctProcessId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> orderByComparator) throws NoSuchProcessException
ctProcessId
- the primary key of the current ct processctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchProcessException
- if a ct process with the primary key could not be foundvoid removeByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDint countByCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDvoid cacheResult(CTProcess ctProcess)
ctProcess
- the ct processvoid cacheResult(java.util.List<CTProcess> ctProcesses)
ctProcesses
- the ct processesCTProcess create(long ctProcessId)
ctProcessId
- the primary key for the new ct processCTProcess remove(long ctProcessId) throws NoSuchProcessException
ctProcessId
- the primary key of the ct processNoSuchProcessException
- if a ct process with the primary key could not be foundCTProcess findByPrimaryKey(long ctProcessId) throws NoSuchProcessException
NoSuchProcessException
if it could not be found.ctProcessId
- the primary key of the ct processNoSuchProcessException
- if a ct process with the primary key could not be foundCTProcess fetchByPrimaryKey(long ctProcessId)
null
if it could not be found.ctProcessId
- the primary key of the ct processnull
if a ct process with the primary key could not be foundjava.util.List<CTProcess> findAll()
java.util.List<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)java.util.List<CTProcess> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTProcess> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTProcess> 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 CTProcessModelImpl
. 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 ct processesend
- the upper bound of the range of ct processes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()