code: public static CPDefinitionInventory[] findByUuid_C_PrevAndNext(
  		long CPDefinitionInventoryId, String uuid, long companyId,
  		OrderByComparator<CPDefinitionInventory> orderByComparator)
  		throws com.liferay.commerce.exception.NoSuchCPDefinitionInventoryException {
  		return getPersistence()
  				   .findByUuid_C_PrevAndNext(CPDefinitionInventoryId, uuid,
  			companyId, orderByComparator);
  	}
docs: Returns the cp definition inventories before and after the current cp definition inventory in the ordered set where uuid = &#63; and companyId = &#63;.
  
  @param CPDefinitionInventoryId the primary key of the current cp definition inventory
  @param uuid the uuid
  @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 inventory
  @throws NoSuchCPDefinitionInventoryException if a cp definition inventory with the primary key could not be found