Class CommerceDiscountCommerceAccountGroupRelUtil

java.lang.Object
com.liferay.commerce.discount.service.persistence.CommerceDiscountCommerceAccountGroupRelUtil

public class CommerceDiscountCommerceAccountGroupRelUtil extends Object
The persistence utility for the commerce discount commerce account group rel service. This utility wraps com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountCommerceAccountGroupRelPersistenceImpl 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

    • CommerceDiscountCommerceAccountGroupRelUtil

      public CommerceDiscountCommerceAccountGroupRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommerceDiscountCommerceAccountGroupRel update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCommerceDiscountId

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId)
      Returns all the commerce discount commerce account group rels where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the matching commerce discount commerce account group rels
    • findByCommerceDiscountId

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end)
      Returns a range of all the commerce discount commerce account group rels where commerceDiscountId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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 CommerceDiscountCommerceAccountGroupRelModelImpl.

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

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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 CommerceDiscountCommerceAccountGroupRelModelImpl.

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

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to 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 CommerceDiscountCommerceAccountGroupRelModelImpl.

      Parameters:
      commerceDiscountId - the commerce discount ID
      start - the lower bound of the range of commerce discount commerce account group rels
      end - the upper bound of the range of commerce discount commerce account group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce discount commerce account group rels
    • findByCommerceDiscountId_First

      public static CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the first commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a matching commerce discount commerce account group rel could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByCommerceDiscountId_First

      public static CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns the first commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • findByCommerceDiscountId_Last

      public static CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a matching commerce discount commerce account group rel could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByCommerceDiscountId_Last

      public static CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • findByCommerceDiscountId_PrevAndNext

      public static CommerceDiscountCommerceAccountGroupRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.
      Parameters:
      commerceDiscountCommerceAccountGroupRelId - the primary key of the current commerce discount commerce account group rel
      commerceDiscountId - the commerce discount ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a commerce discount commerce account group rel with the primary key could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • removeByCommerceDiscountId

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

      public static int countByCommerceDiscountId(long commerceDiscountId)
      Returns the number of commerce discount commerce account group rels where commerceDiscountId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      Returns:
      the number of matching commerce discount commerce account group rels
    • findByCommerceAccountGroupId

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId)
      Returns all the commerce discount commerce account group rels where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the matching commerce discount commerce account group rels
    • findByCommerceAccountGroupId

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end)
      Returns a range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.

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

      Parameters:
      commerceAccountGroupId - the commerce account group ID
      start - the lower bound of the range of commerce discount commerce account group rels
      end - the upper bound of the range of commerce discount commerce account group rels (not inclusive)
      Returns:
      the range of matching commerce discount commerce account group rels
    • findByCommerceAccountGroupId

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.

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

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

      public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.

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

      Parameters:
      commerceAccountGroupId - the commerce account group ID
      start - the lower bound of the range of commerce discount commerce account group rels
      end - the upper bound of the range of commerce discount commerce account group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce discount commerce account group rels
    • findByCommerceAccountGroupId_First

      public static CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a matching commerce discount commerce account group rel could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByCommerceAccountGroupId_First

      public static CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • findByCommerceAccountGroupId_Last

      public static CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a matching commerce discount commerce account group rel could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByCommerceAccountGroupId_Last

      public static CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
      Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • findByCommerceAccountGroupId_PrevAndNext

      public static CommerceDiscountCommerceAccountGroupRel[] findByCommerceAccountGroupId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.
      Parameters:
      commerceDiscountCommerceAccountGroupRelId - the primary key of the current commerce discount commerce account group rel
      commerceAccountGroupId - the commerce account group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a commerce discount commerce account group rel with the primary key could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • removeByCommerceAccountGroupId

      public static void removeByCommerceAccountGroupId(long commerceAccountGroupId)
      Removes all the commerce discount commerce account group rels where commerceAccountGroupId = ? from the database.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
    • countByCommerceAccountGroupId

      public static int countByCommerceAccountGroupId(long commerceAccountGroupId)
      Returns the number of commerce discount commerce account group rels where commerceAccountGroupId = ?.
      Parameters:
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the number of matching commerce discount commerce account group rels
    • findByCDI_CAGI

      public static CommerceDiscountCommerceAccountGroupRel findByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or throws a NoSuchDiscountCommerceAccountGroupRelException if it could not be found.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the matching commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a matching commerce discount commerce account group rel could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByCDI_CAGI

      public static CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId)
      Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • fetchByCDI_CAGI

      public static CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId, boolean useFinderCache)
      Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceAccountGroupId - the commerce account group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce discount commerce account group rel, or null if a matching commerce discount commerce account group rel could not be found
    • removeByCDI_CAGI

      public static CommerceDiscountCommerceAccountGroupRel removeByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException
      Removes the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? from the database.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the commerce discount commerce account group rel that was removed
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException
    • countByCDI_CAGI

      public static int countByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId)
      Returns the number of commerce discount commerce account group rels where commerceDiscountId = ? and commerceAccountGroupId = ?.
      Parameters:
      commerceDiscountId - the commerce discount ID
      commerceAccountGroupId - the commerce account group ID
      Returns:
      the number of matching commerce discount commerce account group rels
    • cacheResult

      public static void cacheResult(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
      Caches the commerce discount commerce account group rel in the entity cache if it is enabled.
      Parameters:
      commerceDiscountCommerceAccountGroupRel - the commerce discount commerce account group rel
    • cacheResult

      public static void cacheResult(List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels)
      Caches the commerce discount commerce account group rels in the entity cache if it is enabled.
      Parameters:
      commerceDiscountCommerceAccountGroupRels - the commerce discount commerce account group rels
    • create

      public static CommerceDiscountCommerceAccountGroupRel create(long commerceDiscountCommerceAccountGroupRelId)
      Creates a new commerce discount commerce account group rel with the primary key. Does not add the commerce discount commerce account group rel to the database.
      Parameters:
      commerceDiscountCommerceAccountGroupRelId - the primary key for the new commerce discount commerce account group rel
      Returns:
      the new commerce discount commerce account group rel
    • remove

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

      public static CommerceDiscountCommerceAccountGroupRel updateImpl(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
    • findByPrimaryKey

      public static CommerceDiscountCommerceAccountGroupRel findByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId) throws NoSuchDiscountCommerceAccountGroupRelException
      Returns the commerce discount commerce account group rel with the primary key or throws a NoSuchDiscountCommerceAccountGroupRelException if it could not be found.
      Parameters:
      commerceDiscountCommerceAccountGroupRelId - the primary key of the commerce discount commerce account group rel
      Returns:
      the commerce discount commerce account group rel
      Throws:
      NoSuchDiscountCommerceAccountGroupRelException - if a commerce discount commerce account group rel with the primary key could not be found
      NoSuchDiscountCommerceAccountGroupRelException
    • fetchByPrimaryKey

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

      Returns all the commerce discount commerce account group rels.
      Returns:
      the commerce discount commerce account group rels
    • findAll

      public static List<CommerceDiscountCommerceAccountGroupRel> findAll(int start, int end)
      Returns a range of all the commerce discount commerce account group 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 CommerceDiscountCommerceAccountGroupRelModelImpl.

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

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

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

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

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

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

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

    • setPersistence

      public static void setPersistence(CommerceDiscountCommerceAccountGroupRelPersistence persistence)