コード例 #1
0
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(CalEvent.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");
  }
コード例 #2
0
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(CalEvent.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");

    return actionableDynamicQuery;
  }