Interface CommerceDiscountAccountRelPersistence

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

@ProviderType public interface CommerceDiscountAccountRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountAccountRel>
The persistence interface for the commerce discount account rel service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

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

      List<CommerceDiscountAccountRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

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

      List<CommerceDiscountAccountRel> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

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

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

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

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

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

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

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

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

      CommerceDiscountAccountRel[] findByUuid_C_PrevAndNext(long commerceDiscountAccountRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
      Returns the commerce discount account rels before and after the current commerce discount account rel in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceDiscountAccountRelId - the primary key of the current commerce discount account 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 account rel
      Throws:
      NoSuchDiscountAccountRelException - if a commerce discount account rel with the primary key could not be found
    • removeByUuid_C

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

      List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId)
      Returns all the commerce discount account rels where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      Returns:
      the matching commerce discount account rels
    • findByCommerceAccountId

      List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end)
      Returns a range of all the commerce discount account rels where commerceAccountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce discount account rels
      end - the upper bound of the range of commerce discount account rels (not inclusive)
      Returns:
      the range of matching commerce discount account rels
    • findByCommerceAccountId

      List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
      Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.

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

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

      List<CommerceDiscountAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount account rels where commerceAccountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce discount account rels
      end - the upper bound of the range of commerce discount account 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 account rels
    • findByCommerceAccountId_First

      CommerceDiscountAccountRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
      Returns the first commerce discount account rel in the ordered set where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount account rel
      Throws:
      NoSuchDiscountAccountRelException - if a matching commerce discount account rel could not be found
    • fetchByCommerceAccountId_First

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

      CommerceDiscountAccountRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
      Returns the last commerce discount account rel in the ordered set where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount account rel
      Throws:
      NoSuchDiscountAccountRelException - if a matching commerce discount account rel could not be found
    • fetchByCommerceAccountId_Last

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

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

      void removeByCommerceAccountId(long commerceAccountId)
      Removes all the commerce discount account rels where commerceAccountId = ? from the database.
      Parameters:
      commerceAccountId - the commerce account ID
    • countByCommerceAccountId

      int countByCommerceAccountId(long commerceAccountId)
      Returns the number of commerce discount account rels where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      Returns:
      the number of matching commerce discount account rels
    • findByCommerceDiscountId

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

      List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

      List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
      Returns an ordered range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

      List<CommerceDiscountAccountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

      CommerceDiscountAccountRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
      Returns the first commerce discount account 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 account rel
      Throws:
      NoSuchDiscountAccountRelException - if a matching commerce discount account rel could not be found
    • fetchByCommerceDiscountId_First

      CommerceDiscountAccountRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
      Returns the first commerce discount account 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 account rel, or null if a matching commerce discount account rel could not be found
    • findByCommerceDiscountId_Last

      CommerceDiscountAccountRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator) throws NoSuchDiscountAccountRelException
      Returns the last commerce discount account 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 account rel
      Throws:
      NoSuchDiscountAccountRelException - if a matching commerce discount account rel could not be found
    • fetchByCommerceDiscountId_Last

      CommerceDiscountAccountRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
      Returns the last commerce discount account 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 account rel, or null if a matching commerce discount account rel could not be found
    • findByCommerceDiscountId_PrevAndNext

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

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

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

      CommerceDiscountAccountRel findByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
      Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or throws a NoSuchDiscountAccountRelException if it could not be found.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount account rel
      Throws:
      NoSuchDiscountAccountRelException - if a matching commerce discount account rel could not be found
    • fetchByCAI_CDI

      CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId)
      Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount account rel, or null if a matching commerce discount account rel could not be found
    • fetchByCAI_CDI

      CommerceDiscountAccountRel fetchByCAI_CDI(long commerceAccountId, long commerceDiscountId, boolean useFinderCache)
      Returns the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce discount account rel, or null if a matching commerce discount account rel could not be found
    • removeByCAI_CDI

      CommerceDiscountAccountRel removeByCAI_CDI(long commerceAccountId, long commerceDiscountId) throws NoSuchDiscountAccountRelException
      Removes the commerce discount account rel where commerceAccountId = ? and commerceDiscountId = ? from the database.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the commerce discount account rel that was removed
      Throws:
      NoSuchDiscountAccountRelException
    • countByCAI_CDI

      int countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
      Returns the number of commerce discount account rels where commerceAccountId = ? and commerceDiscountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount account rels
    • cacheResult

      void cacheResult(CommerceDiscountAccountRel commerceDiscountAccountRel)
      Caches the commerce discount account rel in the entity cache if it is enabled.
      Parameters:
      commerceDiscountAccountRel - the commerce discount account rel
    • cacheResult

      void cacheResult(List<CommerceDiscountAccountRel> commerceDiscountAccountRels)
      Caches the commerce discount account rels in the entity cache if it is enabled.
      Parameters:
      commerceDiscountAccountRels - the commerce discount account rels
    • create

      CommerceDiscountAccountRel create(long commerceDiscountAccountRelId)
      Creates a new commerce discount account rel with the primary key. Does not add the commerce discount account rel to the database.
      Parameters:
      commerceDiscountAccountRelId - the primary key for the new commerce discount account rel
      Returns:
      the new commerce discount account rel
    • remove

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

      CommerceDiscountAccountRel updateImpl(CommerceDiscountAccountRel commerceDiscountAccountRel)
    • findByPrimaryKey

      CommerceDiscountAccountRel findByPrimaryKey(long commerceDiscountAccountRelId) throws NoSuchDiscountAccountRelException
      Returns the commerce discount account rel with the primary key or throws a NoSuchDiscountAccountRelException if it could not be found.
      Parameters:
      commerceDiscountAccountRelId - the primary key of the commerce discount account rel
      Returns:
      the commerce discount account rel
      Throws:
      NoSuchDiscountAccountRelException - if a commerce discount account rel with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the commerce discount account rels.
      Returns:
      the commerce discount account rels
    • findAll

      List<CommerceDiscountAccountRel> findAll(int start, int end)
      Returns a range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

      List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator)
      Returns an ordered range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

      List<CommerceDiscountAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountAccountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount account 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 CommerceDiscountAccountRelModelImpl.

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

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

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