protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portal.service.ResourceBlockPermissionLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(ResourceBlockPermission.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portal.service.ResourceBlockPermissionLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(ResourceBlockPermission.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("resourceBlockPermissionId");

    return actionableDynamicQuery;
  }