code: public static CommerceDiscountRel[] findByCommerceDiscountId_PrevAndNext(
  		long commerceDiscountRelId, long commerceDiscountId,
  		OrderByComparator<CommerceDiscountRel> orderByComparator)
  		throws com.liferay.commerce.discount.exception.NoSuchDiscountRelException {
  		return getPersistence()
  				   .findByCommerceDiscountId_PrevAndNext(commerceDiscountRelId,
  			commerceDiscountId, orderByComparator);
  	}
docs: Returns the commerce discount rels before and after the current commerce discount rel in the ordered set where commerceDiscountId = &#63;.
  
  @param commerceDiscountRelId the primary key of the current commerce discount rel
  @param commerceDiscountId the commerce discount ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce discount rel
  @throws NoSuchDiscountRelException if a commerce discount rel with the primary key could not be found