Class CommerceInventoryBookedQuantityUtil
com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryBookedQuantityPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) Caches the commerce inventory booked quantity in the entity cache if it is enabled.static void
cacheResult
(List<CommerceInventoryBookedQuantity> commerceInventoryBookedQuantities) Caches the commerce inventory booked quantities in the entity cache if it is enabled.static void
static void
clearCache
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) static int
countAll()
Returns the number of commerce inventory booked quantities.static int
countByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.static int
countByLtExpirationDate
(Date expirationDate) Returns the number of commerce inventory booked quantities where expirationDate < ?.static int
countBySku
(String sku) Returns the number of commerce inventory booked quantities where sku = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create
(long commerceInventoryBookedQuantityId) Creates a new commerce inventory booked quantity with the primary key.fetchByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.fetchByC_S_U_Last
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.fetchByLtExpirationDate_First
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.fetchByLtExpirationDate_Last
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.fetchByPrimaryKey
(long commerceInventoryBookedQuantityId) Returns the commerce inventory booked quantity with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) fetchBySku_First
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where sku = ?.fetchBySku_Last
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where sku = ?.static List<CommerceInventoryBookedQuantity>
findAll()
Returns all the commerce inventory booked quantities.static List<CommerceInventoryBookedQuantity>
findAll
(int start, int end) Returns a range of all the commerce inventory booked quantities.static List<CommerceInventoryBookedQuantity>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities.static List<CommerceInventoryBookedQuantity>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities.static List<CommerceInventoryBookedQuantity>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryBookedQuantity>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryBookedQuantity>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryBookedQuantity>
findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U_First
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U_Last
(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.static CommerceInventoryBookedQuantity[]
findByC_S_U_PrevAndNext
(long commerceInventoryBookedQuantityId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.static List<CommerceInventoryBookedQuantity>
findByLtExpirationDate
(Date expirationDate) Returns all the commerce inventory booked quantities where expirationDate < ?.static List<CommerceInventoryBookedQuantity>
findByLtExpirationDate
(Date expirationDate, int start, int end) Returns a range of all the commerce inventory booked quantities where expirationDate < ?.static List<CommerceInventoryBookedQuantity>
findByLtExpirationDate
(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.static List<CommerceInventoryBookedQuantity>
findByLtExpirationDate
(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.findByLtExpirationDate_First
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.findByLtExpirationDate_Last
(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.static CommerceInventoryBookedQuantity[]
findByLtExpirationDate_PrevAndNext
(long commerceInventoryBookedQuantityId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where expirationDate < ?.findByPrimaryKey
(long commerceInventoryBookedQuantityId) Returns the commerce inventory booked quantity with the primary key or throws aNoSuchInventoryBookedQuantityException
if it could not be found.static List<CommerceInventoryBookedQuantity>
Returns all the commerce inventory booked quantities where sku = ?.static List<CommerceInventoryBookedQuantity>
Returns a range of all the commerce inventory booked quantities where sku = ?.static List<CommerceInventoryBookedQuantity>
findBySku
(String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where sku = ?.static List<CommerceInventoryBookedQuantity>
findBySku
(String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where sku = ?.findBySku_First
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where sku = ?.findBySku_Last
(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where sku = ?.static CommerceInventoryBookedQuantity[]
findBySku_PrevAndNext
(long commerceInventoryBookedQuantityId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where sku = ?.static List<CommerceInventoryBookedQuantity>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceInventoryBookedQuantity>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceInventoryBookedQuantity>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) remove
(long commerceInventoryBookedQuantityId) Removes the commerce inventory booked quantity with the primary key from the database.static void
Removes all the commerce inventory booked quantities from the database.static void
removeByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Removes all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.static void
removeByLtExpirationDate
(Date expirationDate) Removes all the commerce inventory booked quantities where expirationDate < ? from the database.static void
removeBySku
(String sku) Removes all the commerce inventory booked quantities where sku = ? from the database.static void
setPersistence
(CommerceInventoryBookedQuantityPersistence persistence) update
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) update
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
-
Constructor Details
-
CommerceInventoryBookedQuantityUtil
public CommerceInventoryBookedQuantityUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceInventoryBookedQuantity> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceInventoryBookedQuantity> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceInventoryBookedQuantity update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceInventoryBookedQuantity update(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByLtExpirationDate
Returns all the commerce inventory booked quantities where expirationDate < ?.- Parameters:
expirationDate
- the expiration date- Returns:
- the matching commerce inventory booked quantities
-
findByLtExpirationDate
public static List<CommerceInventoryBookedQuantity> findByLtExpirationDate(Date expirationDate, int start, int end) Returns a range of all the commerce inventory booked quantities where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)- Returns:
- the range of matching commerce inventory booked quantities
-
findByLtExpirationDate
public static List<CommerceInventoryBookedQuantity> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findByLtExpirationDate
public static List<CommerceInventoryBookedQuantity> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where expirationDate < ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
expirationDate
- the expiration datestart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findByLtExpirationDate_First
public static CommerceInventoryBookedQuantity findByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchByLtExpirationDate_First
public static CommerceInventoryBookedQuantity fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where expirationDate < ?.- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findByLtExpirationDate_Last
public static CommerceInventoryBookedQuantity findByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchByLtExpirationDate_Last
public static CommerceInventoryBookedQuantity fetchByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where expirationDate < ?.- Parameters:
expirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findByLtExpirationDate_PrevAndNext
public static CommerceInventoryBookedQuantity[] findByLtExpirationDate_PrevAndNext(long commerceInventoryBookedQuantityId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where expirationDate < ?.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantityexpirationDate
- the expiration dateorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundNoSuchInventoryBookedQuantityException
-
removeByLtExpirationDate
Removes all the commerce inventory booked quantities where expirationDate < ? from the database.- Parameters:
expirationDate
- the expiration date
-
countByLtExpirationDate
Returns the number of commerce inventory booked quantities where expirationDate < ?.- Parameters:
expirationDate
- the expiration date- Returns:
- the number of matching commerce inventory booked quantities
-
findBySku
Returns all the commerce inventory booked quantities where sku = ?.- Parameters:
sku
- the sku- Returns:
- the matching commerce inventory booked quantities
-
findBySku
Returns a range of all the commerce inventory booked quantities where sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)- Returns:
- the range of matching commerce inventory booked quantities
-
findBySku
public static List<CommerceInventoryBookedQuantity> findBySku(String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findBySku
public static List<CommerceInventoryBookedQuantity> findBySku(String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
sku
- the skustart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findBySku_First
public static CommerceInventoryBookedQuantity findBySku_First(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the first commerce inventory booked quantity in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchBySku_First
public static CommerceInventoryBookedQuantity fetchBySku_First(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findBySku_Last
public static CommerceInventoryBookedQuantity findBySku_Last(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the last commerce inventory booked quantity in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchBySku_Last
public static CommerceInventoryBookedQuantity fetchBySku_Last(String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where sku = ?.- Parameters:
sku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findBySku_PrevAndNext
public static CommerceInventoryBookedQuantity[] findBySku_PrevAndNext(long commerceInventoryBookedQuantityId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where sku = ?.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantitysku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundNoSuchInventoryBookedQuantityException
-
removeBySku
Removes all the commerce inventory booked quantities where sku = ? from the database.- Parameters:
sku
- the sku
-
countBySku
Returns the number of commerce inventory booked quantities where sku = ?.- Parameters:
sku
- the sku- Returns:
- the number of matching commerce inventory booked quantities
-
findByC_S_U
public static List<CommerceInventoryBookedQuantity> findByC_S_U(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the matching commerce inventory booked quantities
-
findByC_S_U
public static List<CommerceInventoryBookedQuantity> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)- Returns:
- the range of matching commerce inventory booked quantities
-
findByC_S_U
public static List<CommerceInventoryBookedQuantity> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findByC_S_U
public static List<CommerceInventoryBookedQuantity> findByC_S_U(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keystart
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce inventory booked quantities
-
findByC_S_U_First
public static CommerceInventoryBookedQuantity findByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchByC_S_U_First
public static CommerceInventoryBookedQuantity fetchByC_S_U_First(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the first commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findByC_S_U_Last
public static CommerceInventoryBookedQuantity findByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a matching commerce inventory booked quantity could not be foundNoSuchInventoryBookedQuantityException
-
fetchByC_S_U_Last
public static CommerceInventoryBookedQuantity fetchByC_S_U_Last(long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns the last commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory booked quantity, or
null
if a matching commerce inventory booked quantity could not be found
-
findByC_S_U_PrevAndNext
public static CommerceInventoryBookedQuantity[] findByC_S_U_PrevAndNext(long commerceInventoryBookedQuantityId, long companyId, String sku, String unitOfMeasureKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) throws NoSuchInventoryBookedQuantityException Returns the commerce inventory booked quantities before and after the current commerce inventory booked quantity in the ordered set where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the current commerce inventory booked quantitycompanyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure keyorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundNoSuchInventoryBookedQuantityException
-
removeByC_S_U
Removes all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key
-
countByC_S_U
Returns the number of commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.- Parameters:
companyId
- the company IDsku
- the skuunitOfMeasureKey
- the unit of measure key- Returns:
- the number of matching commerce inventory booked quantities
-
cacheResult
Caches the commerce inventory booked quantity in the entity cache if it is enabled.- Parameters:
commerceInventoryBookedQuantity
- the commerce inventory booked quantity
-
cacheResult
public static void cacheResult(List<CommerceInventoryBookedQuantity> commerceInventoryBookedQuantities) Caches the commerce inventory booked quantities in the entity cache if it is enabled.- Parameters:
commerceInventoryBookedQuantities
- the commerce inventory booked quantities
-
create
Creates a new commerce inventory booked quantity with the primary key. Does not add the commerce inventory booked quantity to the database.- Parameters:
commerceInventoryBookedQuantityId
- the primary key for the new commerce inventory booked quantity- Returns:
- the new commerce inventory booked quantity
-
remove
public static CommerceInventoryBookedQuantity remove(long commerceInventoryBookedQuantityId) throws NoSuchInventoryBookedQuantityException Removes the commerce inventory booked quantity with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantity- Returns:
- the commerce inventory booked quantity that was removed
- Throws:
NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundNoSuchInventoryBookedQuantityException
-
updateImpl
public static CommerceInventoryBookedQuantity updateImpl(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) -
findByPrimaryKey
public static CommerceInventoryBookedQuantity findByPrimaryKey(long commerceInventoryBookedQuantityId) throws NoSuchInventoryBookedQuantityException Returns the commerce inventory booked quantity with the primary key or throws aNoSuchInventoryBookedQuantityException
if it could not be found.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantity- Returns:
- the commerce inventory booked quantity
- Throws:
NoSuchInventoryBookedQuantityException
- if a commerce inventory booked quantity with the primary key could not be foundNoSuchInventoryBookedQuantityException
-
fetchByPrimaryKey
public static CommerceInventoryBookedQuantity fetchByPrimaryKey(long commerceInventoryBookedQuantityId) Returns the commerce inventory booked quantity with the primary key or returnsnull
if it could not be found.- Parameters:
commerceInventoryBookedQuantityId
- the primary key of the commerce inventory booked quantity- Returns:
- the commerce inventory booked quantity, or
null
if a commerce inventory booked quantity with the primary key could not be found
-
findAll
Returns all the commerce inventory booked quantities.- Returns:
- the commerce inventory booked quantities
-
findAll
Returns a range of all the commerce inventory booked quantities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)- Returns:
- the range of commerce inventory booked quantities
-
findAll
public static List<CommerceInventoryBookedQuantity> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce inventory booked quantities
-
findAll
public static List<CommerceInventoryBookedQuantity> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory booked quantities.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceInventoryBookedQuantityModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory booked quantitiesend
- the upper bound of the range of commerce inventory booked quantities (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce inventory booked quantities
-
removeAll
public static void removeAll()Removes all the commerce inventory booked quantities from the database. -
countAll
public static int countAll()Returns the number of commerce inventory booked quantities.- Returns:
- the number of commerce inventory booked quantities
-
getPersistence
-
setPersistence
-