code: public static CPAttachmentFileEntry fetchByC_C_T_ST_First(
  		long classNameId, long classPK, int type, int status,
  		OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
  		return getPersistence()
  				   .fetchByC_C_T_ST_First(classNameId, classPK, type, status,
  			orderByComparator);
  	}
docs: Returns the first cp attachment file entry in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and status = &#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