Interface CommerceDiscountOrderTypeRelPersistence

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

@ProviderType public interface CommerceDiscountOrderTypeRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountOrderTypeRel>
The persistence interface for the commerce discount order type rel service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

      Returns all the commerce discount order type rels where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce discount order type rels
    • findByUuid

      List<CommerceDiscountOrderTypeRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      List<CommerceDiscountOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      List<CommerceDiscountOrderTypeRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      CommerceDiscountOrderTypeRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the first commerce discount order type rel 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 discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByUuid_First

      CommerceDiscountOrderTypeRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the first commerce discount order type rel 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 discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByUuid_Last

      CommerceDiscountOrderTypeRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the last commerce discount order type rel 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 discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByUuid_Last

      CommerceDiscountOrderTypeRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the last commerce discount order type rel 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 discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByUuid_PrevAndNext

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

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

      int countByUuid(String uuid)
      Returns the number of commerce discount order type rels where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce discount order type rels
    • findByUuid_C

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

      List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      List<CommerceDiscountOrderTypeRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount order type rels 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 CommerceDiscountOrderTypeRelModelImpl.

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

      CommerceDiscountOrderTypeRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the first commerce discount order type rel 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 discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByUuid_C_First

      CommerceDiscountOrderTypeRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the first commerce discount order type rel 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 discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByUuid_C_Last

      CommerceDiscountOrderTypeRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the last commerce discount order type rel 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 discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByUuid_C_Last

      CommerceDiscountOrderTypeRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the last commerce discount order type rel 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 discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByUuid_C_PrevAndNext

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

      void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce discount order type rels 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 discount order type rels where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce discount order type rels
    • findByCommerceDiscountId

      List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId)
      Returns all the commerce discount order type rels where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount order type rels
    • findByCommerceDiscountId

      List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount order type rels where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (not inclusive)
      Returns:
      the range of matching commerce discount order type rels
    • findByCommerceDiscountId

      List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount order type rels
    • findByCommerceDiscountId

      List<CommerceDiscountOrderTypeRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount order type rels where commerceDiscountId = ?.

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

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (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 discount order type rels
    • findByCommerceDiscountId_First

      CommerceDiscountOrderTypeRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByCommerceDiscountId_First

      CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the first commerce discount order type rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByCommerceDiscountId_Last

      CommerceDiscountOrderTypeRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByCommerceDiscountId_Last

      CommerceDiscountOrderTypeRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the last commerce discount order type rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByCommerceDiscountId_PrevAndNext

      CommerceDiscountOrderTypeRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key of the current commerce discount order type rel
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a commerce discount order type rel with the primary key could not be found
    • removeByCommerceDiscountId

      void removeByCommerceDiscountId(long commerceDiscountId)
      Removes all the commerce discount order type rels where commerceDiscountId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
    • countByCommerceDiscountId

      int countByCommerceDiscountId(long commerceDiscountId)
      Returns the number of commerce discount order type rels where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount order type rels
    • findByCommerceOrderTypeId

      List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId)
      Returns all the commerce discount order type rels where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce discount order type rels
    • findByCommerceOrderTypeId

      List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end)
      Returns a range of all the commerce discount order type rels where commerceOrderTypeId = ?.

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

      Parameters:
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (not inclusive)
      Returns:
      the range of matching commerce discount order type rels
    • findByCommerceOrderTypeId

      List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.

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

      Parameters:
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount order type rels
    • findByCommerceOrderTypeId

      List<CommerceDiscountOrderTypeRel> findByCommerceOrderTypeId(long commerceOrderTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount order type rels where commerceOrderTypeId = ?.

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

      Parameters:
      commerceOrderTypeId - the commerce order type ID
      start - the lower bound of the range of commerce discount order type rels
      end - the upper bound of the range of commerce discount order type rels (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 discount order type rels
    • findByCommerceOrderTypeId_First

      CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByCommerceOrderTypeId_First

      CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_First(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the first commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByCommerceOrderTypeId_Last

      CommerceDiscountOrderTypeRel findByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByCommerceOrderTypeId_Last

      CommerceDiscountOrderTypeRel fetchByCommerceOrderTypeId_Last(long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator)
      Returns the last commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • findByCommerceOrderTypeId_PrevAndNext

      CommerceDiscountOrderTypeRel[] findByCommerceOrderTypeId_PrevAndNext(long commerceDiscountOrderTypeRelId, long commerceOrderTypeId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountOrderTypeRel> orderByComparator) throws NoSuchDiscountOrderTypeRelException
      Returns the commerce discount order type rels before and after the current commerce discount order type rel in the ordered set where commerceOrderTypeId = ?.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key of the current commerce discount order type rel
      commerceOrderTypeId - the commerce order type ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a commerce discount order type rel with the primary key could not be found
    • removeByCommerceOrderTypeId

      void removeByCommerceOrderTypeId(long commerceOrderTypeId)
      Removes all the commerce discount order type rels where commerceOrderTypeId = ? from the database.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
    • countByCommerceOrderTypeId

      int countByCommerceOrderTypeId(long commerceOrderTypeId)
      Returns the number of commerce discount order type rels where commerceOrderTypeId = ?.
      Parameters:
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the number of matching commerce discount order type rels
    • findByCDI_COTI

      CommerceDiscountOrderTypeRel findByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
      Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or throws a NoSuchDiscountOrderTypeRelException if it could not be found.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a matching commerce discount order type rel could not be found
    • fetchByCDI_COTI

      CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
      Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • fetchByCDI_COTI

      CommerceDiscountOrderTypeRel fetchByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId, boolean useFinderCache)
      Returns the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceOrderTypeId - the commerce order type ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce discount order type rel, or null if a matching commerce discount order type rel could not be found
    • removeByCDI_COTI

      CommerceDiscountOrderTypeRel removeByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId) throws NoSuchDiscountOrderTypeRelException
      Removes the commerce discount order type rel where commerceDiscountId = ? and commerceOrderTypeId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the commerce discount order type rel that was removed
      Throws:
      NoSuchDiscountOrderTypeRelException
    • countByCDI_COTI

      int countByCDI_COTI(long commerceDiscountId, long commerceOrderTypeId)
      Returns the number of commerce discount order type rels where commerceDiscountId = ? and commerceOrderTypeId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceOrderTypeId - the commerce order type ID
      Returns:
      the number of matching commerce discount order type rels
    • cacheResult

      void cacheResult(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
      Caches the commerce discount order type rel in the entity cache if it is enabled.
      Parameters:
      commerceDiscountOrderTypeRel - the commerce discount order type rel
    • cacheResult

      void cacheResult(List<CommerceDiscountOrderTypeRel> commerceDiscountOrderTypeRels)
      Caches the commerce discount order type rels in the entity cache if it is enabled.
      Parameters:
      commerceDiscountOrderTypeRels - the commerce discount order type rels
    • create

      CommerceDiscountOrderTypeRel create(long commerceDiscountOrderTypeRelId)
      Creates a new commerce discount order type rel with the primary key. Does not add the commerce discount order type rel to the database.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key for the new commerce discount order type rel
      Returns:
      the new commerce discount order type rel
    • remove

      CommerceDiscountOrderTypeRel remove(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
      Removes the commerce discount order type rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key of the commerce discount order type rel
      Returns:
      the commerce discount order type rel that was removed
      Throws:
      NoSuchDiscountOrderTypeRelException - if a commerce discount order type rel with the primary key could not be found
    • updateImpl

      CommerceDiscountOrderTypeRel updateImpl(CommerceDiscountOrderTypeRel commerceDiscountOrderTypeRel)
    • findByPrimaryKey

      CommerceDiscountOrderTypeRel findByPrimaryKey(long commerceDiscountOrderTypeRelId) throws NoSuchDiscountOrderTypeRelException
      Returns the commerce discount order type rel with the primary key or throws a NoSuchDiscountOrderTypeRelException if it could not be found.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key of the commerce discount order type rel
      Returns:
      the commerce discount order type rel
      Throws:
      NoSuchDiscountOrderTypeRelException - if a commerce discount order type rel with the primary key could not be found
    • fetchByPrimaryKey

      CommerceDiscountOrderTypeRel fetchByPrimaryKey(long commerceDiscountOrderTypeRelId)
      Returns the commerce discount order type rel with the primary key or returns null if it could not be found.
      Parameters:
      commerceDiscountOrderTypeRelId - the primary key of the commerce discount order type rel
      Returns:
      the commerce discount order type rel, or null if a commerce discount order type rel with the primary key could not be found
    • findAll

      Returns all the commerce discount order type rels.
      Returns:
      the commerce discount order type rels
    • findAll

      List<CommerceDiscountOrderTypeRel> findAll(int start, int end)
      Returns a range of all the commerce discount order type rels.

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

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

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

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

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

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

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

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

      void removeAll()
      Removes all the commerce discount order type rels from the database.
    • countAll

      int countAll()
      Returns the number of commerce discount order type rels.
      Returns:
      the number of commerce discount order type rels