code: @Override
  	public CommerceDiscountUsageEntry[] findByGroupId_PrevAndNext(
  		long commerceDiscountUsageEntryId, long groupId,
  		OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
  		throws NoSuchDiscountUsageEntryException {
  		CommerceDiscountUsageEntry commerceDiscountUsageEntry = findByPrimaryKey(commerceDiscountUsageEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceDiscountUsageEntry[] array = new CommerceDiscountUsageEntryImpl[3];
  
  			array[0] = getByGroupId_PrevAndNext(session,
  					commerceDiscountUsageEntry, groupId, orderByComparator, true);
  
  			array[1] = commerceDiscountUsageEntry;
  
  			array[2] = getByGroupId_PrevAndNext(session,
  					commerceDiscountUsageEntry, groupId, orderByComparator,
  					false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
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