Class CommercePaymentMethodGroupRelUtil

java.lang.Object
com.liferay.commerce.payment.service.persistence.CommercePaymentMethodGroupRelUtil

public class CommercePaymentMethodGroupRelUtil extends Object
The persistence utility for the commerce payment method group rel service. This utility wraps com.liferay.commerce.payment.service.persistence.impl.CommercePaymentMethodGroupRelPersistenceImpl 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

    • CommercePaymentMethodGroupRelUtil

      public CommercePaymentMethodGroupRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static CommercePaymentMethodGroupRel update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByGroupId

      public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId)
      Returns all the commerce payment method group rels where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce payment method group rels
    • findByGroupId

      public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce payment method group rels where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      Returns:
      the range of matching commerce payment method group rels
    • findByGroupId

      public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns an ordered range of all the commerce payment method group rels where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment method group rels
    • findByGroupId

      public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce payment method group rels where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method 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 payment method group rels
    • findByGroupId_First

      public static CommercePaymentMethodGroupRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the first commerce payment method group rel in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a matching commerce payment method group rel could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByGroupId_First

      public static CommercePaymentMethodGroupRel fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns the first commerce payment method group rel in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • findByGroupId_Last

      public static CommercePaymentMethodGroupRel findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the last commerce payment method group rel in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a matching commerce payment method group rel could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByGroupId_Last

      public static CommercePaymentMethodGroupRel fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns the last commerce payment method group rel in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • findByGroupId_PrevAndNext

      public static CommercePaymentMethodGroupRel[] findByGroupId_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set where groupId = ?.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key of the current commerce payment method group rel
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a commerce payment method group rel with the primary key could not be found
      NoSuchPaymentMethodGroupRelException
    • filterFindByGroupId

      public static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId)
      Returns all the commerce payment method group rels that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce payment method group rels that the user has permission to view
    • filterFindByGroupId

      public static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      Returns:
      the range of matching commerce payment method group rels that the user has permission to view
    • filterFindByGroupId

      public static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment method group rels that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      public static CommercePaymentMethodGroupRel[] filterFindByGroupId_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set of commerce payment method group rels that the user has permission to view where groupId = ?.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key of the current commerce payment method group rel
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a commerce payment method group rel with the primary key could not be found
      NoSuchPaymentMethodGroupRelException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the commerce payment method group rels where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of commerce payment method group rels where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching commerce payment method group rels
    • filterCountByGroupId

      public static int filterCountByGroupId(long groupId)
      Returns the number of commerce payment method group rels that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching commerce payment method group rels that the user has permission to view
    • findByG_A

      public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active)
      Returns all the commerce payment method group rels where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the matching commerce payment method group rels
    • findByG_A

      public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end)
      Returns a range of all the commerce payment method group rels where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      Returns:
      the range of matching commerce payment method group rels
    • findByG_A

      public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment method group rels
    • findByG_A

      public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method 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 payment method group rels
    • findByG_A_First

      public static CommercePaymentMethodGroupRel findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a matching commerce payment method group rel could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByG_A_First

      public static CommercePaymentMethodGroupRel fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • findByG_A_Last

      public static CommercePaymentMethodGroupRel findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the last commerce payment method group rel in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a matching commerce payment method group rel could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByG_A_Last

      public static CommercePaymentMethodGroupRel fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns the last commerce payment method group rel in the ordered set where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • findByG_A_PrevAndNext

      public static CommercePaymentMethodGroupRel[] findByG_A_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set where groupId = ? and active = ?.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key of the current commerce payment method group rel
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a commerce payment method group rel with the primary key could not be found
      NoSuchPaymentMethodGroupRelException
    • filterFindByG_A

      public static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active)
      Returns all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the matching commerce payment method group rels that the user has permission to view
    • filterFindByG_A

      public static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end)
      Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      Returns:
      the range of matching commerce payment method group rels that the user has permission to view
    • filterFindByG_A

      public static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of commerce payment method group rels
      end - the upper bound of the range of commerce payment method group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce payment method group rels that the user has permission to view
    • filterFindByG_A_PrevAndNext

      public static CommercePaymentMethodGroupRel[] filterFindByG_A_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set of commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key of the current commerce payment method group rel
      groupId - the group ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a commerce payment method group rel with the primary key could not be found
      NoSuchPaymentMethodGroupRelException
    • removeByG_A

      public static void removeByG_A(long groupId, boolean active)
      Removes all the commerce payment method group rels where groupId = ? and active = ? from the database.
      Parameters:
      groupId - the group ID
      active - the active
    • countByG_A

      public static int countByG_A(long groupId, boolean active)
      Returns the number of commerce payment method group rels where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the number of matching commerce payment method group rels
    • filterCountByG_A

      public static int filterCountByG_A(long groupId, boolean active)
      Returns the number of commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the number of matching commerce payment method group rels that the user has permission to view
    • findByG_P

      public static CommercePaymentMethodGroupRel findByG_P(long groupId, String paymentIntegrationKey) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or throws a NoSuchPaymentMethodGroupRelException if it could not be found.
      Parameters:
      groupId - the group ID
      paymentIntegrationKey - the payment integration key
      Returns:
      the matching commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a matching commerce payment method group rel could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByG_P

      public static CommercePaymentMethodGroupRel fetchByG_P(long groupId, String paymentIntegrationKey)
      Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      paymentIntegrationKey - the payment integration key
      Returns:
      the matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • fetchByG_P

      public static CommercePaymentMethodGroupRel fetchByG_P(long groupId, String paymentIntegrationKey, boolean useFinderCache)
      Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      paymentIntegrationKey - the payment integration key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce payment method group rel, or null if a matching commerce payment method group rel could not be found
    • removeByG_P

      public static CommercePaymentMethodGroupRel removeByG_P(long groupId, String paymentIntegrationKey) throws NoSuchPaymentMethodGroupRelException
      Removes the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? from the database.
      Parameters:
      groupId - the group ID
      paymentIntegrationKey - the payment integration key
      Returns:
      the commerce payment method group rel that was removed
      Throws:
      NoSuchPaymentMethodGroupRelException
    • countByG_P

      public static int countByG_P(long groupId, String paymentIntegrationKey)
      Returns the number of commerce payment method group rels where groupId = ? and paymentIntegrationKey = ?.
      Parameters:
      groupId - the group ID
      paymentIntegrationKey - the payment integration key
      Returns:
      the number of matching commerce payment method group rels
    • cacheResult

      public static void cacheResult(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
      Caches the commerce payment method group rel in the entity cache if it is enabled.
      Parameters:
      commercePaymentMethodGroupRel - the commerce payment method group rel
    • cacheResult

      public static void cacheResult(List<CommercePaymentMethodGroupRel> commercePaymentMethodGroupRels)
      Caches the commerce payment method group rels in the entity cache if it is enabled.
      Parameters:
      commercePaymentMethodGroupRels - the commerce payment method group rels
    • create

      public static CommercePaymentMethodGroupRel create(long commercePaymentMethodGroupRelId)
      Creates a new commerce payment method group rel with the primary key. Does not add the commerce payment method group rel to the database.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key for the new commerce payment method group rel
      Returns:
      the new commerce payment method group rel
    • remove

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

      public static CommercePaymentMethodGroupRel updateImpl(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
    • findByPrimaryKey

      public static CommercePaymentMethodGroupRel findByPrimaryKey(long commercePaymentMethodGroupRelId) throws NoSuchPaymentMethodGroupRelException
      Returns the commerce payment method group rel with the primary key or throws a NoSuchPaymentMethodGroupRelException if it could not be found.
      Parameters:
      commercePaymentMethodGroupRelId - the primary key of the commerce payment method group rel
      Returns:
      the commerce payment method group rel
      Throws:
      NoSuchPaymentMethodGroupRelException - if a commerce payment method group rel with the primary key could not be found
      NoSuchPaymentMethodGroupRelException
    • fetchByPrimaryKey

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

      public static List<CommercePaymentMethodGroupRel> findAll()
      Returns all the commerce payment method group rels.
      Returns:
      the commerce payment method group rels
    • findAll

      public static List<CommercePaymentMethodGroupRel> findAll(int start, int end)
      Returns a range of all the commerce payment method 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 CommercePaymentMethodGroupRelModelImpl.

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

      public static List<CommercePaymentMethodGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
      Returns an ordered range of all the commerce payment method 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 CommercePaymentMethodGroupRelModelImpl.

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

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

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

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

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

      public static CommercePaymentMethodGroupRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommercePaymentMethodGroupRelPersistence persistence)