code: @Override
  	public CPAttachmentFileEntry[] findByUuid_PrevAndNext(
  		long CPAttachmentFileEntryId, String uuid,
  		OrderByComparator<CPAttachmentFileEntry> orderByComparator)
  		throws NoSuchCPAttachmentFileEntryException {
  		CPAttachmentFileEntry cpAttachmentFileEntry = findByPrimaryKey(CPAttachmentFileEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPAttachmentFileEntry[] array = new CPAttachmentFileEntryImpl[3];
  
  			array[0] = getByUuid_PrevAndNext(session, cpAttachmentFileEntry,
  					uuid, orderByComparator, true);
  
  			array[1] = cpAttachmentFileEntry;
  
  			array[2] = getByUuid_PrevAndNext(session, cpAttachmentFileEntry,
  					uuid, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the cp attachment file entries before and after the current cp attachment file entry in the ordered set where uuid = &#63;.
  
  @param CPAttachmentFileEntryId the primary key of the current cp attachment file entry
  @param uuid the uuid
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp attachment file entry
  @throws NoSuchCPAttachmentFileEntryException if a cp attachment file entry with the primary key could not be found