code: @Override
  	public CPAttachmentFileEntry fetchByC_C_T_NotST_First(long classNameId,
  		long classPK, int type, int status,
  		OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
  		List<CPAttachmentFileEntry> list = findByC_C_T_NotST(classNameId,
  				classPK, type, status, 0, 1, orderByComparator);
  
  		if (!list.isEmpty()) {
  			return list.get(0);
  		}
  
  		return null;
  	}
docs: Returns the first cp attachment file entry in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and status &ne; &#63;.
  
  @param classNameId the class name ID
  @param classPK the class pk
  @param type the type
  @param status the status
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the first matching cp attachment file entry, or <code>null</code> if a matching cp attachment file entry could not be found