code: public static CommerceWarehouseItem[] findByCommerceWarehouseId_PrevAndNext(
  		long commerceWarehouseItemId, long commerceWarehouseId,
  		OrderByComparator<CommerceWarehouseItem> orderByComparator)
  		throws com.liferay.commerce.exception.NoSuchWarehouseItemException {
  		return getPersistence()
  				   .findByCommerceWarehouseId_PrevAndNext(commerceWarehouseItemId,
  			commerceWarehouseId, orderByComparator);
  	}
docs: Returns the commerce warehouse items before and after the current commerce warehouse item in the ordered set where commerceWarehouseId = &#63;.
  
  @param commerceWarehouseItemId the primary key of the current commerce warehouse item
  @param commerceWarehouseId the commerce warehouse ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce warehouse item
  @throws NoSuchWarehouseItemException if a commerce warehouse item with the primary key could not be found