code: public static CommerceDiscount[] filterFindByG_C_PrevAndNext(
  		long commerceDiscountId, long groupId, String couponCode,
  		OrderByComparator<CommerceDiscount> orderByComparator)
  		throws com.liferay.commerce.discount.exception.NoSuchDiscountException {
  		return getPersistence()
  				   .filterFindByG_C_PrevAndNext(commerceDiscountId, groupId,
  			couponCode, orderByComparator);
  	}
docs: Returns the commerce discounts before and after the current commerce discount in the ordered set of commerce discounts that the user has permission to view where groupId = &#63; and couponCode = &#63;.
  
  @param commerceDiscountId the primary key of the current commerce discount
  @param groupId the group ID
  @param couponCode the coupon code
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce discount
  @throws NoSuchDiscountException if a commerce discount with the primary key could not be found