Class CommerceInventoryBookedQuantityUtil

java.lang.Object
com.liferay.commerce.inventory.service.persistence.CommerceInventoryBookedQuantityUtil

public class CommerceInventoryBookedQuantityUtil extends Object
The persistence utility for the commerce inventory booked quantity service. This utility wraps 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 Details

    • CommerceInventoryBookedQuantityUtil

      public CommerceInventoryBookedQuantityUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
      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

      public static List<CommerceInventoryBookedQuantity> findByLtExpirationDate(Date expirationDate)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of commerce inventory booked quantities
      end - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 date
      orderByComparator - the comparator to order the set by (optionally null)
      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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 date
      orderByComparator - the comparator to order the set by (optionally null)
      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 quantity
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      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
      NoSuchInventoryBookedQuantityException
    • removeByLtExpirationDate

      public static void removeByLtExpirationDate(Date expirationDate)
      Removes all the commerce inventory booked quantities where expirationDate < ? from the database.
      Parameters:
      expirationDate - the expiration date
    • countByLtExpirationDate

      public static int countByLtExpirationDate(Date expirationDate)
      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

      public static List<CommerceInventoryBookedQuantity> findBySku(String sku)
      Returns all the commerce inventory booked quantities where sku = ?.
      Parameters:
      sku - the sku
      Returns:
      the matching commerce inventory booked quantities
    • findBySku

      public static List<CommerceInventoryBookedQuantity> findBySku(String sku, int start, int end)
      Returns a range of all the commerce inventory booked quantities where sku = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      sku - the sku
      start - the lower bound of the range of commerce inventory booked quantities
      end - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      sku - the sku
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      sku - the sku
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 sku
      orderByComparator - the comparator to order the set by (optionally null)
      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 sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 sku
      orderByComparator - the comparator to order the set by (optionally null)
      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 quantity
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      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
      NoSuchInventoryBookedQuantityException
    • removeBySku

      public static void removeBySku(String sku)
      Removes all the commerce inventory booked quantities where sku = ? from the database.
      Parameters:
      sku - the sku
    • countBySku

      public static int countBySku(String sku)
      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 ID
      sku - the sku
      unitOfMeasureKey - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory booked quantities
      end - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce inventory booked quantity
      Throws:
      NoSuchInventoryBookedQuantityException - if a matching commerce inventory booked quantity could not be found
      NoSuchInventoryBookedQuantityException
    • 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 ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      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 quantity
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      orderByComparator - the comparator to order the set by (optionally null)
      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
      NoSuchInventoryBookedQuantityException
    • removeByC_S_U

      public 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.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
    • countByC_S_U

      public 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 = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      unitOfMeasureKey - the unit of measure key
      Returns:
      the number of matching commerce inventory booked quantities
    • cacheResult

      public static void cacheResult(CommerceInventoryBookedQuantity commerceInventoryBookedQuantity)
      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

      public static CommerceInventoryBookedQuantity create(long commerceInventoryBookedQuantityId)
      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 found
      NoSuchInventoryBookedQuantityException
    • 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 a NoSuchInventoryBookedQuantityException 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
      NoSuchInventoryBookedQuantityException
    • fetchByPrimaryKey

      public static CommerceInventoryBookedQuantity fetchByPrimaryKey(long commerceInventoryBookedQuantityId)
      Returns the commerce inventory booked quantity with the primary key or returns null 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

      public static List<CommerceInventoryBookedQuantity> findAll()
      Returns all the commerce inventory booked quantities.
      Returns:
      the commerce inventory booked quantities
    • findAll

      public static List<CommerceInventoryBookedQuantity> findAll(int start, int end)
      Returns a range of all the commerce inventory booked quantities.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      start - the lower bound of the range of commerce inventory booked quantities
      end - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceInventoryBookedQuantityModelImpl.

      Parameters:
      start - the lower bound of the range of commerce inventory booked quantities
      end - the upper bound of the range of commerce inventory booked quantities (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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

      public static CommerceInventoryBookedQuantityPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceInventoryBookedQuantityPersistence persistence)