code: public static CPOptionCategory[] findByCompanyId_PrevAndNext(
  		long CPOptionCategoryId, long companyId,
  		OrderByComparator<CPOptionCategory> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPOptionCategoryException {
  		return getPersistence()
  				   .findByCompanyId_PrevAndNext(CPOptionCategoryId, companyId,
  			orderByComparator);
  	}
docs: Returns the cp option categories before and after the current cp option category in the ordered set where companyId = &#63;.
  
  @param CPOptionCategoryId the primary key of the current cp option category
  @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 option category
  @throws NoSuchCPOptionCategoryException if a cp option category with the primary key could not be found