Interface CommercePricingClassCPDefinitionRelPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePricingClassCPDefinitionRel>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePricingClassCPDefinitionRel>

@ProviderType public interface CommercePricingClassCPDefinitionRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePricingClassCPDefinitionRel>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePricingClassCPDefinitionRel>
The persistence interface for the commerce pricing class cp definition rel service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByCommercePricingClassId

      List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId)
      Returns all the commerce pricing class cp definition rels where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      Returns:
      the matching commerce pricing class cp definition rels
    • findByCommercePricingClassId

      List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end)
      Returns a range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.

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

      Parameters:
      commercePricingClassId - the commerce pricing class ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition rels (not inclusive)
      Returns:
      the range of matching commerce pricing class cp definition rels
    • findByCommercePricingClassId

      List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns an ordered range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.

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

      Parameters:
      commercePricingClassId - the commerce pricing class ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce pricing class cp definition rels
    • findByCommercePricingClassId

      List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.

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

      Parameters:
      commercePricingClassId - the commerce pricing class ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition 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 pricing class cp definition rels
    • findByCommercePricingClassId_First

      CommercePricingClassCPDefinitionRel findByCommercePricingClassId_First(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the first commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a matching commerce pricing class cp definition rel could not be found
    • fetchByCommercePricingClassId_First

      CommercePricingClassCPDefinitionRel fetchByCommercePricingClassId_First(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns the first commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • findByCommercePricingClassId_Last

      CommercePricingClassCPDefinitionRel findByCommercePricingClassId_Last(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the last commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a matching commerce pricing class cp definition rel could not be found
    • fetchByCommercePricingClassId_Last

      CommercePricingClassCPDefinitionRel fetchByCommercePricingClassId_Last(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns the last commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • findByCommercePricingClassId_PrevAndNext

      CommercePricingClassCPDefinitionRel[] findByCommercePricingClassId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the commerce pricing class cp definition rels before and after the current commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key of the current commerce pricing class cp definition rel
      commercePricingClassId - the commerce pricing class ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a commerce pricing class cp definition rel with the primary key could not be found
    • removeByCommercePricingClassId

      void removeByCommercePricingClassId(long commercePricingClassId)
      Removes all the commerce pricing class cp definition rels where commercePricingClassId = ? from the database.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
    • countByCommercePricingClassId

      int countByCommercePricingClassId(long commercePricingClassId)
      Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      Returns:
      the number of matching commerce pricing class cp definition rels
    • findByCPDefinitionId

      List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId)
      Returns all the commerce pricing class cp definition rels where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching commerce pricing class cp definition rels
    • findByCPDefinitionId

      List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end)
      Returns a range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition rels (not inclusive)
      Returns:
      the range of matching commerce pricing class cp definition rels
    • findByCPDefinitionId

      List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns an ordered range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce pricing class cp definition rels
    • findByCPDefinitionId

      List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.

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

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition 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 pricing class cp definition rels
    • findByCPDefinitionId_First

      CommercePricingClassCPDefinitionRel findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the first commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a matching commerce pricing class cp definition rel could not be found
    • fetchByCPDefinitionId_First

      CommercePricingClassCPDefinitionRel fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns the first commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • findByCPDefinitionId_Last

      CommercePricingClassCPDefinitionRel findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the last commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a matching commerce pricing class cp definition rel could not be found
    • fetchByCPDefinitionId_Last

      CommercePricingClassCPDefinitionRel fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns the last commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • findByCPDefinitionId_PrevAndNext

      CommercePricingClassCPDefinitionRel[] findByCPDefinitionId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
      Returns the commerce pricing class cp definition rels before and after the current commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key of the current commerce pricing class cp definition rel
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a commerce pricing class cp definition rel with the primary key could not be found
    • removeByCPDefinitionId

      void removeByCPDefinitionId(long CPDefinitionId)
      Removes all the commerce pricing class cp definition rels where CPDefinitionId = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
    • countByCPDefinitionId

      int countByCPDefinitionId(long CPDefinitionId)
      Returns the number of commerce pricing class cp definition rels where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the number of matching commerce pricing class cp definition rels
    • findByC_C

      CommercePricingClassCPDefinitionRel findByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException
      Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or throws a NoSuchPricingClassCPDefinitionRelException if it could not be found.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      CPDefinitionId - the cp definition ID
      Returns:
      the matching commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a matching commerce pricing class cp definition rel could not be found
    • fetchByC_C

      CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId)
      Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      CPDefinitionId - the cp definition ID
      Returns:
      the matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • fetchByC_C

      CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId, boolean useFinderCache)
      Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      CPDefinitionId - the cp definition ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce pricing class cp definition rel, or null if a matching commerce pricing class cp definition rel could not be found
    • removeByC_C

      CommercePricingClassCPDefinitionRel removeByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException
      Removes the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? from the database.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      CPDefinitionId - the cp definition ID
      Returns:
      the commerce pricing class cp definition rel that was removed
      Throws:
      NoSuchPricingClassCPDefinitionRelException
    • countByC_C

      int countByC_C(long commercePricingClassId, long CPDefinitionId)
      Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ? and CPDefinitionId = ?.
      Parameters:
      commercePricingClassId - the commerce pricing class ID
      CPDefinitionId - the cp definition ID
      Returns:
      the number of matching commerce pricing class cp definition rels
    • cacheResult

      void cacheResult(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
      Caches the commerce pricing class cp definition rel in the entity cache if it is enabled.
      Parameters:
      commercePricingClassCPDefinitionRel - the commerce pricing class cp definition rel
    • cacheResult

      void cacheResult(List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels)
      Caches the commerce pricing class cp definition rels in the entity cache if it is enabled.
      Parameters:
      commercePricingClassCPDefinitionRels - the commerce pricing class cp definition rels
    • create

      CommercePricingClassCPDefinitionRel create(long CommercePricingClassCPDefinitionRelId)
      Creates a new commerce pricing class cp definition rel with the primary key. Does not add the commerce pricing class cp definition rel to the database.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key for the new commerce pricing class cp definition rel
      Returns:
      the new commerce pricing class cp definition rel
    • remove

      CommercePricingClassCPDefinitionRel remove(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException
      Removes the commerce pricing class cp definition rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key of the commerce pricing class cp definition rel
      Returns:
      the commerce pricing class cp definition rel that was removed
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a commerce pricing class cp definition rel with the primary key could not be found
    • updateImpl

      CommercePricingClassCPDefinitionRel updateImpl(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
    • findByPrimaryKey

      CommercePricingClassCPDefinitionRel findByPrimaryKey(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException
      Returns the commerce pricing class cp definition rel with the primary key or throws a NoSuchPricingClassCPDefinitionRelException if it could not be found.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key of the commerce pricing class cp definition rel
      Returns:
      the commerce pricing class cp definition rel
      Throws:
      NoSuchPricingClassCPDefinitionRelException - if a commerce pricing class cp definition rel with the primary key could not be found
    • fetchByPrimaryKey

      CommercePricingClassCPDefinitionRel fetchByPrimaryKey(long CommercePricingClassCPDefinitionRelId)
      Returns the commerce pricing class cp definition rel with the primary key or returns null if it could not be found.
      Parameters:
      CommercePricingClassCPDefinitionRelId - the primary key of the commerce pricing class cp definition rel
      Returns:
      the commerce pricing class cp definition rel, or null if a commerce pricing class cp definition rel with the primary key could not be found
    • findAll

      Returns all the commerce pricing class cp definition rels.
      Returns:
      the commerce pricing class cp definition rels
    • findAll

      List<CommercePricingClassCPDefinitionRel> findAll(int start, int end)
      Returns a range of all the commerce pricing class cp definition 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 CommercePricingClassCPDefinitionRelModelImpl.

      Parameters:
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition rels (not inclusive)
      Returns:
      the range of commerce pricing class cp definition rels
    • findAll

      List<CommercePricingClassCPDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
      Returns an ordered range of all the commerce pricing class cp definition 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 CommercePricingClassCPDefinitionRelModelImpl.

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

      List<CommercePricingClassCPDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce pricing class cp definition 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 CommercePricingClassCPDefinitionRelModelImpl.

      Parameters:
      start - the lower bound of the range of commerce pricing class cp definition rels
      end - the upper bound of the range of commerce pricing class cp definition 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 pricing class cp definition rels
    • removeAll

      void removeAll()
      Removes all the commerce pricing class cp definition rels from the database.
    • countAll

      int countAll()
      Returns the number of commerce pricing class cp definition rels.
      Returns:
      the number of commerce pricing class cp definition rels