protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(DLFileRank.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("fileRankId");
  }
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(DLFileRank.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("fileRankId");

    return actionableDynamicQuery;
  }