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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce inventory warehouse items where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_S(long commerceInventoryWarehouseId,
java.lang.String sku)
Returns the number of commerce inventory warehouse items where commerceInventoryWarehouseId = ? and sku = ?.
|
static int |
countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Returns the number of commerce inventory warehouse items where commerceInventoryWarehouseId = ?.
|
static int |
countByCompanyId_Sku(long companyId,
java.lang.String sku)
Returns the number of commerce inventory warehouse items where companyId = ? and sku = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce inventory warehouse items where companyId = ?.
|
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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce inventory warehouse item where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceInventoryWarehouseItem |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce inventory warehouse item where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceInventoryWarehouseItem |
fetchByC_S(long commerceInventoryWarehouseId,
java.lang.String sku)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? or returns
null if it could not be found. |
static CommerceInventoryWarehouseItem |
fetchByC_S(long commerceInventoryWarehouseId,
java.lang.String sku,
boolean useFinderCache)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? 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 |
fetchByCompanyId_Sku_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the first commerce inventory warehouse item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryWarehouseItem |
fetchByCompanyId_Sku_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the last commerce inventory warehouse item in the ordered set where companyId = ? and sku = ?.
|
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 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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce inventory warehouse item where companyId = ? and externalReferenceCode = ? or throws a
NoSuchInventoryWarehouseItemException if it could not be found. |
static CommerceInventoryWarehouseItem |
findByC_S(long commerceInventoryWarehouseId,
java.lang.String sku)
Returns the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? 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 CommerceInventoryWarehouseItem |
findByCompanyId_Sku_First(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the first commerce inventory warehouse item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryWarehouseItem |
findByCompanyId_Sku_Last(long companyId,
java.lang.String sku,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
Returns the last commerce inventory warehouse item in the ordered set where companyId = ? and sku = ?.
|
static CommerceInventoryWarehouseItem[] |
findByCompanyId_Sku_PrevAndNext(long commerceInventoryWarehouseItemId,
long companyId,
java.lang.String sku,
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 = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId_Sku(long companyId,
java.lang.String sku)
Returns all the commerce inventory warehouse items where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId_Sku(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the commerce inventory warehouse items where companyId = ? and sku = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId_Sku(long companyId,
java.lang.String sku,
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 = ?.
|
static java.util.List<CommerceInventoryWarehouseItem> |
findByCompanyId_Sku(long companyId,
java.lang.String sku,
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 = ?.
|
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 |
findByPrimaryKey(long commerceInventoryWarehouseItemId)
Returns the commerce inventory warehouse item with the primary key or throws a
NoSuchInventoryWarehouseItemException if it could not be found. |
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 CommerceInventoryWarehouseItem |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce inventory warehouse item where companyId = ? and externalReferenceCode = ? from the database.
|
static CommerceInventoryWarehouseItem |
removeByC_S(long commerceInventoryWarehouseId,
java.lang.String sku)
Removes the commerce inventory warehouse item where commerceInventoryWarehouseId = ? and sku = ? from the database.
|
static void |
removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Removes all the commerce inventory warehouse items where commerceInventoryWarehouseId = ? from the database.
|
static void |
removeByCompanyId_Sku(long companyId,
java.lang.String sku)
Removes all the commerce inventory warehouse items where companyId = ? and sku = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce inventory warehouse items where companyId = ? from the database.
|
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> 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> findByCompanyId_Sku(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CommerceInventoryWarehouseItem> findByCompanyId_Sku(long companyId, java.lang.String sku, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseItemModelImpl
.
companyId
- the company IDsku
- the skustart
- 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_Sku(long companyId, java.lang.String sku, 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 skustart
- 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_Sku(long companyId, java.lang.String sku, 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 skustart
- 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_Sku_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCompanyId_Sku_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem findByCompanyId_Sku_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByCompanyId_Sku_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseItem> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem[] findByCompanyId_Sku_PrevAndNext(long commerceInventoryWarehouseItemId, long companyId, java.lang.String sku, 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 skuorderByComparator
- 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_Sku(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static int countByCompanyId_Sku(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static CommerceInventoryWarehouseItem findByC_S(long commerceInventoryWarehouseId, java.lang.String sku) throws NoSuchInventoryWarehouseItemException
NoSuchInventoryWarehouseItemException
if it could not be found.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuNoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_S(long commerceInventoryWarehouseId, java.lang.String sku)
null
if it could not be found. Uses the finder cache.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skunull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_S(long commerceInventoryWarehouseId, java.lang.String sku, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuuseFinderCache
- whether to use the finder cachenull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem removeByC_S(long commerceInventoryWarehouseId, java.lang.String sku) throws NoSuchInventoryWarehouseItemException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skuNoSuchInventoryWarehouseItemException
public static int countByC_S(long commerceInventoryWarehouseId, java.lang.String sku)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDsku
- the skupublic static CommerceInventoryWarehouseItem findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchInventoryWarehouseItemException
NoSuchInventoryWarehouseItemException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchInventoryWarehouseItemException
- if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce inventory warehouse item could not be foundpublic static CommerceInventoryWarehouseItem removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchInventoryWarehouseItemException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchInventoryWarehouseItemException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic 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()