code: public static CommerceNotificationQueueEntry[] findByGroupId_PrevAndNext(
  		long commerceNotificationQueueEntryId, long groupId,
  		OrderByComparator<CommerceNotificationQueueEntry> orderByComparator)
  		throws com.liferay.commerce.notification.exception.NoSuchNotificationQueueEntryException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(commerceNotificationQueueEntryId,
  			groupId, orderByComparator);
  	}
docs: Returns the commerce notification queue entries before and after the current commerce notification queue entry in the ordered set where groupId = &#63;.
  
  @param commerceNotificationQueueEntryId the primary key of the current commerce notification queue entry
  @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 notification queue entry
  @throws NoSuchNotificationQueueEntryException if a commerce notification queue entry with the primary key could not be found