Interface CommerceDiscountRelPersistence

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

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

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByCD_CN(long commerceDiscountId, long classNameId)
    Returns the number of commerce discount rels where commerceDiscountId = ? and classNameId = ?.
    int
    countByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
    Returns the number of commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    int
    countByCN_CPK(long classNameId, long classPK)
    Returns the number of commerce discount rels where classNameId = ? and classPK = ?.
    int
    countByCommerceDiscountId(long commerceDiscountId)
    Returns the number of commerce discount rels where commerceDiscountId = ?.
    create(long commerceDiscountRelId)
    Creates a new commerce discount rel with the primary key.
    fetchByCD_CN_CPK_First(long commerceDiscountId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    fetchByCD_CN_First(long commerceDiscountId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ?.
    fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where classNameId = ? and classPK = ?.
    fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ?.
    fetchByPrimaryKey(long commerceDiscountRelId)
    Returns the commerce discount rel with the primary key or returns null if it could not be found.
    findByCD_CN(long commerceDiscountId, long classNameId)
    Returns all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.
    findByCD_CN(long commerceDiscountId, long classNameId, int start, int end)
    Returns a range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.
    findByCD_CN(long commerceDiscountId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.
    findByCD_CN(long commerceDiscountId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.
    findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
    Returns all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end)
    Returns a range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    findByCD_CN_CPK_First(long commerceDiscountId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ? and classPK = ?.
    findByCD_CN_First(long commerceDiscountId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ?.
    findByCN_CPK(long classNameId, long classPK)
    Returns all the commerce discount rels where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end)
    Returns a range of all the commerce discount rels where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns an ordered range of all the commerce discount rels where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discount rels where classNameId = ? and classPK = ?.
    findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where classNameId = ? and classPK = ?.
    findByCommerceDiscountId(long commerceDiscountId)
    Returns all the commerce discount rels where commerceDiscountId = ?.
    findByCommerceDiscountId(long commerceDiscountId, int start, int end)
    Returns a range of all the commerce discount rels where commerceDiscountId = ?.
    findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ?.
    findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce discount rels where commerceDiscountId = ?.
    findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
    Returns the first commerce discount rel in the ordered set where commerceDiscountId = ?.
    findByPrimaryKey(long commerceDiscountRelId)
    Returns the commerce discount rel with the primary key or throws a NoSuchDiscountRelException if it could not be found.
    remove(long commerceDiscountRelId)
    Removes the commerce discount rel with the primary key from the database.
    void
    removeByCD_CN(long commerceDiscountId, long classNameId)
    Removes all the commerce discount rels where commerceDiscountId = ? and classNameId = ? from the database.
    void
    removeByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
    Removes all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ? from the database.
    void
    removeByCN_CPK(long classNameId, long classPK)
    Removes all the commerce discount rels where classNameId = ? and classPK = ? from the database.
    void
    removeByCommerceDiscountId(long commerceDiscountId)
    Removes all the commerce discount rels where commerceDiscountId = ? from the database.
    updateImpl(CommerceDiscountRel commerceDiscountRel)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByCommerceDiscountId

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

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

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

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

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

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

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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

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

      CommerceDiscountRel findByCD_CN_First(long commerceDiscountId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator) throws NoSuchDiscountRelException
      Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount rel
      Throws:
      NoSuchDiscountRelException - if a matching commerce discount rel could not be found
    • fetchByCD_CN_First

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

      void removeByCD_CN(long commerceDiscountId, long classNameId)
      Removes all the commerce discount rels where commerceDiscountId = ? and classNameId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
    • countByCD_CN

      int countByCD_CN(long commerceDiscountId, long classNameId)
      Returns the number of commerce discount rels where commerceDiscountId = ? and classNameId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      Returns:
      the number of matching commerce discount rels
    • findByCN_CPK

      List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount rels where classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount 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 rels
    • findByCN_CPK_First

      CommerceDiscountRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator) throws NoSuchDiscountRelException
      Returns the first commerce discount rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount rel
      Throws:
      NoSuchDiscountRelException - if a matching commerce discount rel could not be found
    • fetchByCN_CPK_First

      CommerceDiscountRel fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns the first commerce discount rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount rel, or null if a matching commerce discount rel could not be found
    • removeByCN_CPK

      void removeByCN_CPK(long classNameId, long classPK)
      Removes all the commerce discount rels where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByCN_CPK

      int countByCN_CPK(long classNameId, long classPK)
      Returns the number of commerce discount rels where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching commerce discount rels
    • findByCD_CN_CPK

      List<CommerceDiscountRel> findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount 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 rels
    • findByCD_CN_CPK_First

      CommerceDiscountRel findByCD_CN_CPK_First(long commerceDiscountId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator) throws NoSuchDiscountRelException
      Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ? and classPK = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount rel
      Throws:
      NoSuchDiscountRelException - if a matching commerce discount rel could not be found
    • fetchByCD_CN_CPK_First

      CommerceDiscountRel fetchByCD_CN_CPK_First(long commerceDiscountId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns the first commerce discount rel in the ordered set where commerceDiscountId = ? and classNameId = ? and classPK = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount rel, or null if a matching commerce discount rel could not be found
    • removeByCD_CN_CPK

      void removeByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
      Removes all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
    • countByCD_CN_CPK

      int countByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
      Returns the number of commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching commerce discount rels
    • create

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

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

      CommerceDiscountRel updateImpl(CommerceDiscountRel commerceDiscountRel)
    • findByPrimaryKey

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

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

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

      default List<CommerceDiscountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

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

      default List<CommerceDiscountRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce discount 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

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

      default List<CommerceDiscountRel> findByCD_CN(long commerceDiscountId, long classNameId)
      Returns all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      Returns:
      the matching commerce discount rels
    • findByCD_CN

      default List<CommerceDiscountRel> findByCD_CN(long commerceDiscountId, long classNameId, int start, int end)
      Returns a range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount rels (not inclusive)
      Returns:
      the range of matching commerce discount rels
    • findByCD_CN

      default List<CommerceDiscountRel> findByCD_CN(long commerceDiscountId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

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

      default List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK)
      Returns all the commerce discount rels where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching commerce discount rels
    • findByCN_CPK

      default List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK, int start, int end)
      Returns a range of all the commerce discount rels where classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount rels (not inclusive)
      Returns:
      the range of matching commerce discount rels
    • findByCN_CPK

      default List<CommerceDiscountRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce discount rels where classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount rels
    • findByCD_CN_CPK

      default List<CommerceDiscountRel> findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK)
      Returns all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching commerce discount rels
    • findByCD_CN_CPK

      default List<CommerceDiscountRel> findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end)
      Returns a range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount rels (not inclusive)
      Returns:
      the range of matching commerce discount rels
    • findByCD_CN_CPK

      default List<CommerceDiscountRel> findByCD_CN_CPK(long commerceDiscountId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce discount rels where commerceDiscountId = ? and classNameId = ? and classPK = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.commerce.discount.model.impl.CommerceDiscountRelModelImpl.

      Parameters:
      commerceDiscountId - the commerce discount ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of commerce discount rels
      end - the upper bound of the range of commerce discount rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce discount rels