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 TypeMethodDescriptionintcountByC_S_U(long companyId, String sku, String unitOfMeasureKey) Returns the number of commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.intcountByLtExpirationDate(Date expirationDate) Returns the number of commerce inventory booked quantities where expirationDate < ?.intcountBySku(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 = ?.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 < ?.fetchByPrimaryKey(long commerceInventoryBookedQuantityId) Returns the commerce inventory booked quantity with the primary key or returnsnullif 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 = ?.default List<CommerceInventoryBookedQuantity> findByC_S_U(long companyId, String sku, String unitOfMeasureKey) Returns all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ?.default 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 = ?.default 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 = ?.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 = ?.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 < ?.findByPrimaryKey(long commerceInventoryBookedQuantityId) Returns the commerce inventory booked quantity with the primary key or throws aNoSuchInventoryBookedQuantityExceptionif it could not be found.default List<CommerceInventoryBookedQuantity> Returns all the commerce inventory booked quantities where sku = ?.default List<CommerceInventoryBookedQuantity> Returns a range of all the commerce inventory booked quantities where sku = ?.default 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 = ?.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 = ?.remove(long commerceInventoryBookedQuantityId) Removes the commerce inventory booked quantity with the primary key from the database.voidremoveByC_S_U(long companyId, String sku, String unitOfMeasureKey) Removes all the commerce inventory booked quantities where companyId = ? and sku = ? and unitOfMeasureKey = ? from the database.voidremoveByLtExpirationDate(Date expirationDate) Removes all the commerce inventory booked quantities where expirationDate < ? from the database.voidremoveBySku(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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
nullif a matching commerce inventory booked quantity 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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
nullif a matching commerce inventory booked quantity 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, 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
nullif a matching commerce inventory booked quantity 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
-
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 aNoSuchInventoryBookedQuantityExceptionif 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 returnsnullif it could not be found.- Parameters:
commerceInventoryBookedQuantityId- the primary key of the commerce inventory booked quantity- Returns:
- the commerce inventory booked quantity, or
nullif a commerce inventory booked quantity with the primary key could not be found
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
-
findByC_S_U
default 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.inventory.model.impl.CommerceInventoryBookedQuantityModelImpl.- 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
-