protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.calendar.service.CalendarResourceLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(CalendarResource.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.calendar.service.CalendarResourceLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(CalendarResource.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("calendarResourceId");

    return actionableDynamicQuery;
  }
  @Override
  public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
    IndexableActionableDynamicQuery indexableActionableDynamicQuery =
        new IndexableActionableDynamicQuery();

    indexableActionableDynamicQuery.setBaseLocalService(
        com.liferay.calendar.service.CalendarResourceLocalServiceUtil.getService());
    indexableActionableDynamicQuery.setClassLoader(getClassLoader());
    indexableActionableDynamicQuery.setModelClass(CalendarResource.class);

    indexableActionableDynamicQuery.setPrimaryKeyPropertyName("calendarResourceId");

    return indexableActionableDynamicQuery;
  }