Class CommerceChannelRelUtil

java.lang.Object
com.liferay.commerce.product.service.persistence.CommerceChannelRelUtil

public class CommerceChannelRelUtil extends Object
The persistence utility for the commerce channel rel service. This utility wraps com.liferay.commerce.product.service.persistence.impl.CommerceChannelRelPersistenceImpl 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

    • CommerceChannelRelUtil

      public CommerceChannelRelUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceChannelRel commerceChannelRel)
      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,CommerceChannelRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static CommerceChannelRel update(CommerceChannelRel commerceChannelRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceChannelId

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchChannelRelException
    • fetchByCommerceChannelId_First

      public static 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

      public static 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
      NoSuchChannelRelException
    • fetchByCommerceChannelId_Last

      public static 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

      public static 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
      NoSuchChannelRelException
    • removeByCommerceChannelId

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchChannelRelException
    • fetchByC_C_First

      public static 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

      public static 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
      NoSuchChannelRelException
    • fetchByC_C_Last

      public static 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

      public static 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
      NoSuchChannelRelException
    • removeByC_C

      public static 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

      public static 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

      public static 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
      NoSuchChannelRelException
    • fetchByC_C_C

      public static 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

      public static 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

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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
      NoSuchChannelRelException
    • updateImpl

      public static CommerceChannelRel updateImpl(CommerceChannelRel commerceChannelRel)
    • findByPrimaryKey

      public static 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
      NoSuchChannelRelException
    • fetchByPrimaryKey

      public static 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

      public static List<CommerceChannelRel> findAll()
      Returns all the commerce channel rels.
      Returns:
      the commerce channel rels
    • findAll

      public static 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

      public static 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

      public static 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

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

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

      public static CommerceChannelRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceChannelRelPersistence persistence)