docs: @Override
  	public CPAttachmentFileEntry[] findByC_C_LtD_S_PrevAndNext(
  		long CPAttachmentFileEntryId, long classNameId, long classPK,
  		Date displayDate, int status,
  		OrderByComparator<CPAttachmentFileEntry> orderByComparator)
  		throws NoSuchCPAttachmentFileEntryException {
  		CPAttachmentFileEntry cpAttachmentFileEntry = findByPrimaryKey(CPAttachmentFileEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CPAttachmentFileEntry[] array = new CPAttachmentFileEntryImpl[3];
  
  			array[0] = getByC_C_LtD_S_PrevAndNext(session,
  					cpAttachmentFileEntry, classNameId, classPK, displayDate,
  					status, orderByComparator, true);
  
  			array[1] = cpAttachmentFileEntry;
  
  			array[2] = getByC_C_LtD_S_PrevAndNext(session,
  					cpAttachmentFileEntry, classNameId, classPK, displayDate,
  					status, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}