code: public static CommerceNotificationAttachment[] findByCommerceNotificationQueueEntryId_PrevAndNext(
  		long commerceNotificationAttachmentId,
  		long commerceNotificationQueueEntryId,
  		OrderByComparator<CommerceNotificationAttachment> orderByComparator)
  		throws com.liferay.commerce.notification.exception.NoSuchNotificationAttachmentException {
  		return getPersistence()
  				   .findByCommerceNotificationQueueEntryId_PrevAndNext(commerceNotificationAttachmentId,
  			commerceNotificationQueueEntryId, orderByComparator);
  	}
docs: Returns the commerce notification attachments before and after the current commerce notification attachment in the ordered set where commerceNotificationQueueEntryId = &#63;.
  
  @param commerceNotificationAttachmentId the primary key of the current commerce notification attachment
  @param commerceNotificationQueueEntryId the commerce notification queue entry ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce notification attachment
  @throws NoSuchNotificationAttachmentException if a commerce notification attachment with the primary key could not be found