code: @Override
  	public CommerceNotificationAttachment[] findByUuid_C_PrevAndNext(
  		long commerceNotificationAttachmentId, String uuid, long companyId,
  		OrderByComparator<CommerceNotificationAttachment> orderByComparator)
  		throws NoSuchNotificationAttachmentException {
  		CommerceNotificationAttachment commerceNotificationAttachment = findByPrimaryKey(commerceNotificationAttachmentId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceNotificationAttachment[] array = new CommerceNotificationAttachmentImpl[3];
  
  			array[0] = getByUuid_C_PrevAndNext(session,
  					commerceNotificationAttachment, uuid, companyId,
  					orderByComparator, true);
  
  			array[1] = commerceNotificationAttachment;
  
  			array[2] = getByUuid_C_PrevAndNext(session,
  					commerceNotificationAttachment, uuid, companyId,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce notification attachments before and after the current commerce notification attachment in the ordered set where uuid = &#63; and companyId = &#63;.
  
  @param commerceNotificationAttachmentId the primary key of the current commerce notification attachment
  @param uuid the uuid
  @param companyId the company 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