@ProviderType
public class CommerceWarehouseItemUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceWarehouseItemPersistenceImpl 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
CommerceWarehouseItemPersistence,
com.liferay.commerce.service.persistence.impl.CommerceWarehouseItemPersistenceImpl| Constructor and Description |
|---|
CommerceWarehouseItemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceWarehouseItem commerceWarehouseItem)
Caches the commerce warehouse item in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceWarehouseItem> commerceWarehouseItems)
Caches the commerce warehouse items in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceWarehouseItem commerceWarehouseItem) |
static int |
countAll()
Returns the number of commerce warehouse items.
|
static int |
countByC_C(long commerceWarehouseId,
long CPInstanceId)
Returns the number of commerce warehouse items where commerceWarehouseId = ? and CPInstanceId = ?.
|
static int |
countByCommerceWarehouseId(long commerceWarehouseId)
Returns the number of commerce warehouse items where commerceWarehouseId = ?.
|
static int |
countByCPInstanceId(long CPInstanceId)
Returns the number of commerce warehouse items where CPInstanceId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceWarehouseItem |
create(long commerceWarehouseItemId)
Creates a new commerce warehouse item with the primary key.
|
static 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. |
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static CommerceWarehouseItem |
fetchByPrimaryKey(long commerceWarehouseItemId)
Returns the commerce warehouse item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceWarehouseItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceWarehouseItem> |
findAll()
Returns all the commerce warehouse items.
|
static java.util.List<CommerceWarehouseItem> |
findAll(int start,
int end)
Returns a range of all the commerce warehouse items.
|
static 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.
|
static 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.
|
static 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. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId)
Returns all the commerce warehouse items where commerceWarehouseId = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCommerceWarehouseId(long commerceWarehouseId,
int start,
int end)
Returns a range of all the commerce warehouse items where commerceWarehouseId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId)
Returns all the commerce warehouse items where CPInstanceId = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPInstanceId(long CPInstanceId,
int start,
int end)
Returns a range of all the commerce warehouse items where CPInstanceId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static CommerceWarehouseItem |
findByPrimaryKey(long commerceWarehouseItemId)
Returns the commerce warehouse item with the primary key or throws a
NoSuchWarehouseItemException if it could not be found. |
static java.util.List<CommerceWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) |
static CommerceWarehouseItemPersistence |
getPersistence() |
static CommerceWarehouseItem |
remove(long commerceWarehouseItemId)
Removes the commerce warehouse item with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce warehouse items from the database.
|
static CommerceWarehouseItem |
removeByC_C(long commerceWarehouseId,
long CPInstanceId)
Removes the commerce warehouse item where commerceWarehouseId = ? and CPInstanceId = ? from the database.
|
static void |
removeByCommerceWarehouseId(long commerceWarehouseId)
Removes all the commerce warehouse items where commerceWarehouseId = ? from the database.
|
static void |
removeByCPInstanceId(long CPInstanceId)
Removes all the commerce warehouse items where CPInstanceId = ? from the database.
|
static CommerceWarehouseItem |
update(CommerceWarehouseItem commerceWarehouseItem) |
static CommerceWarehouseItem |
update(CommerceWarehouseItem commerceWarehouseItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceWarehouseItem |
updateImpl(CommerceWarehouseItem commerceWarehouseItem) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceWarehouseItem commerceWarehouseItem)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceWarehouseItem update(CommerceWarehouseItem commerceWarehouseItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceWarehouseItem update(CommerceWarehouseItem commerceWarehouseItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceWarehouseItem> findByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDpublic static java.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)public static 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)public static 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 cachepublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem[] 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 foundpublic static void removeByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDpublic static int countByCommerceWarehouseId(long commerceWarehouseId)
commerceWarehouseId - the commerce warehouse IDpublic static java.util.List<CommerceWarehouseItem> findByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static java.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)public static 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)public static 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 cachepublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem[] 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 foundpublic static void removeByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static int countByCPInstanceId(long CPInstanceId)
CPInstanceId - the cp instance IDpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem removeByC_C(long commerceWarehouseId, long CPInstanceId) throws NoSuchWarehouseItemException
commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDNoSuchWarehouseItemExceptionpublic static int countByC_C(long commerceWarehouseId,
long CPInstanceId)
commerceWarehouseId - the commerce warehouse IDCPInstanceId - the cp instance IDpublic static void cacheResult(CommerceWarehouseItem commerceWarehouseItem)
commerceWarehouseItem - the commerce warehouse itempublic static void cacheResult(java.util.List<CommerceWarehouseItem> commerceWarehouseItems)
commerceWarehouseItems - the commerce warehouse itemspublic static CommerceWarehouseItem create(long commerceWarehouseItemId)
commerceWarehouseItemId - the primary key for the new commerce warehouse itempublic static CommerceWarehouseItem 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 foundpublic static CommerceWarehouseItem updateImpl(CommerceWarehouseItem commerceWarehouseItem)
public static 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 foundpublic static CommerceWarehouseItem 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 foundpublic static java.util.Map<java.io.Serializable,CommerceWarehouseItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommerceWarehouseItem> findAll()
public static 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)public static 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)public static 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 cachepublic static void removeAll()
public static int countAll()
public static CommerceWarehouseItemPersistence getPersistence()