code: public static CPDefinitionOptionRel[] findByCompanyId_PrevAndNext(
  		long CPDefinitionOptionRelId, long companyId,
  		OrderByComparator<CPDefinitionOptionRel> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPDefinitionOptionRelException {
  		return getPersistence()
  				   .findByCompanyId_PrevAndNext(CPDefinitionOptionRelId,
  			companyId, orderByComparator);
  	}
docs: Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where companyId = &#63;.
  
  @param CPDefinitionOptionRelId the primary key of the current cp definition option rel
  @param companyId the company 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