code: public static CommerceDiscount[] findByGroupId_PrevAndNext(
  		long commerceDiscountId, long groupId,
  		OrderByComparator<CommerceDiscount> orderByComparator)
  		throws com.liferay.commerce.discount.exception.NoSuchDiscountException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(commerceDiscountId, groupId,
  			orderByComparator);
  	}
docs: Returns the commerce discounts before and after the current commerce discount in the ordered set where groupId = &#63;.
  
  @param commerceDiscountId the primary key of the current commerce discount
  @param groupId the group ID
  @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