Class CommerceInventoryWarehouseItemUtil
com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryWarehouseItemPersistenceImpl
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
(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) Caches the commerce inventory warehouse item in the entity cache if it is enabled.static void
cacheResult
(List<CommerceInventoryWarehouseItem> commerceInventoryWarehouseItems) Caches the commerce inventory warehouse items in the entity cache if it is enabled.static void
static void
clearCache
(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) static int
countAll()
Returns the number of commerce inventory warehouse items.static int
countByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.static int
countByCIWI_S_U
(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory warehouse items where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ?.static int
countByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse items where commerceInventoryWarehouseId = ?.static int
countByCompanyId
(long companyId) Returns the number of commerce inventory warehouse items where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce inventory warehouse items where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce inventory warehouse items where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce inventory warehouse items where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create
(long commerceInventoryWarehouseItemId) Creates a new commerce inventory warehouse item with the primary key.fetchByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.fetchByCIWI_S_U
(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returnsnull
if it could not be found.fetchByCIWI_S_U
(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey, boolean useFinderCache) Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCommerceInventoryWarehouseId_First
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.fetchByCommerceInventoryWarehouseId_Last
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce inventory warehouse 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 warehouse item where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long commerceInventoryWarehouseItemId) Returns the commerce inventory warehouse item with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where uuid = ?.static List<CommerceInventoryWarehouseItem>
findAll()
Returns all the commerce inventory warehouse items.static List<CommerceInventoryWarehouseItem>
findAll
(int start, int end) Returns a range of all the commerce inventory warehouse items.static List<CommerceInventoryWarehouseItem>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items.static List<CommerceInventoryWarehouseItem>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items.static List<CommerceInventoryWarehouseItem>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryWarehouseItem>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryWarehouseItem>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryWarehouseItem>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.static CommerceInventoryWarehouseItem[]
findByC_S_U_PrevAndNext
(long commerceInventoryWarehouseItemId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByCIWI_S_U
(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or throws aNoSuchInventoryWarehouseItemException
if it could not be found.static List<CommerceInventoryWarehouseItem>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.static List<CommerceInventoryWarehouseItem>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.static List<CommerceInventoryWarehouseItem>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.static List<CommerceInventoryWarehouseItem>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId_First
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId_Last
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.static CommerceInventoryWarehouseItem[]
findByCommerceInventoryWarehouseId_PrevAndNext
(long commerceInventoryWarehouseItemId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.static List<CommerceInventoryWarehouseItem>
findByCompanyId
(long companyId) Returns all the commerce inventory warehouse items where companyId = ?.static List<CommerceInventoryWarehouseItem>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce inventory warehouse items where companyId = ?.static List<CommerceInventoryWarehouseItem>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where companyId = ?.static List<CommerceInventoryWarehouseItem>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where companyId = ?.findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where companyId = ?.static CommerceInventoryWarehouseItem[]
findByCompanyId_PrevAndNext
(long commerceInventoryWarehouseItemId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where companyId = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? or throws aNoSuchInventoryWarehouseItemException
if it could not be found.findByPrimaryKey
(long commerceInventoryWarehouseItemId) Returns the commerce inventory warehouse item with the primary key or throws aNoSuchInventoryWarehouseItemException
if it could not be found.static List<CommerceInventoryWarehouseItem>
findByUuid
(String uuid) Returns all the commerce inventory warehouse items where uuid = ?.static List<CommerceInventoryWarehouseItem>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce inventory warehouse items where uuid = ?.static List<CommerceInventoryWarehouseItem>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where uuid = ?.static List<CommerceInventoryWarehouseItem>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where uuid = ?.static List<CommerceInventoryWarehouseItem>
findByUuid_C
(String uuid, long companyId) Returns all the commerce inventory warehouse items where uuid = ? and companyId = ?.static List<CommerceInventoryWarehouseItem>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce inventory warehouse items where uuid = ? and companyId = ?.static List<CommerceInventoryWarehouseItem>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where uuid = ? and companyId = ?.static List<CommerceInventoryWarehouseItem>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.static CommerceInventoryWarehouseItem[]
findByUuid_C_PrevAndNext
(long commerceInventoryWarehouseItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where uuid = ?.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where uuid = ?.static CommerceInventoryWarehouseItem[]
findByUuid_PrevAndNext
(long commerceInventoryWarehouseItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where uuid = ?.static List<CommerceInventoryWarehouseItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceInventoryWarehouseItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceInventoryWarehouseItem>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) remove
(long commerceInventoryWarehouseItemId) Removes the commerce inventory warehouse item with the primary key from the database.static void
Removes all the commerce inventory warehouse items from the database.static void
removeByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Removes all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.removeByCIWI_S_U
(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Removes the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? from the database.static void
removeByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse items where commerceInventoryWarehouseId = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce inventory warehouse items where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce inventory warehouse items where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce inventory warehouse items where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceInventoryWarehouseItemPersistence persistence) update
(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) update
(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
-
Constructor Details
-
CommerceInventoryWarehouseItemUtil
public CommerceInventoryWarehouseItemUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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,CommerceInventoryWarehouseItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceInventoryWarehouseItem update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceInventoryWarehouseItem update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce inventory warehouse items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce inventory warehouse items
-
findByUuid
Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of matching commerce inventory warehouse items
-
findByUuid
public static List<CommerceInventoryWarehouseItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse items
-
findByUuid
public static List<CommerceInventoryWarehouseItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
findByUuid_First
public static CommerceInventoryWarehouseItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the first commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByUuid_First
public static CommerceInventoryWarehouseItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByUuid_Last
public static CommerceInventoryWarehouseItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the last commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByUuid_Last
public static CommerceInventoryWarehouseItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByUuid_PrevAndNext
public static CommerceInventoryWarehouseItem[] findByUuid_PrevAndNext(long commerceInventoryWarehouseItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where uuid = ?.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
removeByUuid
Removes all the commerce inventory warehouse items where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce inventory warehouse items where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce inventory warehouse items
-
findByUuid_C
Returns all the commerce inventory warehouse items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce inventory warehouse items
-
findByUuid_C
public static List<CommerceInventoryWarehouseItem> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of matching commerce inventory warehouse items
-
findByUuid_C
public static List<CommerceInventoryWarehouseItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse items
-
findByUuid_C
public static List<CommerceInventoryWarehouseItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
findByUuid_C_First
public static CommerceInventoryWarehouseItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the first commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByUuid_C_First
public static CommerceInventoryWarehouseItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByUuid_C_Last
public static CommerceInventoryWarehouseItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the last commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByUuid_C_Last
public static CommerceInventoryWarehouseItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByUuid_C_PrevAndNext
public static CommerceInventoryWarehouseItem[] findByUuid_C_PrevAndNext(long commerceInventoryWarehouseItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
removeByUuid_C
Removes all the commerce inventory warehouse items where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce inventory warehouse items where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce inventory warehouse items
-
findByCompanyId
Returns all the commerce inventory warehouse items where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce inventory warehouse items
-
findByCompanyId
public static List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end) Returns a range of all the commerce inventory warehouse items where 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of matching commerce inventory warehouse items
-
findByCompanyId
public static List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse items where 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse items
-
findByCompanyId
public static List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse items where 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
findByCompanyId_First
public static CommerceInventoryWarehouseItem findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the first commerce inventory warehouse item in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByCompanyId_First
public static CommerceInventoryWarehouseItem fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse item in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByCompanyId_Last
public static CommerceInventoryWarehouseItem findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the last commerce inventory warehouse item in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByCompanyId_Last
public static CommerceInventoryWarehouseItem fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse item in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByCompanyId_PrevAndNext
public static CommerceInventoryWarehouseItem[] findByCompanyId_PrevAndNext(long commerceInventoryWarehouseItemId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where companyId = ?.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce inventory warehouse items where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of commerce inventory warehouse items where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce inventory warehouse items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory warehouse items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of matching commerce inventory warehouse items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse items
-
findByCommerceInventoryWarehouseId
public static List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
findByCommerceInventoryWarehouseId_First
public static CommerceInventoryWarehouseItem findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the first commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByCommerceInventoryWarehouseId_First
public static CommerceInventoryWarehouseItem fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByCommerceInventoryWarehouseId_Last
public static CommerceInventoryWarehouseItem findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the last commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByCommerceInventoryWarehouseId_Last
public static CommerceInventoryWarehouseItem fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByCommerceInventoryWarehouseId_PrevAndNext
public static CommerceInventoryWarehouseItem[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryWarehouseItemId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
removeByCommerceInventoryWarehouseId
public static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse 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 warehouse items where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the number of matching commerce inventory warehouse items
-
findByC_S_U
public static List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory warehouse items
-
findByC_S_U
public static List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of matching commerce inventory warehouse items
-
findByC_S_U
public static List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse items
-
findByC_S_U
public static List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
findByC_S_U_First
public static CommerceInventoryWarehouseItem findByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the first commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByC_S_U_First
public static CommerceInventoryWarehouseItem fetchByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the first commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByC_S_U_Last
public static CommerceInventoryWarehouseItem findByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the last commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByC_S_U_Last
public static CommerceInventoryWarehouseItem fetchByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns the last commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
findByC_S_U_PrevAndNext
public static CommerceInventoryWarehouseItem[] findByC_S_U_PrevAndNext(long commerceInventoryWarehouseItemId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse items before and after the current commerce inventory warehouse item in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse 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 warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
removeByC_S_U
Removes all the commerce inventory warehouse 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 warehouse 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 warehouse items
-
findByCIWI_S_U
public static CommerceInventoryWarehouseItem findByCIWI_S_U(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or throws aNoSuchInventoryWarehouseItemException
if it could not be found.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByCIWI_S_U
public static CommerceInventoryWarehouseItem fetchByCIWI_S_U(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
fetchByCIWI_S_U
public static CommerceInventoryWarehouseItem fetchByCIWI_S_U(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey, boolean useFinderCache) Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce inventory warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
removeByCIWI_S_U
public static CommerceInventoryWarehouseItem removeByCIWI_S_U(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) throws NoSuchInventoryWarehouseItemException Removes the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? from the database.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the commerce inventory warehouse item that was removed
- Throws:
NoSuchInventoryWarehouseItemException
-
countByCIWI_S_U
public static int countByCIWI_S_U(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory warehouse items where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the number of matching commerce inventory warehouse items
-
findByERC_C
public static CommerceInventoryWarehouseItem findByERC_C(String externalReferenceCode, long companyId) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? or throws aNoSuchInventoryWarehouseItemException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundNoSuchInventoryWarehouseItemException
-
fetchByERC_C
public static CommerceInventoryWarehouseItem fetchByERC_C(String externalReferenceCode, long companyId) Returns the commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
fetchByERC_C
public static CommerceInventoryWarehouseItem fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce inventory warehouse 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 warehouse item, or
null
if a matching commerce inventory warehouse item could not be found
-
removeByERC_C
public static CommerceInventoryWarehouseItem removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchInventoryWarehouseItemException Removes the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce inventory warehouse item that was removed
- Throws:
NoSuchInventoryWarehouseItemException
-
countByERC_C
Returns the number of commerce inventory warehouse items where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce inventory warehouse items
-
cacheResult
Caches the commerce inventory warehouse item in the entity cache if it is enabled.- Parameters:
commerceInventoryWarehouseItem
- the commerce inventory warehouse item
-
cacheResult
public static void cacheResult(List<CommerceInventoryWarehouseItem> commerceInventoryWarehouseItems) Caches the commerce inventory warehouse items in the entity cache if it is enabled.- Parameters:
commerceInventoryWarehouseItems
- the commerce inventory warehouse items
-
create
Creates a new commerce inventory warehouse item with the primary key. Does not add the commerce inventory warehouse item to the database.- Parameters:
commerceInventoryWarehouseItemId
- the primary key for the new commerce inventory warehouse item- Returns:
- the new commerce inventory warehouse item
-
remove
public static CommerceInventoryWarehouseItem remove(long commerceInventoryWarehouseItemId) throws NoSuchInventoryWarehouseItemException Removes the commerce inventory warehouse item with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse item- Returns:
- the commerce inventory warehouse item that was removed
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
updateImpl
public static CommerceInventoryWarehouseItem updateImpl(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) -
findByPrimaryKey
public static CommerceInventoryWarehouseItem findByPrimaryKey(long commerceInventoryWarehouseItemId) throws NoSuchInventoryWarehouseItemException Returns the commerce inventory warehouse item with the primary key or throws aNoSuchInventoryWarehouseItemException
if it could not be found.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse item- Returns:
- the commerce inventory warehouse item
- Throws:
NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundNoSuchInventoryWarehouseItemException
-
fetchByPrimaryKey
public static CommerceInventoryWarehouseItem fetchByPrimaryKey(long commerceInventoryWarehouseItemId) Returns the commerce inventory warehouse item with the primary key or returnsnull
if it could not be found.- Parameters:
commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse item- Returns:
- the commerce inventory warehouse item, or
null
if a commerce inventory warehouse item with the primary key could not be found
-
findAll
Returns all the commerce inventory warehouse items.- Returns:
- the commerce inventory warehouse items
-
findAll
Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)- Returns:
- the range of commerce inventory warehouse items
-
findAll
public static List<CommerceInventoryWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse items (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce inventory warehouse items
-
findAll
public static List<CommerceInventoryWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseItemModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse itemsend
- the upper bound of the range of commerce inventory warehouse 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 warehouse items
-
removeAll
public static void removeAll()Removes all the commerce inventory warehouse items from the database. -
countAll
public static int countAll()Returns the number of commerce inventory warehouse items.- Returns:
- the number of commerce inventory warehouse items
-
getPersistence
-
setPersistence
-