@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| 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 |
countByCommerceWarehouseId(long commerceWarehouseId)
Returns the number of commerce warehouse items where commerceWarehouseId = ?.
|
static int |
countByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid)
Returns the number of commerce warehouse items where CProductId = ? and CPInstanceUuid = ?.
|
static int |
countByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid)
Returns the number of commerce warehouse items where commerceWarehouseId = ? and CPInstanceUuid = ?.
|
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 |
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 |
fetchByCPI_CPIU_First(long CProductId,
java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where CProductId = ? and CPInstanceUuid = ?.
|
static CommerceWarehouseItem |
fetchByCPI_CPIU_Last(long CProductId,
java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where CProductId = ? and CPInstanceUuid = ?.
|
static CommerceWarehouseItem |
fetchByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceUuid = ? or returns
null if it could not be found. |
static CommerceWarehouseItem |
fetchByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid,
boolean retrieveFromCache)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceUuid = ? or returns
null if it could not be found, optionally using the finder cache. |
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 |
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 |
findByCPI_CPIU_First(long CProductId,
java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the first commerce warehouse item in the ordered set where CProductId = ? and CPInstanceUuid = ?.
|
static CommerceWarehouseItem |
findByCPI_CPIU_Last(long CProductId,
java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns the last commerce warehouse item in the ordered set where CProductId = ? and CPInstanceUuid = ?.
|
static CommerceWarehouseItem[] |
findByCPI_CPIU_PrevAndNext(long commerceWarehouseItemId,
long CProductId,
java.lang.String CPInstanceUuid,
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 CProductId = ? and CPInstanceUuid = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid)
Returns all the commerce warehouse items where CProductId = ? and CPInstanceUuid = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid,
int start,
int end)
Returns a range of all the commerce warehouse items where CProductId = ? and CPInstanceUuid = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
Returns an ordered range of all the commerce warehouse items where CProductId = ? and CPInstanceUuid = ?.
|
static java.util.List<CommerceWarehouseItem> |
findByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid,
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 CProductId = ? and CPInstanceUuid = ?.
|
static CommerceWarehouseItem |
findByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid)
Returns the commerce warehouse item where commerceWarehouseId = ? and CPInstanceUuid = ? or throws a
NoSuchWarehouseItemException if it could not be found. |
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 void |
removeByCommerceWarehouseId(long commerceWarehouseId)
Removes all the commerce warehouse items where commerceWarehouseId = ? from the database.
|
static void |
removeByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid)
Removes all the commerce warehouse items where CProductId = ? and CPInstanceUuid = ? from the database.
|
static CommerceWarehouseItem |
removeByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid)
Removes the commerce warehouse item where commerceWarehouseId = ? and CPInstanceUuid = ? 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.Map<java.io.Serializable,CommerceWarehouseItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)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 CommerceWarehouseItem findByCWI_CPIU(long commerceWarehouseId, java.lang.String CPInstanceUuid) throws NoSuchWarehouseItemException
NoSuchWarehouseItemException if it could not be found.commerceWarehouseId - the commerce warehouse IDCPInstanceUuid - the cp instance uuidNoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem fetchByCWI_CPIU(long commerceWarehouseId, java.lang.String CPInstanceUuid)
null if it could not be found. Uses the finder cache.commerceWarehouseId - the commerce warehouse IDCPInstanceUuid - the cp instance uuidnull if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem fetchByCWI_CPIU(long commerceWarehouseId, java.lang.String CPInstanceUuid, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.commerceWarehouseId - the commerce warehouse IDCPInstanceUuid - the cp instance uuidretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem removeByCWI_CPIU(long commerceWarehouseId, java.lang.String CPInstanceUuid) throws NoSuchWarehouseItemException
commerceWarehouseId - the commerce warehouse IDCPInstanceUuid - the cp instance uuidNoSuchWarehouseItemExceptionpublic static int countByCWI_CPIU(long commerceWarehouseId,
java.lang.String CPInstanceUuid)
commerceWarehouseId - the commerce warehouse IDCPInstanceUuid - the cp instance uuidpublic static java.util.List<CommerceWarehouseItem> findByCPI_CPIU(long CProductId, java.lang.String CPInstanceUuid)
CProductId - the c product IDCPInstanceUuid - the cp instance uuidpublic static java.util.List<CommerceWarehouseItem> findByCPI_CPIU(long CProductId, java.lang.String CPInstanceUuid, 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.
CProductId - the c product IDCPInstanceUuid - the cp instance uuidstart - 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> findByCPI_CPIU(long CProductId, java.lang.String CPInstanceUuid, 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.
CProductId - the c product IDCPInstanceUuid - the cp instance uuidstart - 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> findByCPI_CPIU(long CProductId, java.lang.String CPInstanceUuid, 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.
CProductId - the c product IDCPInstanceUuid - the cp instance uuidstart - 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 findByCPI_CPIU_First(long CProductId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
CProductId - the c product IDCPInstanceUuid - the cp instance uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem fetchByCPI_CPIU_First(long CProductId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
CProductId - the c product IDCPInstanceUuid - the cp instance uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem findByCPI_CPIU_Last(long CProductId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
CProductId - the c product IDCPInstanceUuid - the cp instance uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseItemException - if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem fetchByCPI_CPIU_Last(long CProductId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator)
CProductId - the c product IDCPInstanceUuid - the cp instance uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse item could not be foundpublic static CommerceWarehouseItem[] findByCPI_CPIU_PrevAndNext(long commerceWarehouseItemId, long CProductId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouseItem> orderByComparator) throws NoSuchWarehouseItemException
commerceWarehouseItemId - the primary key of the current commerce warehouse itemCProductId - the c product IDCPInstanceUuid - the cp instance uuidorderByComparator - 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 removeByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid)
CProductId - the c product IDCPInstanceUuid - the cp instance uuidpublic static int countByCPI_CPIU(long CProductId,
java.lang.String CPInstanceUuid)
CProductId - the c product IDCPInstanceUuid - the cp instance uuidpublic 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.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()