コード例 #1
0
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.sampleservicebuilder.service.FooLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Foo.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("fooId");
  }
コード例 #2
0
  public FooActionableDynamicQuery() {
    setBaseLocalService(FooLocalServiceUtil.getService());
    setClass(Foo.class);

    setClassLoader(com.liferay.sampleservicebuilder.service.ClpSerializer.class.getClassLoader());

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

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.sampleservicebuilder.service.FooLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Foo.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("fooId");

    return actionableDynamicQuery;
  }