protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(DDMContent.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("contentId");
  }
  public DDMContentActionableDynamicQuery() throws SystemException {
    setBaseLocalService(DDMContentLocalServiceUtil.getService());
    setClass(DDMContent.class);

    setClassLoader(PortalClassLoaderUtil.getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(DDMContent.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("contentId");

    return actionableDynamicQuery;
  }