protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) { actionableDynamicQuery.setBaseLocalService( com.liferay.sampleservicebuilder.service.FooLocalServiceUtil.getService()); actionableDynamicQuery.setClassLoader(getClassLoader()); actionableDynamicQuery.setModelClass(Foo.class); actionableDynamicQuery.setPrimaryKeyPropertyName("fooId"); }
public FooActionableDynamicQuery() { setBaseLocalService(FooLocalServiceUtil.getService()); setClass(Foo.class); setClassLoader(com.liferay.sampleservicebuilder.service.ClpSerializer.class.getClassLoader()); setPrimaryKeyPropertyName("fooId"); }
@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; }