public class CommerceInventoryReplenishmentItemUtil
extends java.lang.Object
com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryReplenishmentItemPersistenceImpl
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
CommerceInventoryReplenishmentItemPersistence
Constructor and Description |
---|
CommerceInventoryReplenishmentItemUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
Caches the commerce inventory replenishment item in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceInventoryReplenishmentItem> commerceInventoryReplenishmentItems)
Caches the commerce inventory replenishment items in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) |
static int |
countAll()
Returns the number of commerce inventory replenishment items.
|
static int |
countByAvailabilityDate(java.util.Date availabilityDate)
Returns the number of commerce inventory replenishment items where availabilityDate = ?.
|
static int |
countByC_S(long companyId,
java.lang.String sku)
Returns the number of commerce inventory replenishment items where companyId = ? and sku = ?.
|
static int |
countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Returns the number of commerce inventory replenishment items where commerceInventoryWarehouseId = ?.
|
static int |
countByS_AD(java.lang.String sku,
java.util.Date availabilityDate)
Returns the number of commerce inventory replenishment items where sku = ? and availabilityDate = ?.
|
static int |
countBySku(java.lang.String sku)
Returns the number of commerce inventory replenishment items where sku = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceInventoryReplenishmentItem |
create(long commerceInventoryReplenishmentItemId)
Creates a new commerce inventory replenishment item with the primary key.
|
static CommerceInventoryReplenishmentItem |
fetchByAvailabilityDate_First(java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByAvailabilityDate_Last(java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByC_S_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByPrimaryKey(long commerceInventoryReplenishmentItemId)
Returns the commerce inventory replenishment item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceInventoryReplenishmentItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceInventoryReplenishmentItem |
fetchByS_AD_First(java.lang.String sku,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where sku = ? and availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
fetchByS_AD_Last(java.lang.String sku,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where sku = ? and availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
fetchBySku_First(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where sku = ?.
|
static CommerceInventoryReplenishmentItem |
fetchBySku_Last(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findAll()
Returns all the commerce inventory replenishment items.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findAll(int start,
int end)
Returns a range of all the commerce inventory replenishment items.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items.
|
static CommerceInventoryReplenishmentItem |
findByAvailabilityDate_First(java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
findByAvailabilityDate_Last(java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem[] |
findByAvailabilityDate_PrevAndNext(long commerceInventoryReplenishmentItemId,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByAvailabilityDate(java.util.Date availabilityDate)
Returns all the commerce inventory replenishment items where availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByAvailabilityDate(java.util.Date availabilityDate,
int start,
int end)
Returns a range of all the commerce inventory replenishment items where availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByAvailabilityDate(java.util.Date availabilityDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items where availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByAvailabilityDate(java.util.Date availabilityDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items where availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
findByC_S_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryReplenishmentItem |
findByC_S_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryReplenishmentItem[] |
findByC_S_PrevAndNext(long commerceInventoryReplenishmentItemId,
long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByC_S(long companyId,
java.lang.String sku)
Returns all the commerce inventory replenishment items where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory replenishment items where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByC_S(long companyId,
java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items where companyId = ? and sku = ?.
|
static CommerceInventoryReplenishmentItem |
findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.
|
static CommerceInventoryReplenishmentItem |
findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.
|
static CommerceInventoryReplenishmentItem[] |
findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryReplenishmentItemId,
long commerceInventoryWarehouseId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Returns all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId,
int start,
int end)
Returns a range of all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.
|
static CommerceInventoryReplenishmentItem |
findByPrimaryKey(long commerceInventoryReplenishmentItemId)
Returns the commerce inventory replenishment item with the primary key or throws a
NoSuchInventoryReplenishmentItemException if it could not be found. |
static CommerceInventoryReplenishmentItem |
findByS_AD_First(java.lang.String sku,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where sku = ? and availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
findByS_AD_Last(java.lang.String sku,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where sku = ? and availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem[] |
findByS_AD_PrevAndNext(long commerceInventoryReplenishmentItemId,
java.lang.String sku,
java.util.Date availabilityDate,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where sku = ? and availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByS_AD(java.lang.String sku,
java.util.Date availabilityDate)
Returns all the commerce inventory replenishment items where sku = ? and availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByS_AD(java.lang.String sku,
java.util.Date availabilityDate,
int start,
int end)
Returns a range of all the commerce inventory replenishment items where sku = ? and availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByS_AD(java.lang.String sku,
java.util.Date availabilityDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items where sku = ? and availabilityDate = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findByS_AD(java.lang.String sku,
java.util.Date availabilityDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items where sku = ? and availabilityDate = ?.
|
static CommerceInventoryReplenishmentItem |
findBySku_First(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the first commerce inventory replenishment item in the ordered set where sku = ?.
|
static CommerceInventoryReplenishmentItem |
findBySku_Last(java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the last commerce inventory replenishment item in the ordered set where sku = ?.
|
static CommerceInventoryReplenishmentItem[] |
findBySku_PrevAndNext(long commerceInventoryReplenishmentItemId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findBySku(java.lang.String sku)
Returns all the commerce inventory replenishment items where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findBySku(java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory replenishment items where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findBySku(java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
Returns an ordered range of all the commerce inventory replenishment items where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findBySku(java.lang.String sku,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce inventory replenishment items where sku = ?.
|
static java.util.List<CommerceInventoryReplenishmentItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceInventoryReplenishmentItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceInventoryReplenishmentItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) |
static CommerceInventoryReplenishmentItemPersistence |
getPersistence() |
static CommerceInventoryReplenishmentItem |
remove(long commerceInventoryReplenishmentItemId)
Removes the commerce inventory replenishment item with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce inventory replenishment items from the database.
|
static void |
removeByAvailabilityDate(java.util.Date availabilityDate)
Removes all the commerce inventory replenishment items where availabilityDate = ? from the database.
|
static void |
removeByC_S(long companyId,
java.lang.String sku)
Removes all the commerce inventory replenishment items where companyId = ? and sku = ? from the database.
|
static void |
removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Removes all the commerce inventory replenishment items where commerceInventoryWarehouseId = ? from the database.
|
static void |
removeByS_AD(java.lang.String sku,
java.util.Date availabilityDate)
Removes all the commerce inventory replenishment items where sku = ? and availabilityDate = ? from the database.
|
static void |
removeBySku(java.lang.String sku)
Removes all the commerce inventory replenishment items where sku = ? from the database.
|
static CommerceInventoryReplenishmentItem |
update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) |
static CommerceInventoryReplenishmentItem |
update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceInventoryReplenishmentItem |
updateImpl(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) |
public CommerceInventoryReplenishmentItemUtil()
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
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,CommerceInventoryReplenishmentItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceInventoryReplenishmentItem update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceInventoryReplenishmentItem update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryReplenishmentItem findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryReplenishmentItemId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryReplenishmentItem> findBySku(java.lang.String sku)
sku
- the skupublic static java.util.List<CommerceInventoryReplenishmentItem> findBySku(java.lang.String sku, 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findBySku(java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findBySku(java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryReplenishmentItem findBySku_First(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchBySku_First(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem findBySku_Last(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchBySku_Last(java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
sku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem[] findBySku_PrevAndNext(long commerceInventoryReplenishmentItemId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static void removeBySku(java.lang.String sku)
sku
- the skupublic static int countBySku(java.lang.String sku)
sku
- the skupublic static java.util.List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(java.util.Date availabilityDate)
availabilityDate
- the availability datepublic static java.util.List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(java.util.Date availabilityDate, 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
availabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(java.util.Date availabilityDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
availabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(java.util.Date availabilityDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
availabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryReplenishmentItem findByAvailabilityDate_First(java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByAvailabilityDate_First(java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem findByAvailabilityDate_Last(java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByAvailabilityDate_Last(java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem[] findByAvailabilityDate_PrevAndNext(long commerceInventoryReplenishmentItemId, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static void removeByAvailabilityDate(java.util.Date availabilityDate)
availabilityDate
- the availability datepublic static int countByAvailabilityDate(java.util.Date availabilityDate)
availabilityDate
- the availability datepublic static java.util.List<CommerceInventoryReplenishmentItem> findByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CommerceInventoryReplenishmentItem> findByC_S(long companyId, java.lang.String sku, 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findByC_S(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
companyId
- the company IDsku
- the skustart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryReplenishmentItem findByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByC_S_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem findByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByC_S_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem[] findByC_S_PrevAndNext(long commerceInventoryReplenishmentItemId, long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemcompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static void removeByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static int countByC_S(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CommerceInventoryReplenishmentItem> findByS_AD(java.lang.String sku, java.util.Date availabilityDate)
sku
- the skuavailabilityDate
- the availability datepublic static java.util.List<CommerceInventoryReplenishmentItem> findByS_AD(java.lang.String sku, java.util.Date availabilityDate, 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skuavailabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findByS_AD(java.lang.String sku, java.util.Date availabilityDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skuavailabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findByS_AD(java.lang.String sku, java.util.Date availabilityDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
sku
- the skuavailabilityDate
- the availability datestart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryReplenishmentItem findByS_AD_First(java.lang.String sku, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
sku
- the skuavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByS_AD_First(java.lang.String sku, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
sku
- the skuavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem findByS_AD_Last(java.lang.String sku, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
sku
- the skuavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem fetchByS_AD_Last(java.lang.String sku, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator)
sku
- the skuavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory replenishment item could not be foundpublic static CommerceInventoryReplenishmentItem[] findByS_AD_PrevAndNext(long commerceInventoryReplenishmentItemId, java.lang.String sku, java.util.Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemsku
- the skuavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static void removeByS_AD(java.lang.String sku, java.util.Date availabilityDate)
sku
- the skuavailabilityDate
- the availability datepublic static int countByS_AD(java.lang.String sku, java.util.Date availabilityDate)
sku
- the skuavailabilityDate
- the availability datepublic static void cacheResult(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
commerceInventoryReplenishmentItem
- the commerce inventory replenishment itempublic static void cacheResult(java.util.List<CommerceInventoryReplenishmentItem> commerceInventoryReplenishmentItems)
commerceInventoryReplenishmentItems
- the commerce inventory replenishment itemspublic static CommerceInventoryReplenishmentItem create(long commerceInventoryReplenishmentItemId)
commerceInventoryReplenishmentItemId
- the primary key for the new commerce inventory replenishment itempublic static CommerceInventoryReplenishmentItem remove(long commerceInventoryReplenishmentItemId) throws NoSuchInventoryReplenishmentItemException
commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment itemNoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static CommerceInventoryReplenishmentItem updateImpl(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
public static CommerceInventoryReplenishmentItem findByPrimaryKey(long commerceInventoryReplenishmentItemId) throws NoSuchInventoryReplenishmentItemException
NoSuchInventoryReplenishmentItemException
if it could not be found.commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment itemNoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundpublic static CommerceInventoryReplenishmentItem fetchByPrimaryKey(long commerceInventoryReplenishmentItemId)
null
if it could not be found.commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment itemnull
if a commerce inventory replenishment item with the primary key could not be foundpublic static java.util.List<CommerceInventoryReplenishmentItem> findAll()
public static java.util.List<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
start
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)public static java.util.List<CommerceInventoryReplenishmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> 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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
start
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceInventoryReplenishmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CommerceInventoryReplenishmentItemModelImpl
.
start
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceInventoryReplenishmentItemPersistence getPersistence()