code: public static CommerceDiscountUsageEntry[] findByGroupId_PrevAndNext(
  		long commerceDiscountUsageEntryId, long groupId,
  		OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
  		throws com.liferay.commerce.discount.exception.NoSuchDiscountUsageEntryException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(commerceDiscountUsageEntryId,
  			groupId, orderByComparator);
  	}
docs: Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where groupId = &#63;.
  
  @param commerceDiscountUsageEntryId the primary key of the current commerce discount usage entry
  @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 usage entry
  @throws NoSuchDiscountUsageEntryException if a commerce discount usage entry with the primary key could not be found