Class CommerceInventoryReplenishmentItemUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) Caches the commerce inventory replenishment item in the entity cache if it is enabled.static void
cacheResult
(List<CommerceInventoryReplenishmentItem> commerceInventoryReplenishmentItems) Caches the commerce inventory replenishment items in the entity cache if it is enabled.static void
static void
clearCache
(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) static int
countAll()
Returns the number of commerce inventory replenishment items.static int
countByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey) Returns the number of commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.static int
countByAvailabilityDate
(Date availabilityDate) Returns the number of commerce inventory replenishment items where availabilityDate = ?.static int
countByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.static int
countByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns the number of commerce inventory replenishment items where commerceInventoryWarehouseId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce inventory replenishment items where externalReferenceCode = ? and companyId = ?.static int
countBySku
(String sku) Returns the number of commerce inventory replenishment items where sku = ?.static int
countByUuid
(String uuid) Returns the number of commerce inventory replenishment items where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce inventory replenishment items where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create
(long commerceInventoryReplenishmentItemId) Creates a new commerce inventory replenishment item with the primary key.fetchByAD_S_U_First
(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.fetchByAD_S_U_Last
(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.fetchByAvailabilityDate_First
(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.fetchByAvailabilityDate_Last
(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ?.fetchByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.fetchByC_S_U_Last
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.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 = ?.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 = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long commerceInventoryReplenishmentItemId) Returns the commerce inventory replenishment item with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) fetchBySku_First
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where sku = ?.fetchBySku_Last
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where sku = ?.fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ?.findAll()
Returns all the commerce inventory replenishment items.findAll
(int start, int end) Returns a range of all the commerce inventory replenishment items.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns an ordered range of all the commerce inventory replenishment items.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.findByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey) Returns all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.findByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.findByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey, 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 = ? and sku = ? and unitOfMeasureKey = ?.findByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey, 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 = ? and sku = ? and unitOfMeasureKey = ?.findByAD_S_U_First
(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.findByAD_S_U_Last
(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.static CommerceInventoryReplenishmentItem[]
findByAD_S_U_PrevAndNext
(long commerceInventoryReplenishmentItemId, Date availabilityDate, String sku, String unitOfMeasureKey, 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 = ? and sku = ? and unitOfMeasureKey = ?.findByAvailabilityDate
(Date availabilityDate) Returns all the commerce inventory replenishment items where availabilityDate = ?.findByAvailabilityDate
(Date availabilityDate, int start, int end) Returns a range of all the commerce inventory replenishment items where availabilityDate = ?.findByAvailabilityDate
(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 = ?.findByAvailabilityDate
(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 = ?.findByAvailabilityDate_First
(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.findByAvailabilityDate_Last
(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, 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 = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, 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 = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, 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 = ? and unitOfMeasureKey = ?.findByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U_Last
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.static CommerceInventoryReplenishmentItem[]
findByC_S_U_PrevAndNext
(long commerceInventoryReplenishmentItemId, long companyId, String sku, String unitOfMeasureKey, 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 = ? and unitOfMeasureKey = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or throws aNoSuchInventoryReplenishmentItemException
if it could not be found.findByPrimaryKey
(long commerceInventoryReplenishmentItemId) Returns the commerce inventory replenishment item with the primary key or throws aNoSuchInventoryReplenishmentItemException
if it could not be found.Returns all the commerce inventory replenishment items where sku = ?.Returns a range of all the commerce inventory replenishment items where sku = ?.findBySku
(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 = ?.findBySku
(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 = ?.findBySku_First
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where sku = ?.findBySku_Last
(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, 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 = ?.findByUuid
(String uuid) Returns all the commerce inventory replenishment items where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the commerce inventory replenishment items where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns an ordered range of all the commerce inventory replenishment items where uuid = ?.findByUuid
(String uuid, 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 uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the commerce inventory replenishment items where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce inventory replenishment items where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns an ordered range of all the commerce inventory replenishment items where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, 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 uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.static CommerceInventoryReplenishmentItem[]
findByUuid_C_PrevAndNext
(long commerceInventoryReplenishmentItemId, String uuid, long companyId, 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 uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ?.static CommerceInventoryReplenishmentItem[]
findByUuid_PrevAndNext
(long commerceInventoryReplenishmentItemId, String uuid, 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 uuid = ?.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) remove
(long commerceInventoryReplenishmentItemId) Removes the commerce inventory replenishment item with the primary key from the database.static void
Removes all the commerce inventory replenishment items from the database.static void
removeByAD_S_U
(Date availabilityDate, String sku, String unitOfMeasureKey) Removes all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ? from the database.static void
removeByAvailabilityDate
(Date availabilityDate) Removes all the commerce inventory replenishment items where availabilityDate = ? from the database.static void
removeByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Removes all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.static void
removeByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Removes all the commerce inventory replenishment items where commerceInventoryWarehouseId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? from the database.static void
removeBySku
(String sku) Removes all the commerce inventory replenishment items where sku = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce inventory replenishment items where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce inventory replenishment items where uuid = ? and companyId = ? from the database.static void
update
(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) update
(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem)
-
Constructor Details
-
CommerceInventoryReplenishmentItemUtil
public CommerceInventoryReplenishmentItemUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
public static void clearCache(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) - See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceInventoryReplenishmentItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceInventoryReplenishmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceInventoryReplenishmentItem update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceInventoryReplenishmentItem update(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce inventory replenishment items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce inventory replenishment items
-
findByUuid
Returns a range of all the commerce inventory replenishment items where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)- Returns:
- the range of matching commerce inventory replenishment items
-
findByUuid
public static List<CommerceInventoryReplenishmentItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns an ordered range of all the commerce inventory replenishment items where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByUuid
public static List<CommerceInventoryReplenishmentItem> findByUuid(String uuid, 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 uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByUuid_First
public static CommerceInventoryReplenishmentItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByUuid_First
public static CommerceInventoryReplenishmentItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByUuid_Last
public static CommerceInventoryReplenishmentItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByUuid_Last
public static CommerceInventoryReplenishmentItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByUuid_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByUuid_PrevAndNext(long commerceInventoryReplenishmentItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where uuid = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByUuid
Removes all the commerce inventory replenishment items where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce inventory replenishment items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce inventory replenishment items
-
findByUuid_C
Returns all the commerce inventory replenishment items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce inventory replenishment items
-
findByUuid_C
public static List<CommerceInventoryReplenishmentItem> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce inventory replenishment items where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company 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)- Returns:
- the range of matching commerce inventory replenishment items
-
findByUuid_C
public static List<CommerceInventoryReplenishmentItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns an ordered range of all the commerce inventory replenishment items where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company 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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByUuid_C
public static List<CommerceInventoryReplenishmentItem> findByUuid_C(String uuid, long companyId, 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 uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByUuid_C_First
public static CommerceInventoryReplenishmentItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByUuid_C_First
public static CommerceInventoryReplenishmentItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByUuid_C_Last
public static CommerceInventoryReplenishmentItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByUuid_C_Last
public static CommerceInventoryReplenishmentItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByUuid_C_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByUuid_C_PrevAndNext(long commerceInventoryReplenishmentItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByUuid_C
Removes all the commerce inventory replenishment items where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce inventory replenishment items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce inventory replenishment items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Returns all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory replenishment items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryReplenishmentItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory replenishment items where commerceInventoryWarehouseId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce inventory replenishment items
-
findByCommerceInventoryWarehouseId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByCommerceInventoryWarehouseId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByCommerceInventoryWarehouseId_First
public static CommerceInventoryReplenishmentItem findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByCommerceInventoryWarehouseId_First
public 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 = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByCommerceInventoryWarehouseId_Last
public static CommerceInventoryReplenishmentItem findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByCommerceInventoryWarehouseId_Last
public 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 = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByCommerceInventoryWarehouseId_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryReplenishmentItemId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByCommerceInventoryWarehouseId
public static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Removes all the commerce inventory replenishment items where commerceInventoryWarehouseId = ? from the database.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID
-
countByCommerceInventoryWarehouseId
public static int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Returns the number of commerce inventory replenishment items where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the number of matching commerce inventory replenishment items
-
findByAvailabilityDate
public static List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(Date availabilityDate) Returns all the commerce inventory replenishment items where availabilityDate = ?.- Parameters:
availabilityDate
- the availability date- Returns:
- the matching commerce inventory replenishment items
-
findByAvailabilityDate
public static List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(Date availabilityDate, int start, int end) Returns a range of all the commerce inventory replenishment items where availabilityDate = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce inventory replenishment items
-
findByAvailabilityDate
public static List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByAvailabilityDate
public static List<CommerceInventoryReplenishmentItem> findByAvailabilityDate(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByAvailabilityDate_First
public static CommerceInventoryReplenishmentItem findByAvailabilityDate_First(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.- Parameters:
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByAvailabilityDate_First
public static CommerceInventoryReplenishmentItem fetchByAvailabilityDate_First(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ?.- Parameters:
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByAvailabilityDate_Last
public static CommerceInventoryReplenishmentItem findByAvailabilityDate_Last(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ?.- Parameters:
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByAvailabilityDate_Last
public static CommerceInventoryReplenishmentItem fetchByAvailabilityDate_Last(Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ?.- Parameters:
availabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByAvailabilityDate_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByAvailabilityDate_PrevAndNext(long commerceInventoryReplenishmentItemId, Date availabilityDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where availabilityDate = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemavailabilityDate
- the availability dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByAvailabilityDate
Removes all the commerce inventory replenishment items where availabilityDate = ? from the database.- Parameters:
availabilityDate
- the availability date
-
countByAvailabilityDate
Returns the number of commerce inventory replenishment items where availabilityDate = ?.- Parameters:
availabilityDate
- the availability date- Returns:
- the number of matching commerce inventory replenishment items
-
findBySku
Returns all the commerce inventory replenishment items where sku = ?.- Parameters:
sku
- the sku- Returns:
- the matching commerce inventory replenishment items
-
findBySku
Returns a range of all the commerce inventory replenishment items where sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce inventory replenishment items
-
findBySku
public static List<CommerceInventoryReplenishmentItem> findBySku(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findBySku
public static List<CommerceInventoryReplenishmentItem> findBySku(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findBySku_First
public static CommerceInventoryReplenishmentItem findBySku_First(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchBySku_First
public static CommerceInventoryReplenishmentItem fetchBySku_First(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findBySku_Last
public static CommerceInventoryReplenishmentItem findBySku_Last(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchBySku_Last
public static CommerceInventoryReplenishmentItem fetchBySku_Last(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findBySku_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findBySku_PrevAndNext(long commerceInventoryReplenishmentItemId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where sku = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeBySku
Removes all the commerce inventory replenishment items where sku = ? from the database.- Parameters:
sku
- the sku
-
countBySku
Returns the number of commerce inventory replenishment items where sku = ?.- Parameters:
sku
- the sku- Returns:
- the number of matching commerce inventory replenishment items
-
findByC_S_U
public static List<CommerceInventoryReplenishmentItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory replenishment items
-
findByC_S_U
public static List<CommerceInventoryReplenishmentItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)- Returns:
- the range of matching commerce inventory replenishment items
-
findByC_S_U
public static List<CommerceInventoryReplenishmentItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, 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 = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByC_S_U
public static List<CommerceInventoryReplenishmentItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, 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 = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByC_S_U_First
public static CommerceInventoryReplenishmentItem findByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByC_S_U_First
public static CommerceInventoryReplenishmentItem fetchByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByC_S_U_Last
public static CommerceInventoryReplenishmentItem findByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByC_S_U_Last
public static CommerceInventoryReplenishmentItem fetchByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByC_S_U_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByC_S_U_PrevAndNext(long commerceInventoryReplenishmentItemId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemcompanyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByC_S_U
Removes all the commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key
-
countByC_S_U
Returns the number of commerce inventory replenishment items where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the number of matching commerce inventory replenishment items
-
findByAD_S_U
public static List<CommerceInventoryReplenishmentItem> findByAD_S_U(Date availabilityDate, String sku, String unitOfMeasureKey) Returns all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory replenishment items
-
findByAD_S_U
public static List<CommerceInventoryReplenishmentItem> findByAD_S_U(Date availabilityDate, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory replenishment itemsend
- the upper bound of the range of commerce inventory replenishment items (not inclusive)- Returns:
- the range of matching commerce inventory replenishment items
-
findByAD_S_U
public static List<CommerceInventoryReplenishmentItem> findByAD_S_U(Date availabilityDate, String sku, String unitOfMeasureKey, 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 = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keystart
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByAD_S_U
public static List<CommerceInventoryReplenishmentItem> findByAD_S_U(Date availabilityDate, String sku, String unitOfMeasureKey, 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 = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keystart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory replenishment items
-
findByAD_S_U_First
public static CommerceInventoryReplenishmentItem findByAD_S_U_First(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByAD_S_U_First
public static CommerceInventoryReplenishmentItem fetchByAD_S_U_First(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the first commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByAD_S_U_Last
public static CommerceInventoryReplenishmentItem findByAD_S_U_Last(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByAD_S_U_Last
public static CommerceInventoryReplenishmentItem fetchByAD_S_U_Last(Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) Returns the last commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
findByAD_S_U_PrevAndNext
public static CommerceInventoryReplenishmentItem[] findByAD_S_U_PrevAndNext(long commerceInventoryReplenishmentItemId, Date availabilityDate, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryReplenishmentItem> orderByComparator) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment items before and after the current commerce inventory replenishment item in the ordered set where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the current commerce inventory replenishment itemavailabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
removeByAD_S_U
Removes all the commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ? from the database.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure key
-
countByAD_S_U
Returns the number of commerce inventory replenishment items where availabilityDate = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
availabilityDate
- the availability datesku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the number of matching commerce inventory replenishment items
-
findByERC_C
public static CommerceInventoryReplenishmentItem findByERC_C(String externalReferenceCode, long companyId) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or throws aNoSuchInventoryReplenishmentItemException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a matching commerce inventory replenishment item could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByERC_C
public static CommerceInventoryReplenishmentItem fetchByERC_C(String externalReferenceCode, long companyId) Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
fetchByERC_C
public static CommerceInventoryReplenishmentItem fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce inventory replenishment item, or
null
if a matching commerce inventory replenishment item could not be found
-
removeByERC_C
public static CommerceInventoryReplenishmentItem removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchInventoryReplenishmentItemException Removes the commerce inventory replenishment item where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce inventory replenishment item that was removed
- Throws:
NoSuchInventoryReplenishmentItemException
-
countByERC_C
Returns the number of commerce inventory replenishment items where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce inventory replenishment items
-
cacheResult
public static void cacheResult(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) Caches the commerce inventory replenishment item in the entity cache if it is enabled.- Parameters:
commerceInventoryReplenishmentItem
- the commerce inventory replenishment item
-
cacheResult
public static void cacheResult(List<CommerceInventoryReplenishmentItem> commerceInventoryReplenishmentItems) Caches the commerce inventory replenishment items in the entity cache if it is enabled.- Parameters:
commerceInventoryReplenishmentItems
- the commerce inventory replenishment items
-
create
Creates a new commerce inventory replenishment item with the primary key. Does not add the commerce inventory replenishment item to the database.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key for the new commerce inventory replenishment item- Returns:
- the new commerce inventory replenishment item
-
remove
public static CommerceInventoryReplenishmentItem remove(long commerceInventoryReplenishmentItemId) throws NoSuchInventoryReplenishmentItemException Removes the commerce inventory replenishment item with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment item- Returns:
- the commerce inventory replenishment item that was removed
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
updateImpl
public static CommerceInventoryReplenishmentItem updateImpl(CommerceInventoryReplenishmentItem commerceInventoryReplenishmentItem) -
findByPrimaryKey
public static CommerceInventoryReplenishmentItem findByPrimaryKey(long commerceInventoryReplenishmentItemId) throws NoSuchInventoryReplenishmentItemException Returns the commerce inventory replenishment item with the primary key or throws aNoSuchInventoryReplenishmentItemException
if it could not be found.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment item- Returns:
- the commerce inventory replenishment item
- Throws:
NoSuchInventoryReplenishmentItemException
- if a commerce inventory replenishment item with the primary key could not be foundNoSuchInventoryReplenishmentItemException
-
fetchByPrimaryKey
public static CommerceInventoryReplenishmentItem fetchByPrimaryKey(long commerceInventoryReplenishmentItemId) Returns the commerce inventory replenishment item with the primary key or returnsnull
if it could not be found.- Parameters:
commerceInventoryReplenishmentItemId
- the primary key of the commerce inventory replenishment item- Returns:
- the commerce inventory replenishment item, or
null
if a commerce inventory replenishment item with the primary key could not be found
-
findAll
Returns all the commerce inventory replenishment items.- Returns:
- the commerce inventory replenishment items
-
findAll
Returns a range of all the commerce inventory replenishment items.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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)- Returns:
- the range of commerce inventory replenishment items
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce inventory replenishment items
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryReplenishmentItemModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce inventory replenishment items
-
removeAll
public static void removeAll()Removes all the commerce inventory replenishment items from the database. -
countAll
public static int countAll()Returns the number of commerce inventory replenishment items.- Returns:
- the number of commerce inventory replenishment items
-
getPersistence
-
setPersistence
-