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