Class CommercePriceListDiscountRelUtil

java.lang.Object
com.liferay.commerce.price.list.service.persistence.CommercePriceListDiscountRelUtil

public class CommercePriceListDiscountRelUtil extends Object
The persistence utility for the commerce price list discount rel service. This utility wraps com.liferay.commerce.price.list.service.persistence.impl.CommercePriceListDiscountRelPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • CommercePriceListDiscountRelUtil

      public CommercePriceListDiscountRelUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommercePriceListDiscountRel commercePriceListDiscountRel)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CommercePriceListDiscountRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommercePriceListDiscountRel update(CommercePriceListDiscountRel commercePriceListDiscountRel)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommercePriceListDiscountRel update(CommercePriceListDiscountRel commercePriceListDiscountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CommercePriceListDiscountRel> findByUuid(String uuid)
      Returns all the commerce price list discount rels where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce price list discount rels
    • findByUuid

      public static List<CommercePriceListDiscountRel> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

      public static List<CommercePriceListDiscountRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

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

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

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

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

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

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

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

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

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

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

      public static List<CommercePriceListDiscountRel> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

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

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

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

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

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

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

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

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

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce price list discount rels where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce price list discount rels where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce price list discount rels
    • findByCommercePriceListId

      public static List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId)
      Returns all the commerce price list discount rels where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      Returns:
      the matching commerce price list discount rels
    • findByCommercePriceListId

      public static List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, int start, int end)
      Returns a range of all the commerce price list discount rels where commercePriceListId = ?.

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

      Parameters:
      commercePriceListId - the commerce price list ID
      start - the lower bound of the range of commerce price list discount rels
      end - the upper bound of the range of commerce price list discount rels (not inclusive)
      Returns:
      the range of matching commerce price list discount rels
    • findByCommercePriceListId

      public static List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce price list discount rels where commercePriceListId = ?.

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

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

      public static List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce price list discount rels where commercePriceListId = ?.

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

      Parameters:
      commercePriceListId - the commerce price list ID
      start - the lower bound of the range of commerce price list discount rels
      end - the upper bound of the range of commerce price list 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 price list discount rels
    • findByCommercePriceListId_First

      public static CommercePriceListDiscountRel findByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
      Returns the first commerce price list discount rel in the ordered set where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce price list discount rel
      Throws:
      NoSuchPriceListDiscountRelException - if a matching commerce price list discount rel could not be found
      NoSuchPriceListDiscountRelException
    • fetchByCommercePriceListId_First

      public static CommercePriceListDiscountRel fetchByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      Returns the first commerce price list discount rel in the ordered set where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce price list discount rel, or null if a matching commerce price list discount rel could not be found
    • findByCommercePriceListId_Last

      public static CommercePriceListDiscountRel findByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
      Returns the last commerce price list discount rel in the ordered set where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce price list discount rel
      Throws:
      NoSuchPriceListDiscountRelException - if a matching commerce price list discount rel could not be found
      NoSuchPriceListDiscountRelException
    • fetchByCommercePriceListId_Last

      public static CommercePriceListDiscountRel fetchByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      Returns the last commerce price list discount rel in the ordered set where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce price list discount rel, or null if a matching commerce price list discount rel could not be found
    • findByCommercePriceListId_PrevAndNext

      public static CommercePriceListDiscountRel[] findByCommercePriceListId_PrevAndNext(long commercePriceListDiscountRelId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
      Returns the commerce price list discount rels before and after the current commerce price list discount rel in the ordered set where commercePriceListId = ?.
      Parameters:
      commercePriceListDiscountRelId - the primary key of the current commerce price list discount rel
      commercePriceListId - the commerce price list ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce price list discount rel
      Throws:
      NoSuchPriceListDiscountRelException - if a commerce price list discount rel with the primary key could not be found
      NoSuchPriceListDiscountRelException
    • removeByCommercePriceListId

      public static void removeByCommercePriceListId(long commercePriceListId)
      Removes all the commerce price list discount rels where commercePriceListId = ? from the database.
      Parameters:
      commercePriceListId - the commerce price list ID
    • countByCommercePriceListId

      public static int countByCommercePriceListId(long commercePriceListId)
      Returns the number of commerce price list discount rels where commercePriceListId = ?.
      Parameters:
      commercePriceListId - the commerce price list ID
      Returns:
      the number of matching commerce price list discount rels
    • findByCDI_CPI

      public static CommercePriceListDiscountRel findByCDI_CPI(long commerceDiscountId, long commercePriceListId) throws NoSuchPriceListDiscountRelException
      Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or throws a NoSuchPriceListDiscountRelException if it could not be found.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commercePriceListId - the commerce price list ID
      Returns:
      the matching commerce price list discount rel
      Throws:
      NoSuchPriceListDiscountRelException - if a matching commerce price list discount rel could not be found
      NoSuchPriceListDiscountRelException
    • fetchByCDI_CPI

      public static CommercePriceListDiscountRel fetchByCDI_CPI(long commerceDiscountId, long commercePriceListId)
      Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commercePriceListId - the commerce price list ID
      Returns:
      the matching commerce price list discount rel, or null if a matching commerce price list discount rel could not be found
    • fetchByCDI_CPI

      public static CommercePriceListDiscountRel fetchByCDI_CPI(long commerceDiscountId, long commercePriceListId, boolean useFinderCache)
      Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commercePriceListId - the commerce price list ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce price list discount rel, or null if a matching commerce price list discount rel could not be found
    • removeByCDI_CPI

      public static CommercePriceListDiscountRel removeByCDI_CPI(long commerceDiscountId, long commercePriceListId) throws NoSuchPriceListDiscountRelException
      Removes the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commercePriceListId - the commerce price list ID
      Returns:
      the commerce price list discount rel that was removed
      Throws:
      NoSuchPriceListDiscountRelException
    • countByCDI_CPI

      public static int countByCDI_CPI(long commerceDiscountId, long commercePriceListId)
      Returns the number of commerce price list discount rels where commerceDiscountId = ? and commercePriceListId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commercePriceListId - the commerce price list ID
      Returns:
      the number of matching commerce price list discount rels
    • cacheResult

      public static void cacheResult(CommercePriceListDiscountRel commercePriceListDiscountRel)
      Caches the commerce price list discount rel in the entity cache if it is enabled.
      Parameters:
      commercePriceListDiscountRel - the commerce price list discount rel
    • cacheResult

      public static void cacheResult(List<CommercePriceListDiscountRel> commercePriceListDiscountRels)
      Caches the commerce price list discount rels in the entity cache if it is enabled.
      Parameters:
      commercePriceListDiscountRels - the commerce price list discount rels
    • create

      public static CommercePriceListDiscountRel create(long commercePriceListDiscountRelId)
      Creates a new commerce price list discount rel with the primary key. Does not add the commerce price list discount rel to the database.
      Parameters:
      commercePriceListDiscountRelId - the primary key for the new commerce price list discount rel
      Returns:
      the new commerce price list discount rel
    • remove

      public static CommercePriceListDiscountRel remove(long commercePriceListDiscountRelId) throws NoSuchPriceListDiscountRelException
      Removes the commerce price list discount rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commercePriceListDiscountRelId - the primary key of the commerce price list discount rel
      Returns:
      the commerce price list discount rel that was removed
      Throws:
      NoSuchPriceListDiscountRelException - if a commerce price list discount rel with the primary key could not be found
      NoSuchPriceListDiscountRelException
    • updateImpl

      public static CommercePriceListDiscountRel updateImpl(CommercePriceListDiscountRel commercePriceListDiscountRel)
    • findByPrimaryKey

      public static CommercePriceListDiscountRel findByPrimaryKey(long commercePriceListDiscountRelId) throws NoSuchPriceListDiscountRelException
      Returns the commerce price list discount rel with the primary key or throws a NoSuchPriceListDiscountRelException if it could not be found.
      Parameters:
      commercePriceListDiscountRelId - the primary key of the commerce price list discount rel
      Returns:
      the commerce price list discount rel
      Throws:
      NoSuchPriceListDiscountRelException - if a commerce price list discount rel with the primary key could not be found
      NoSuchPriceListDiscountRelException
    • fetchByPrimaryKey

      public static CommercePriceListDiscountRel fetchByPrimaryKey(long commercePriceListDiscountRelId)
      Returns the commerce price list discount rel with the primary key or returns null if it could not be found.
      Parameters:
      commercePriceListDiscountRelId - the primary key of the commerce price list discount rel
      Returns:
      the commerce price list discount rel, or null if a commerce price list discount rel with the primary key could not be found
    • findAll

      public static List<CommercePriceListDiscountRel> findAll()
      Returns all the commerce price list discount rels.
      Returns:
      the commerce price list discount rels
    • findAll

      public static List<CommercePriceListDiscountRel> findAll(int start, int end)
      Returns a range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

      public static List<CommercePriceListDiscountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
      Returns an ordered range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

      public static List<CommercePriceListDiscountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce price list discount 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 CommercePriceListDiscountRelModelImpl.

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

      public static void removeAll()
      Removes all the commerce price list discount rels from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce price list discount rels.
      Returns:
      the number of commerce price list discount rels
    • getPersistence

      public static CommercePriceListDiscountRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommercePriceListDiscountRelPersistence persistence)