Interface CommerceInventoryBookedQuantityPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceInventoryBookedQuantity>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) Caches the commerce inventory booked quantity in the entity cache if it is enabled.void
cacheResult
(List<CommerceInventoryBookedQuantity> commerceInventoryBookedQuantities) Caches the commerce inventory booked quantities in the entity cache if it is enabled.int
countAll()
Returns the number of commerce inventory booked quantities.int
countByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.int
countByLtExpirationDate
(Date expirationDate) Returns the number of commerce inventory booked quantities where expirationDate < ?.int
countBySku
(String sku) Returns the number of commerce inventory booked quantities where sku = ?.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.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 = ?.findAll()
Returns all the commerce inventory booked quantities.findAll
(int start, int end) Returns a range of all the commerce inventory booked quantities.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities.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.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end) Returns a range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryBookedQuantity> orderByComparator) Returns an ordered range of all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.findByC_S_U
(long companyId, String sku, String unitOfMeasureKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<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 = ?.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 = ?.findByLtExpirationDate
(Date expirationDate) Returns all the commerce inventory booked quantities where expirationDate < ?.findByLtExpirationDate
(Date expirationDate, int start, int end) Returns a range of all the commerce inventory booked quantities where expirationDate < ?.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 < ?.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 < ?.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.Returns all the commerce inventory booked quantities where sku = ?.Returns a range of all the commerce inventory booked quantities where sku = ?.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 = ?.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 = ?.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 = ?.remove
(long commerceInventoryBookedQuantityId) Removes the commerce inventory booked quantity with the primary key from the database.void
Removes all the commerce inventory booked quantities from the database.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.void
removeByLtExpirationDate
(Date expirationDate) Removes all the commerce inventory booked quantities where expirationDate < ? from the database.void
removeBySku
(String sku) Removes all the commerce inventory booked quantities where sku = ? from the database.updateImpl
(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByLtExpirationDate
Returns all the commerce inventory booked quantities where expirationDate < ?.- Parameters:
expirationDate
- the expiration date- Returns:
- the matching commerce inventory booked quantities
-
findByLtExpirationDate
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
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
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
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 found
-
fetchByLtExpirationDate_First
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
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 found
-
fetchByLtExpirationDate_Last
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
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 found
-
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
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
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
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 found
-
fetchBySku_First
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
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 found
-
fetchBySku_Last
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
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 found
-
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
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
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
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
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
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 found
-
fetchByC_S_U_First
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
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 found
-
fetchByC_S_U_Last
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
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 found
-
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
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
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 found
-
updateImpl
CommerceInventoryBookedQuantity updateImpl(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity) -
findByPrimaryKey
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 found
-
fetchByPrimaryKey
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
List<CommerceInventoryBookedQuantity> 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
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
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
void removeAll()Removes all the commerce inventory booked quantities from the database. -
countAll
int countAll()Returns the number of commerce inventory booked quantities.- Returns:
- the number of commerce inventory booked quantities
-