Interface CommerceOrderItemPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderItem>

@ProviderType public interface CommerceOrderItemPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderItem>
The persistence interface for the commerce order item service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

      List<CommerceOrderItem> findByUuid(String uuid)
      Returns all the commerce order items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce order items
    • findByUuid

      List<CommerceOrderItem> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce order items where uuid = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByUuid

      List<CommerceOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where uuid = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByUuid

      List<CommerceOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where uuid = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByUuid_First

      CommerceOrderItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByUuid_First

      CommerceOrderItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByUuid_Last

      CommerceOrderItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByUuid_Last

      CommerceOrderItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByUuid_PrevAndNext

      CommerceOrderItem[] findByUuid_PrevAndNext(long commerceOrderItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where uuid = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the commerce order items where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of commerce order items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce order items
    • findByUUID_G

      CommerceOrderItem findByUUID_G(String uuid, long groupId) throws NoSuchOrderItemException
      Returns the commerce order item where uuid = ? and groupId = ? or throws a NoSuchOrderItemException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByUUID_G

      CommerceOrderItem fetchByUUID_G(String uuid, long groupId)
      Returns the commerce order item where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • fetchByUUID_G

      CommerceOrderItem fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce order item where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • removeByUUID_G

      CommerceOrderItem removeByUUID_G(String uuid, long groupId) throws NoSuchOrderItemException
      Removes the commerce order item where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce order item that was removed
      Throws:
      NoSuchOrderItemException
    • countByUUID_G

      int countByUUID_G(String uuid, long groupId)
      Returns the number of commerce order items where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching commerce order items
    • findByUuid_C

      List<CommerceOrderItem> findByUuid_C(String uuid, long companyId)
      Returns all the commerce order items where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce order items
    • findByUuid_C

      List<CommerceOrderItem> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce order items where uuid = ? and companyId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByUuid_C

      List<CommerceOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where uuid = ? and companyId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByUuid_C

      List<CommerceOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where uuid = ? and companyId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByUuid_C_First

      CommerceOrderItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByUuid_C_First

      CommerceOrderItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByUuid_C_Last

      CommerceOrderItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByUuid_C_Last

      CommerceOrderItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByUuid_C_PrevAndNext

      CommerceOrderItem[] findByUuid_C_PrevAndNext(long commerceOrderItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce order items where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce order items where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce order items
    • findByCommerceInventoryBookedQuantityId

      CommerceOrderItem findByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException
      Returns the commerce order item where commerceInventoryBookedQuantityId = ? or throws a NoSuchOrderItemException if it could not be found.
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID
      Returns:
      the matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCommerceInventoryBookedQuantityId

      CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
      Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • fetchByCommerceInventoryBookedQuantityId

      CommerceOrderItem fetchByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId, boolean useFinderCache)
      Returns the commerce order item where commerceInventoryBookedQuantityId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • removeByCommerceInventoryBookedQuantityId

      CommerceOrderItem removeByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId) throws NoSuchOrderItemException
      Removes the commerce order item where commerceInventoryBookedQuantityId = ? from the database.
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID
      Returns:
      the commerce order item that was removed
      Throws:
      NoSuchOrderItemException
    • countByCommerceInventoryBookedQuantityId

      int countByCommerceInventoryBookedQuantityId(long commerceInventoryBookedQuantityId)
      Returns the number of commerce order items where commerceInventoryBookedQuantityId = ?.
      Parameters:
      commerceInventoryBookedQuantityId - the commerce inventory booked quantity ID
      Returns:
      the number of matching commerce order items
    • findByCommerceOrderId

      List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId)
      Returns all the commerce order items where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the matching commerce order items
    • findByCommerceOrderId

      List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end)
      Returns a range of all the commerce order items where commerceOrderId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByCommerceOrderId

      List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where commerceOrderId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByCommerceOrderId

      List<CommerceOrderItem> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where commerceOrderId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByCommerceOrderId_First

      CommerceOrderItem findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCommerceOrderId_First

      CommerceOrderItem fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByCommerceOrderId_Last

      CommerceOrderItem findByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCommerceOrderId_Last

      CommerceOrderItem fetchByCommerceOrderId_Last(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByCommerceOrderId_PrevAndNext

      CommerceOrderItem[] findByCommerceOrderId_PrevAndNext(long commerceOrderItemId, long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByCommerceOrderId

      void removeByCommerceOrderId(long commerceOrderId)
      Removes all the commerce order items where commerceOrderId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
    • countByCommerceOrderId

      int countByCommerceOrderId(long commerceOrderId)
      Returns the number of commerce order items where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the number of matching commerce order items
    • findByCPInstanceId

      List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId)
      Returns all the commerce order items where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the matching commerce order items
    • findByCPInstanceId

      List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end)
      Returns a range of all the commerce order items where CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByCPInstanceId

      List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByCPInstanceId

      List<CommerceOrderItem> findByCPInstanceId(long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByCPInstanceId_First

      CommerceOrderItem findByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCPInstanceId_First

      CommerceOrderItem fetchByCPInstanceId_First(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByCPInstanceId_Last

      CommerceOrderItem findByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCPInstanceId_Last

      CommerceOrderItem fetchByCPInstanceId_Last(long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByCPInstanceId_PrevAndNext

      CommerceOrderItem[] findByCPInstanceId_PrevAndNext(long commerceOrderItemId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where CPInstanceId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByCPInstanceId

      void removeByCPInstanceId(long CPInstanceId)
      Removes all the commerce order items where CPInstanceId = ? from the database.
      Parameters:
      CPInstanceId - the cp instance ID
    • countByCPInstanceId

      int countByCPInstanceId(long CPInstanceId)
      Returns the number of commerce order items where CPInstanceId = ?.
      Parameters:
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching commerce order items
    • findByCProductId

      List<CommerceOrderItem> findByCProductId(long CProductId)
      Returns all the commerce order items where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      Returns:
      the matching commerce order items
    • findByCProductId

      List<CommerceOrderItem> findByCProductId(long CProductId, int start, int end)
      Returns a range of all the commerce order items where CProductId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByCProductId

      List<CommerceOrderItem> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where CProductId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByCProductId

      List<CommerceOrderItem> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where CProductId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByCProductId_First

      CommerceOrderItem findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCProductId_First

      CommerceOrderItem fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByCProductId_Last

      CommerceOrderItem findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCProductId_Last

      CommerceOrderItem fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByCProductId_PrevAndNext

      CommerceOrderItem[] findByCProductId_PrevAndNext(long commerceOrderItemId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where CProductId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByCProductId

      void removeByCProductId(long CProductId)
      Removes all the commerce order items where CProductId = ? from the database.
      Parameters:
      CProductId - the c product ID
    • countByCProductId

      int countByCProductId(long CProductId)
      Returns the number of commerce order items where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      Returns:
      the number of matching commerce order items
    • findByCustomerCommerceOrderItemId

      List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
      Returns all the commerce order items where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      Returns:
      the matching commerce order items
    • findByCustomerCommerceOrderItemId

      List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, int start, int end)
      Returns a range of all the commerce order items where customerCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByCustomerCommerceOrderItemId

      List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where customerCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByCustomerCommerceOrderItemId

      List<CommerceOrderItem> findByCustomerCommerceOrderItemId(long customerCommerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where customerCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByCustomerCommerceOrderItemId_First

      CommerceOrderItem findByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCustomerCommerceOrderItemId_First

      CommerceOrderItem fetchByCustomerCommerceOrderItemId_First(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByCustomerCommerceOrderItemId_Last

      CommerceOrderItem findByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByCustomerCommerceOrderItemId_Last

      CommerceOrderItem fetchByCustomerCommerceOrderItemId_Last(long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByCustomerCommerceOrderItemId_PrevAndNext

      CommerceOrderItem[] findByCustomerCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long customerCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where customerCommerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      customerCommerceOrderItemId - the customer commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByCustomerCommerceOrderItemId

      void removeByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
      Removes all the commerce order items where customerCommerceOrderItemId = ? from the database.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
    • countByCustomerCommerceOrderItemId

      int countByCustomerCommerceOrderItemId(long customerCommerceOrderItemId)
      Returns the number of commerce order items where customerCommerceOrderItemId = ?.
      Parameters:
      customerCommerceOrderItemId - the customer commerce order item ID
      Returns:
      the number of matching commerce order items
    • findByParentCommerceOrderItemId

      List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId)
      Returns all the commerce order items where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      Returns:
      the matching commerce order items
    • findByParentCommerceOrderItemId

      List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, int start, int end)
      Returns a range of all the commerce order items where parentCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByParentCommerceOrderItemId

      List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where parentCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByParentCommerceOrderItemId

      List<CommerceOrderItem> findByParentCommerceOrderItemId(long parentCommerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where parentCommerceOrderItemId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByParentCommerceOrderItemId_First

      CommerceOrderItem findByParentCommerceOrderItemId_First(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByParentCommerceOrderItemId_First

      CommerceOrderItem fetchByParentCommerceOrderItemId_First(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByParentCommerceOrderItemId_Last

      CommerceOrderItem findByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByParentCommerceOrderItemId_Last

      CommerceOrderItem fetchByParentCommerceOrderItemId_Last(long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByParentCommerceOrderItemId_PrevAndNext

      CommerceOrderItem[] findByParentCommerceOrderItemId_PrevAndNext(long commerceOrderItemId, long parentCommerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where parentCommerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      parentCommerceOrderItemId - the parent commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByParentCommerceOrderItemId

      void removeByParentCommerceOrderItemId(long parentCommerceOrderItemId)
      Removes all the commerce order items where parentCommerceOrderItemId = ? from the database.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
    • countByParentCommerceOrderItemId

      int countByParentCommerceOrderItemId(long parentCommerceOrderItemId)
      Returns the number of commerce order items where parentCommerceOrderItemId = ?.
      Parameters:
      parentCommerceOrderItemId - the parent commerce order item ID
      Returns:
      the number of matching commerce order items
    • findByC_CPI

      List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId)
      Returns all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      Returns:
      the matching commerce order items
    • findByC_CPI

      List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId, int start, int end)
      Returns a range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByC_CPI

      List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByC_CPI

      List<CommerceOrderItem> findByC_CPI(long commerceOrderId, long CPInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where commerceOrderId = ? and CPInstanceId = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByC_CPI_First

      CommerceOrderItem findByC_CPI_First(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByC_CPI_First

      CommerceOrderItem fetchByC_CPI_First(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByC_CPI_Last

      CommerceOrderItem findByC_CPI_Last(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByC_CPI_Last

      CommerceOrderItem fetchByC_CPI_Last(long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByC_CPI_PrevAndNext

      CommerceOrderItem[] findByC_CPI_PrevAndNext(long commerceOrderItemId, long commerceOrderId, long CPInstanceId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByC_CPI

      void removeByC_CPI(long commerceOrderId, long CPInstanceId)
      Removes all the commerce order items where commerceOrderId = ? and CPInstanceId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
    • countByC_CPI

      int countByC_CPI(long commerceOrderId, long CPInstanceId)
      Returns the number of commerce order items where commerceOrderId = ? and CPInstanceId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      CPInstanceId - the cp instance ID
      Returns:
      the number of matching commerce order items
    • findByC_S

      List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription)
      Returns all the commerce order items where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      Returns:
      the matching commerce order items
    • findByC_S

      List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription, int start, int end)
      Returns a range of all the commerce order items where commerceOrderId = ? and subscription = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of matching commerce order items
    • findByC_S

      List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items where commerceOrderId = ? and subscription = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce order items
    • findByC_S

      List<CommerceOrderItem> findByC_S(long commerceOrderId, boolean subscription, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items where commerceOrderId = ? and subscription = ?.

      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 CommerceOrderItemModelImpl.

      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • findByC_S_First

      CommerceOrderItem findByC_S_First(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the first commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByC_S_First

      CommerceOrderItem fetchByC_S_First(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the first commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order item, or null if a matching commerce order item could not be found
    • findByC_S_Last

      CommerceOrderItem findByC_S_Last(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the last commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByC_S_Last

      CommerceOrderItem fetchByC_S_Last(long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns the last commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order item, or null if a matching commerce order item could not be found
    • findByC_S_PrevAndNext

      CommerceOrderItem[] findByC_S_PrevAndNext(long commerceOrderItemId, long commerceOrderId, boolean subscription, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator) throws NoSuchOrderItemException
      Returns the commerce order items before and after the current commerce order item in the ordered set where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderItemId - the primary key of the current commerce order item
      commerceOrderId - the commerce order ID
      subscription - the subscription
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • removeByC_S

      void removeByC_S(long commerceOrderId, boolean subscription)
      Removes all the commerce order items where commerceOrderId = ? and subscription = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
    • countByC_S

      int countByC_S(long commerceOrderId, boolean subscription)
      Returns the number of commerce order items where commerceOrderId = ? and subscription = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      subscription - the subscription
      Returns:
      the number of matching commerce order items
    • findByERC_C

      CommerceOrderItem findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderItemException
      Returns the commerce order item where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderItemException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce order item
      Throws:
      NoSuchOrderItemException - if a matching commerce order item could not be found
    • fetchByERC_C

      CommerceOrderItem fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • fetchByERC_C

      CommerceOrderItem fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the commerce order item where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order item, or null if a matching commerce order item could not be found
    • removeByERC_C

      CommerceOrderItem removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderItemException
      Removes the commerce order item where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce order item that was removed
      Throws:
      NoSuchOrderItemException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of commerce order items where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching commerce order items
    • cacheResult

      void cacheResult(CommerceOrderItem commerceOrderItem)
      Caches the commerce order item in the entity cache if it is enabled.
      Parameters:
      commerceOrderItem - the commerce order item
    • cacheResult

      void cacheResult(List<CommerceOrderItem> commerceOrderItems)
      Caches the commerce order items in the entity cache if it is enabled.
      Parameters:
      commerceOrderItems - the commerce order items
    • create

      CommerceOrderItem create(long commerceOrderItemId)
      Creates a new commerce order item with the primary key. Does not add the commerce order item to the database.
      Parameters:
      commerceOrderItemId - the primary key for the new commerce order item
      Returns:
      the new commerce order item
    • remove

      CommerceOrderItem remove(long commerceOrderItemId) throws NoSuchOrderItemException
      Removes the commerce order item with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceOrderItemId - the primary key of the commerce order item
      Returns:
      the commerce order item that was removed
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • updateImpl

      CommerceOrderItem updateImpl(CommerceOrderItem commerceOrderItem)
    • findByPrimaryKey

      CommerceOrderItem findByPrimaryKey(long commerceOrderItemId) throws NoSuchOrderItemException
      Returns the commerce order item with the primary key or throws a NoSuchOrderItemException if it could not be found.
      Parameters:
      commerceOrderItemId - the primary key of the commerce order item
      Returns:
      the commerce order item
      Throws:
      NoSuchOrderItemException - if a commerce order item with the primary key could not be found
    • fetchByPrimaryKey

      CommerceOrderItem fetchByPrimaryKey(long commerceOrderItemId)
      Returns the commerce order item with the primary key or returns null if it could not be found.
      Parameters:
      commerceOrderItemId - the primary key of the commerce order item
      Returns:
      the commerce order item, or null if a commerce order item with the primary key could not be found
    • findAll

      Returns all the commerce order items.
      Returns:
      the commerce order items
    • findAll

      List<CommerceOrderItem> findAll(int start, int end)
      Returns a range of all the commerce order items.

      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 CommerceOrderItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      Returns:
      the range of commerce order items
    • findAll

      List<CommerceOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator)
      Returns an ordered range of all the commerce order items.

      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 CommerceOrderItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce order items
    • findAll

      List<CommerceOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order items.

      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 CommerceOrderItemModelImpl.

      Parameters:
      start - the lower bound of the range of commerce order items
      end - the upper bound of the range of commerce order items (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 order items
    • removeAll

      void removeAll()
      Removes all the commerce order items from the database.
    • countAll

      int countAll()
      Returns the number of commerce order items.
      Returns:
      the number of commerce order items