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