protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.mobile.device.rules.service.MDRRuleLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(MDRRule.class);

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.mobile.device.rules.service.MDRRuleLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(MDRRule.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("ruleId");

    return actionableDynamicQuery;
  }