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