code: public static CPSpecificationOption[] findByCPOptionCategoryId_PrevAndNext(
  		long CPSpecificationOptionId, long CPOptionCategoryId,
  		OrderByComparator<CPSpecificationOption> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPSpecificationOptionException {
  		return getPersistence()
  				   .findByCPOptionCategoryId_PrevAndNext(CPSpecificationOptionId,
  			CPOptionCategoryId, orderByComparator);
  	}
docs: Returns the cp specification options before and after the current cp specification option in the ordered set where CPOptionCategoryId = &#63;.
  
  @param CPSpecificationOptionId the primary key of the current cp specification option
  @param CPOptionCategoryId the cp option category ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp specification option
  @throws NoSuchCPSpecificationOptionException if a cp specification option with the primary key could not be found