public class CommerceInventoryWarehouseItemUtil
extends java.lang.Object
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
CommerceInventoryWarehouseItemPersistence
Constructor and Description |
---|
CommerceInventoryWarehouseItemUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
Caches the commerce inventory warehouse item in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceInventoryWarehouseItem> commerceInventoryWarehouseItems)
Caches the commerce inventory warehouse items in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) |
static int |
countAll()
Returns the number of commerce inventory warehouse items.
|
static int |
countByC_S_U(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey)
Returns the number of commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.
|
static int |
countByCIWI_S_U(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.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(java.lang.String externalReferenceCode,
long companyId)
Returns the number of commerce inventory warehouse items where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce inventory warehouse items where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce inventory warehouse items where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceInventoryWarehouseItem |
create(long commerceInventoryWarehouseItemId)
Creates a new commerce inventory warehouse item with the primary key.
|
static CommerceInventoryWarehouseItem |
fetchByC_S_U_First(long companyId,
java.lang.String sku,
java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
fetchByC_S_U_Last(long companyId,
java.lang.String sku,
java.lang.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 |
fetchByCIWI_S_U(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.String unitOfMeasureKey)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returns
null if it could not be found. |
static CommerceInventoryWarehouseItem |
fetchByCIWI_S_U(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
boolean useFinderCache)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceInventoryWarehouseItem |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static CommerceInventoryWarehouseItem |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceInventoryWarehouseItem |
fetchByPrimaryKey(long commerceInventoryWarehouseItemId)
Returns the commerce inventory warehouse item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceInventoryWarehouseItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceInventoryWarehouseItem |
fetchByUuid_C_First(java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the first commerce inventory warehouse item in the ordered set where uuid = ?.
|
static CommerceInventoryWarehouseItem |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the last commerce inventory warehouse item in the ordered set where uuid = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findAll()
Returns all the commerce inventory warehouse items.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findAll(int start,
int end)
Returns a range of all the commerce inventory warehouse items.
|
static java.util.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 java.util.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 CommerceInventoryWarehouseItem |
findByC_S_U_First(long companyId,
java.lang.String sku,
java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
findByC_S_U_Last(long companyId,
java.lang.String sku,
java.lang.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,
java.lang.String sku,
java.lang.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 = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByC_S_U(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey)
Returns all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByC_S_U(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByC_S_U(long companyId,
java.lang.String sku,
java.lang.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 java.util.List<CommerceInventoryWarehouseItem> |
findByC_S_U(long companyId,
java.lang.String sku,
java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
findByCIWI_S_U(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.String unitOfMeasureKey)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? and unitOfMeasureKey = ? or throws a
NoSuchInventoryWarehouseItemException if it could not be found. |
static CommerceInventoryWarehouseItem |
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 = ?.
|
static CommerceInventoryWarehouseItem |
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 java.util.List<CommerceInventoryWarehouseItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Returns all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where commerceInventoryWarehouseId = ?.
|
static java.util.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 java.util.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 = ?.
|
static CommerceInventoryWarehouseItem |
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 = ?.
|
static CommerceInventoryWarehouseItem |
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 = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId(long companyId)
Returns all the commerce inventory warehouse items where companyId = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where companyId = ?.
|
static java.util.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 java.util.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 = ?.
|
static CommerceInventoryWarehouseItem |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? or throws a
NoSuchInventoryWarehouseItemException if it could not be found. |
static CommerceInventoryWarehouseItem |
findByPrimaryKey(long commerceInventoryWarehouseItemId)
Returns the commerce inventory warehouse item with the primary key or throws a
NoSuchInventoryWarehouseItemException if it could not be found. |
static CommerceInventoryWarehouseItem |
findByUuid_C_First(java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
findByUuid_C_Last(java.lang.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,
java.lang.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 = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce inventory warehouse items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByUuid_C(java.lang.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 java.util.List<CommerceInventoryWarehouseItem> |
findByUuid_C(java.lang.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 = ?.
|
static CommerceInventoryWarehouseItem |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the first commerce inventory warehouse item in the ordered set where uuid = ?.
|
static CommerceInventoryWarehouseItem |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CommerceInventoryWarehouseItem> |
findByUuid(java.lang.String uuid)
Returns all the commerce inventory warehouse items where uuid = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where uuid = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByUuid(java.lang.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 java.util.List<CommerceInventoryWarehouseItem> |
findByUuid(java.lang.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 java.util.List<CommerceInventoryWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceInventoryWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceInventoryWarehouseItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) |
static CommerceInventoryWarehouseItemPersistence |
getPersistence() |
static CommerceInventoryWarehouseItem |
remove(long commerceInventoryWarehouseItemId)
Removes the commerce inventory warehouse item with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce inventory warehouse items from the database.
|
static void |
removeByC_S_U(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey)
Removes all the commerce inventory warehouse items where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.
|
static CommerceInventoryWarehouseItem |
removeByCIWI_S_U(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.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.
|
static CommerceInventoryWarehouseItem |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the commerce inventory warehouse item where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce inventory warehouse items where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce inventory warehouse items where uuid = ? from the database.
|
static void |
setPersistence(CommerceInventoryWarehouseItemPersistence persistence) |
static CommerceInventoryWarehouseItem |
update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) |
static CommerceInventoryWarehouseItem |
update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceInventoryWarehouseItem |
updateImpl(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceInventoryWarehouseItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceInventoryWarehouseItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceInventoryWarehouseItem update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceInventoryWarehouseItem update(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceInventoryWarehouseItem> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceInventoryWarehouseItem> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseItem findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByUuid_PrevAndNext(long commerceInventoryWarehouseItemId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceInventoryWarehouseItem> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseItem findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByUuid_C_PrevAndNext(long commerceInventoryWarehouseItemId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseItem findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByCompanyId_PrevAndNext(long commerceInventoryWarehouseItemId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseItem findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryWarehouseItemId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseItemId
- the primary key of the current commerce inventory warehouse itemcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keypublic static java.util.List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseItem findByC_S_U_First(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_S_U_First(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByC_S_U_Last(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_S_U_Last(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByC_S_U_PrevAndNext(long commerceInventoryWarehouseItemId, long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
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 (optionally null
)NoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static void removeByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keypublic static int countByC_S_U(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keypublic static CommerceInventoryWarehouseItem findByCIWI_S_U(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws NoSuchInventoryWarehouseItemException
NoSuchInventoryWarehouseItemException
if it could not be found.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keyNoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCIWI_S_U(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey)
null
if it could not be found. Uses the finder cache.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keynull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCIWI_S_U(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keyuseFinderCache
- whether to use the finder cachenull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem removeByCIWI_S_U(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keyNoSuchInventoryWarehouseItemException
public static int countByCIWI_S_U(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuunitOfMeasureKey
- the unit of measure keypublic static CommerceInventoryWarehouseItem findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchInventoryWarehouseItemException
NoSuchInventoryWarehouseItemException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchInventoryWarehouseItemException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchInventoryWarehouseItemException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
commerceInventoryWarehouseItem
- the commerce inventory warehouse itempublic static void cacheResult(java.util.List<CommerceInventoryWarehouseItem> commerceInventoryWarehouseItems)
commerceInventoryWarehouseItems
- the commerce inventory warehouse itemspublic static CommerceInventoryWarehouseItem create(long commerceInventoryWarehouseItemId)
commerceInventoryWarehouseItemId
- the primary key for the new commerce inventory warehouse itempublic static CommerceInventoryWarehouseItem remove(long commerceInventoryWarehouseItemId) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse itemNoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static CommerceInventoryWarehouseItem updateImpl(CommerceInventoryWarehouseItem commerceInventoryWarehouseItem)
public static CommerceInventoryWarehouseItem findByPrimaryKey(long commerceInventoryWarehouseItemId) throws NoSuchInventoryWarehouseItemException
NoSuchInventoryWarehouseItemException
if it could not be found.commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse itemNoSuchInventoryWarehouseItemException
- if a commerce inventory warehouse item with the primary key could not be foundpublic static CommerceInventoryWarehouseItem fetchByPrimaryKey(long commerceInventoryWarehouseItemId)
null
if it could not be found.commerceInventoryWarehouseItemId
- the primary key of the commerce inventory warehouse itemnull
if a commerce inventory warehouse item with the primary key could not be foundpublic static java.util.List<CommerceInventoryWarehouseItem> findAll()
public static java.util.List<CommerceInventoryWarehouseItem> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceInventoryWarehouseItemPersistence getPersistence()
public static void setPersistence(CommerceInventoryWarehouseItemPersistence persistence)