code: public static CommercePaymentMethodGroupRel[] findByG_A_PrevAndNext(
  		long commercePaymentMethodGroupRelId, long groupId, boolean active,
  		OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
  		throws com.liferay.commerce.payment.exception.NoSuchPaymentMethodGroupRelException {
  		return getPersistence()
  				   .findByG_A_PrevAndNext(commercePaymentMethodGroupRelId,
  			groupId, active, orderByComparator);
  	}
docs: Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set where groupId = &#63; and active = &#63;.
  
  @param commercePaymentMethodGroupRelId the primary key of the current commerce payment method group rel
  @param groupId the group ID
  @param active the active
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return 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