Interface CommerceChannelRelPersistence

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

@ProviderType public interface CommerceChannelRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceChannelRel>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommerceChannelRel>
The persistence interface for the commerce channel rel service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CommerceChannelRel commerceChannelRel)
    Caches the commerce channel rel in the entity cache if it is enabled.
    void
    cacheResult(List<CommerceChannelRel> commerceChannelRels)
    Caches the commerce channel rels in the entity cache if it is enabled.
    int
    Returns the number of commerce channel rels.
    int
    countByC_C(long classNameId, long classPK)
    Returns the number of commerce channel rels where classNameId = ? and classPK = ?.
    int
    countByC_C_C(long classNameId, long classPK, long commerceChannelId)
    Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.
    int
    countByCommerceChannelId(long commerceChannelId)
    Returns the number of commerce channel rels where commerceChannelId = ?.
    create(long commerceChannelRelId)
    Creates a new commerce channel rel with the primary key.
    fetchByC_C_C(long classNameId, long classPK, long commerceChannelId)
    Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns null if it could not be found.
    fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache)
    Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the first commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
    fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the last commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
    fetchByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.
    fetchByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.
    fetchByPrimaryKey(long commerceChannelRelId)
    Returns the commerce channel rel with the primary key or returns null if it could not be found.
    Returns all the commerce channel rels.
    findAll(int start, int end)
    Returns a range of all the commerce channel rels.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns an ordered range of all the commerce channel rels.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce channel rels.
    findByC_C(long classNameId, long classPK)
    Returns all the commerce channel rels where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end)
    Returns a range of all the commerce channel rels where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns an ordered range of all the commerce channel rels where classNameId = ? and classPK = ?.
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce channel rels where classNameId = ? and classPK = ?.
    findByC_C_C(long classNameId, long classPK, long commerceChannelId)
    Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws a NoSuchChannelRelException if it could not be found.
    findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the first commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
    findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the last commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
    findByC_C_PrevAndNext(long commerceChannelRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
    findByCommerceChannelId(long commerceChannelId)
    Returns all the commerce channel rels where commerceChannelId = ?.
    findByCommerceChannelId(long commerceChannelId, int start, int end)
    Returns a range of all the commerce channel rels where commerceChannelId = ?.
    findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.
    findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.
    findByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.
    findByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.
    findByCommerceChannelId_PrevAndNext(long commerceChannelRelId, long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
    Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where commerceChannelId = ?.
    findByPrimaryKey(long commerceChannelRelId)
    Returns the commerce channel rel with the primary key or throws a NoSuchChannelRelException if it could not be found.
    remove(long commerceChannelRelId)
    Removes the commerce channel rel with the primary key from the database.
    void
    Removes all the commerce channel rels from the database.
    void
    removeByC_C(long classNameId, long classPK)
    Removes all the commerce channel rels where classNameId = ? and classPK = ? from the database.
    removeByC_C_C(long classNameId, long classPK, long commerceChannelId)
    Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.
    void
    removeByCommerceChannelId(long commerceChannelId)
    Removes all the commerce channel rels where commerceChannelId = ? from the database.
    updateImpl(CommerceChannelRel commerceChannelRel)
     

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

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByCommerceChannelId

      List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId)
      Returns all the commerce channel rels where commerceChannelId = ?.
      Parameters:
      commerceChannelId - the commerce channel ID
      Returns:
      the matching commerce channel rels
    • findByCommerceChannelId

      List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end)
      Returns a range of all the commerce channel rels where commerceChannelId = ?.

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

      Parameters:
      commerceChannelId - the commerce channel ID
      start - the lower bound of the range of commerce channel rels
      end - the upper bound of the range of commerce channel rels (not inclusive)
      Returns:
      the range of matching commerce channel rels
    • findByCommerceChannelId

      List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
      Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.

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

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

      List<CommerceChannelRel> findByCommerceChannelId(long commerceChannelId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce channel rels where commerceChannelId = ?.

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

      Parameters:
      commerceChannelId - the commerce channel ID
      start - the lower bound of the range of commerce channel rels
      end - the upper bound of the range of commerce channel 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 channel rels
    • findByCommerceChannelId_First

      CommerceChannelRel findByCommerceChannelId_First(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the first commerce channel rel in the ordered set where commerceChannelId = ?.
      Parameters:
      commerceChannelId - the commerce channel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce channel rel
      Throws:
      NoSuchChannelRelException - if a matching commerce channel rel could not be found
    • fetchByCommerceChannelId_First

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

      CommerceChannelRel findByCommerceChannelId_Last(long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the last commerce channel rel in the ordered set where commerceChannelId = ?.
      Parameters:
      commerceChannelId - the commerce channel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce channel rel
      Throws:
      NoSuchChannelRelException - if a matching commerce channel rel could not be found
    • fetchByCommerceChannelId_Last

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

      CommerceChannelRel[] findByCommerceChannelId_PrevAndNext(long commerceChannelRelId, long commerceChannelId, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where commerceChannelId = ?.
      Parameters:
      commerceChannelRelId - the primary key of the current commerce channel rel
      commerceChannelId - the commerce channel ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce channel rel
      Throws:
      NoSuchChannelRelException - if a commerce channel rel with the primary key could not be found
    • removeByCommerceChannelId

      void removeByCommerceChannelId(long commerceChannelId)
      Removes all the commerce channel rels where commerceChannelId = ? from the database.
      Parameters:
      commerceChannelId - the commerce channel ID
    • countByCommerceChannelId

      int countByCommerceChannelId(long commerceChannelId)
      Returns the number of commerce channel rels where commerceChannelId = ?.
      Parameters:
      commerceChannelId - the commerce channel ID
      Returns:
      the number of matching commerce channel rels
    • findByC_C

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

      List<CommerceChannelRel> findByC_C(long classNameId, long classPK, int start, int end)
      Returns a range of all the commerce channel 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 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 CommerceChannelRelModelImpl.

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

      List<CommerceChannelRel> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
      Returns an ordered range of all the commerce channel 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 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 CommerceChannelRelModelImpl.

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

      List<CommerceChannelRel> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce channel 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 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 CommerceChannelRelModelImpl.

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

      CommerceChannelRel findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the first commerce channel 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 channel rel
      Throws:
      NoSuchChannelRelException - if a matching commerce channel rel could not be found
    • fetchByC_C_First

      CommerceChannelRel fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
      Returns the first commerce channel 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 channel rel, or null if a matching commerce channel rel could not be found
    • findByC_C_Last

      CommerceChannelRel findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the last commerce channel 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 last matching commerce channel rel
      Throws:
      NoSuchChannelRelException - if a matching commerce channel rel could not be found
    • fetchByC_C_Last

      CommerceChannelRel fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator)
      Returns the last commerce channel 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 last matching commerce channel rel, or null if a matching commerce channel rel could not be found
    • findByC_C_PrevAndNext

      CommerceChannelRel[] findByC_C_PrevAndNext(long commerceChannelRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceChannelRel> orderByComparator) throws NoSuchChannelRelException
      Returns the commerce channel rels before and after the current commerce channel rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      commerceChannelRelId - the primary key of the current commerce channel rel
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce channel rel
      Throws:
      NoSuchChannelRelException - if a commerce channel rel with the primary key could not be found
    • removeByC_C

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

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

      CommerceChannelRel findByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException
      Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or throws a NoSuchChannelRelException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceChannelId - the commerce channel ID
      Returns:
      the matching commerce channel rel
      Throws:
      NoSuchChannelRelException - if a matching commerce channel rel could not be found
    • fetchByC_C_C

      CommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId)
      Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceChannelId - the commerce channel ID
      Returns:
      the matching commerce channel rel, or null if a matching commerce channel rel could not be found
    • fetchByC_C_C

      CommerceChannelRel fetchByC_C_C(long classNameId, long classPK, long commerceChannelId, boolean useFinderCache)
      Returns the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceChannelId - the commerce channel ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce channel rel, or null if a matching commerce channel rel could not be found
    • removeByC_C_C

      CommerceChannelRel removeByC_C_C(long classNameId, long classPK, long commerceChannelId) throws NoSuchChannelRelException
      Removes the commerce channel rel where classNameId = ? and classPK = ? and commerceChannelId = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceChannelId - the commerce channel ID
      Returns:
      the commerce channel rel that was removed
      Throws:
      NoSuchChannelRelException
    • countByC_C_C

      int countByC_C_C(long classNameId, long classPK, long commerceChannelId)
      Returns the number of commerce channel rels where classNameId = ? and classPK = ? and commerceChannelId = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      commerceChannelId - the commerce channel ID
      Returns:
      the number of matching commerce channel rels
    • cacheResult

      void cacheResult(CommerceChannelRel commerceChannelRel)
      Caches the commerce channel rel in the entity cache if it is enabled.
      Parameters:
      commerceChannelRel - the commerce channel rel
    • cacheResult

      void cacheResult(List<CommerceChannelRel> commerceChannelRels)
      Caches the commerce channel rels in the entity cache if it is enabled.
      Parameters:
      commerceChannelRels - the commerce channel rels
    • create

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

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

      CommerceChannelRel updateImpl(CommerceChannelRel commerceChannelRel)
    • findByPrimaryKey

      CommerceChannelRel findByPrimaryKey(long commerceChannelRelId) throws NoSuchChannelRelException
      Returns the commerce channel rel with the primary key or throws a NoSuchChannelRelException if it could not be found.
      Parameters:
      commerceChannelRelId - the primary key of the commerce channel rel
      Returns:
      the commerce channel rel
      Throws:
      NoSuchChannelRelException - if a commerce channel rel with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the commerce channel rels.
      Returns:
      the commerce channel rels
    • findAll

      List<CommerceChannelRel> findAll(int start, int end)
      Returns a range of all the commerce channel 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 CommerceChannelRelModelImpl.

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

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

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

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

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

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

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