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