@ProviderType public interface CommerceWarehouseItemPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceWarehouseItem>
Caching information and settings can be found in portal.properties
com.liferay.commerce.service.persistence.impl.CommerceWarehouseItemPersistenceImpl,
CommerceWarehouseItemUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceWarehouseItem commerceWarehouseItem)
Caches the commerce warehouse item in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceWarehouseItem> commerceWarehouseItems)
Caches the commerce warehouse items in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce warehouse items.
|
int |
countByC_C(long commerceWarehouseId,
long CPInstanceId)
Returns the number of commerce warehouse items where commerceWarehouseId = ? and CPInstanceId = ?.
|
int |
countByCommerceWarehouseId(long commerceWarehouseId)
Returns the number of commerce warehouse items where commerceWarehouseId = ?.
|
int |
countByCPInstanceId(long CPInstanceId)
Returns the number of commerce warehouse items where CPInstanceId = ?.
|
CommerceWarehouseItem |
create(long commerceWarehouseItemId)
Creates a new commerce warehouse item with the primary key.
|
CommerceWarehouseItem |
fetchByC_C(long commerceWarehouseId,
long CPInstanceId)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceId = ? or returns
null if it could not be found. |
CommerceWarehouseItem |
fetchByC_C(long commerceWarehouseId,
long CPInstanceId,
boolean retrieveFromCache)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceId = ? or returns
null if it could not be found, optionally using the finder cache. |
CommerceWarehouseItem |
fetchByCommerceWarehouseId_First(long commerceWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where commerceWarehouseId = ?.
|
CommerceWarehouseItem |
fetchByCommerceWarehouseId_Last(long commerceWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where commerceWarehouseId = ?.
|
CommerceWarehouseItem |
fetchByCPInstanceId_First(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where CPInstanceId = ?.
|
CommerceWarehouseItem |
fetchByCPInstanceId_Last(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where CPInstanceId = ?.
|
CommerceWarehouseItem |
fetchByPrimaryKey(long commerceWarehouseItemId)
Returns the commerce warehouse item with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommerceWarehouseItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommerceWarehouseItem> |
findAll()
Returns all the commerce warehouse items.
|
java.util.List<CommerceWarehouseItem> |
findAll(int start,
int end)
Returns a range of all the commerce warehouse items.
|
java.util.List<CommerceWarehouseItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns an ordered range of all the commerce warehouse items.
|
java.util.List<CommerceWarehouseItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouse items.
|
CommerceWarehouseItem |
findByC_C(long commerceWarehouseId,
long CPInstanceId)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceId = ? or throws a
NoSuchWarehouseItemException if it could not be found. |
CommerceWarehouseItem |
findByCommerceWarehouseId_First(long commerceWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where commerceWarehouseId = ?.
|
CommerceWarehouseItem |
findByCommerceWarehouseId_Last(long commerceWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where commerceWarehouseId = ?.
|
CommerceWarehouseItem[] |
findByCommerceWarehouseId_PrevAndNext(long commerceWarehouseItemId,
long commerceWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the commerce warehouse items before and after the current commerce warehouse item in the ordered set where commerceWarehouseId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId)
Returns all the commerce warehouse items where commerceWarehouseId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId,
int start,
int end)
Returns a range of all the commerce warehouse items where commerceWarehouseId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns an ordered range of all the commerce warehouse items where commerceWarehouseId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouse items where commerceWarehouseId = ?.
|
CommerceWarehouseItem |
findByCPInstanceId_First(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where CPInstanceId = ?.
|
CommerceWarehouseItem |
findByCPInstanceId_Last(long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where CPInstanceId = ?.
|
CommerceWarehouseItem[] |
findByCPInstanceId_PrevAndNext(long commerceWarehouseItemId,
long CPInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the commerce warehouse items before and after the current commerce warehouse item in the ordered set where CPInstanceId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId)
Returns all the commerce warehouse items where CPInstanceId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the commerce warehouse items where CPInstanceId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns an ordered range of all the commerce warehouse items where CPInstanceId = ?.
|
java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouse items where CPInstanceId = ?.
|
CommerceWarehouseItem |
findByPrimaryKey(long commerceWarehouseItemId)
Returns the commerce warehouse item with the primary key or throws a
NoSuchWarehouseItemException if it could not be found. |
CommerceWarehouseItem |
remove(long commerceWarehouseItemId)
Removes the commerce warehouse item with the primary key from the database.
|
void |
removeAll()
Removes all the commerce warehouse items from the database.
|
CommerceWarehouseItem |
removeByC_C(long commerceWarehouseId,
long CPInstanceId)
Removes the commerce warehouse item where commerceWarehouseId = ? and CPInstanceId = ? from the database.
|
void |
removeByCommerceWarehouseId(long commerceWarehouseId)
Removes all the commerce warehouse items where commerceWarehouseId = ? from the database.
|
void |
removeByCPInstanceId(long CPInstanceId)
Removes all the commerce warehouse items where CPInstanceId = ? from the database.
|
CommerceWarehouseItem |
updateImpl(CommerceWarehouseItem commerceWarehouseItem) |
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, updatejava.util.List<CommerceWarehouseItem> findByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDjava.util.List<CommerceWarehouseItem> findByCommerceWarehouseId(long commerceWarehouseId, 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 CommerceWarehouseItemModelImpl. 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.
commerceWarehouseId - the commerce warehouse IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)java.util.List<CommerceWarehouseItem> findByCommerceWarehouseId(long commerceWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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.
commerceWarehouseId - the commerce warehouse IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceWarehouseItem> findByCommerceWarehouseId(long commerceWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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.
commerceWarehouseId - the commerce warehouse IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommerceWarehouseItem findByCommerceWarehouseId_First(long commerceWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
commerceWarehouseId - the commerce warehouse IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByCommerceWarehouseId_First(long commerceWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
commerceWarehouseId - the commerce warehouse IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundCommerceWarehouseItem findByCommerceWarehouseId_Last(long commerceWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
commerceWarehouseId - the commerce warehouse IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByCommerceWarehouseId_Last(long commerceWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
commerceWarehouseId - the commerce warehouse IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundCommerceWarehouseItem[] findByCommerceWarehouseId_PrevAndNext(long commerceWarehouseItemId, long commerceWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
commerceWarehouseItemId - the primary key of the current commerce warehouse itemcommerceWarehouseId - the commerce warehouse IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a commerce warehouse item with the primary key could not be foundvoid removeByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDint countByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDjava.util.List<CommerceWarehouseItem> findByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDjava.util.List<CommerceWarehouseItem> findByCPInstanceId(long CPInstanceId, 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 CommerceWarehouseItemModelImpl. 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.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)java.util.List<CommerceWarehouseItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceWarehouseItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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.
CPInstanceId - the cp instance IDstart - the lower bound of the range of commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommerceWarehouseItem findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundCommerceWarehouseItem findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
CPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundCommerceWarehouseItem[] findByCPInstanceId_PrevAndNext(long commerceWarehouseItemId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
commerceWarehouseItemId - the primary key of the current commerce warehouse itemCPInstanceId - the cp instance IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a commerce warehouse item with the primary key could not be foundvoid removeByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDint countByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDCommerceWarehouseItem findByC_C(long commerceWarehouseId, long CPInstanceId) throws NoSuchWarehouseItemException
NoSuchWarehouseItemException if it could not be found.commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDNoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByC_C(long commerceWarehouseId, long CPInstanceId)
null if it could not be found. Uses the finder cache.commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDnull if a matching commerce warehouse item could not be foundCommerceWarehouseItem fetchByC_C(long commerceWarehouseId, long CPInstanceId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce warehouse item could not be foundCommerceWarehouseItem removeByC_C(long commerceWarehouseId, long CPInstanceId) throws NoSuchWarehouseItemException
commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDNoSuchWarehouseItemExceptionint countByC_C(long commerceWarehouseId,
long CPInstanceId)
commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDvoid cacheResult(CommerceWarehouseItem commerceWarehouseItem)
commerceWarehouseItem - the commerce warehouse itemvoid cacheResult(java.util.List<CommerceWarehouseItem> commerceWarehouseItems)
commerceWarehouseItems - the commerce warehouse itemsCommerceWarehouseItem create(long commerceWarehouseItemId)
commerceWarehouseItemId - the primary key for the new commerce warehouse itemCommerceWarehouseItem remove(long commerceWarehouseItemId) throws NoSuchWarehouseItemException
commerceWarehouseItemId - the primary key of the commerce warehouse itemNoSuchWarehouseItemException - if a commerce warehouse item with the primary key could not be foundCommerceWarehouseItem updateImpl(CommerceWarehouseItem commerceWarehouseItem)
CommerceWarehouseItem findByPrimaryKey(long commerceWarehouseItemId) throws NoSuchWarehouseItemException
NoSuchWarehouseItemException if it could not be found.commerceWarehouseItemId - the primary key of the commerce warehouse itemNoSuchWarehouseItemException - if a commerce warehouse item with the primary key could not be foundCommerceWarehouseItem fetchByPrimaryKey(long commerceWarehouseItemId)
null if it could not be found.commerceWarehouseItemId - the primary key of the commerce warehouse itemnull if a commerce warehouse item with the primary key could not be foundjava.util.Map<java.io.Serializable,CommerceWarehouseItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceWarehouseItem>java.util.List<CommerceWarehouseItem> findAll()
java.util.List<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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 commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)java.util.List<CommerceWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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 commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> 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 CommerceWarehouseItemModelImpl. 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 commerce warehouse itemsend - the upper bound of the range of commerce warehouse items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()