public int getAttachedFilesCount() throws SystemException {
   return attachedFilePersistence.countAll();
 }
  public AttachedFile updateAttachedFile(AttachedFile attachedFile, boolean merge)
      throws SystemException {
    attachedFile.setNew(false);

    return attachedFilePersistence.update(attachedFile, merge);
  }
 public AttachedFile getAttachedFile(String attachedFileId)
     throws PortalException, SystemException {
   return attachedFilePersistence.findByPrimaryKey(attachedFileId);
 }
 public List<AttachedFile> getAttachedFiles(int start, int end) throws SystemException {
   return attachedFilePersistence.findAll(start, end);
 }
 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
     throws SystemException {
   return attachedFilePersistence.findWithDynamicQuery(dynamicQuery, start, end);
 }
 public void deleteAttachedFile(AttachedFile attachedFile) throws SystemException {
   attachedFilePersistence.remove(attachedFile);
 }
 public void deleteAttachedFile(String attachedFileId) throws PortalException, SystemException {
   attachedFilePersistence.remove(attachedFileId);
 }
 public AttachedFile createAttachedFile(String attachedFileId) {
   return attachedFilePersistence.create(attachedFileId);
 }
  public AttachedFile addAttachedFile(AttachedFile attachedFile) throws SystemException {
    attachedFile.setNew(true);

    return attachedFilePersistence.update(attachedFile, false);
  }