code: public static CPAttachmentFileEntry fetchByC_C_LtD_S_Last(
  		long classNameId, long classPK, Date displayDate, int status,
  		OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
  		return getPersistence()
  				   .fetchByC_C_LtD_S_Last(classNameId, classPK, displayDate,
  			status, orderByComparator);
  	}
docs: Returns the last cp attachment file entry in the ordered set where classNameId = &#63; and classPK = &#63; and displayDate &lt; &#63; and status = &#63;.
  
  @param classNameId the class name ID
  @param classPK the class pk
  @param displayDate the display date
  @param status the status
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the last matching cp attachment file entry, or <code>null</code> if a matching cp attachment file entry could not be found