code: public static CPDefinitionSpecificationOptionValue[] findByGroupId_PrevAndNext(
  		long CPDefinitionSpecificationOptionValueId, long groupId,
  		OrderByComparator<CPDefinitionSpecificationOptionValue> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPDefinitionSpecificationOptionValueException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(CPDefinitionSpecificationOptionValueId,
  			groupId, orderByComparator);
  	}
docs: Returns the cp definition specification option values before and after the current cp definition specification option value in the ordered set where groupId = &#63;.
  
  @param CPDefinitionSpecificationOptionValueId the primary key of the current cp definition specification option value
  @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 specification option value
  @throws NoSuchCPDefinitionSpecificationOptionValueException if a cp definition specification option value with the primary key could not be found