Search in sources :

Example 6 with PackageDataModelOracleIncrementalPayload

use of org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleIncrementalPayload in project kie-wb-common by kiegroup.

the class AsyncPackageDataModelOracleImplTest method createPersonPayload.

private PackageDataModelOracleIncrementalPayload createPersonPayload() {
    PackageDataModelOracleIncrementalPayload payload = new PackageDataModelOracleIncrementalPayload();
    HashMap<String, ModelField[]> personModelFields = new HashMap<String, ModelField[]>();
    personModelFields.put("org.test.Person", new ModelField[] { new ModelField("this", "org.test.Person", ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS, ModelField.FIELD_ORIGIN.SELF, FieldAccessorsAndMutators.ACCESSOR, "this"), new ModelField("address", "org.Address", ModelField.FIELD_CLASS_TYPE.REGULAR_CLASS, ModelField.FIELD_ORIGIN.DECLARED, FieldAccessorsAndMutators.BOTH, "Address") });
    payload.setModelFields(personModelFields);
    return payload;
}
Also used : PackageDataModelOracleIncrementalPayload(org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleIncrementalPayload) LazyModelField(org.kie.workbench.common.services.datamodel.model.LazyModelField) ModelField(org.kie.soup.project.datamodel.oracle.ModelField) HashMap(java.util.HashMap)

Aggregations

PackageDataModelOracleIncrementalPayload (org.kie.workbench.common.services.datamodel.model.PackageDataModelOracleIncrementalPayload)6 HashMap (java.util.HashMap)4 ModelField (org.kie.soup.project.datamodel.oracle.ModelField)4 LazyModelField (org.kie.workbench.common.services.datamodel.model.LazyModelField)4 Package (org.guvnor.common.services.project.model.Package)1 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)1 Import (org.kie.soup.project.datamodel.imports.Import)1 PackageDataModelOracle (org.kie.soup.project.datamodel.oracle.PackageDataModelOracle)1 TypeSource (org.kie.soup.project.datamodel.oracle.TypeSource)1 KieModule (org.kie.workbench.common.services.shared.project.KieModule)1