Search in sources :

Example 1 with FullExampleDatasetProperties

use of org.talend.components.service.rest.fullexample.dataset.FullExampleDatasetProperties in project components by Talend.

the class FullExampleComponentTestIT method createDatasetDatastoreSerPropertiesDto.

private SerPropertiesDto createDatasetDatastoreSerPropertiesDto() {
    FullExampleDatastoreProperties datastoreProperties = new FullExampleDatastoreProperties("foo");
    datastoreProperties.init();
    datastoreProperties.tag.setValue("DERBY");
    FullExampleDatasetProperties datasetProperties = new FullExampleDatasetProperties("bar");
    datasetProperties.init();
    datasetProperties.sourceType.setValue(SourceType.SOQL_QUERY);
    datasetProperties.moduleName.setValue("Account");
    datasetProperties.query.setValue("SELECT * FROM users");
    SerPropertiesDto serPropertiesDto = new SerPropertiesDto();
    serPropertiesDto.setProperties(datasetProperties.toSerialized());
    serPropertiesDto.setDependencies(Collections.singletonList(datastoreProperties.toSerialized()));
    return serPropertiesDto;
}
Also used : FullExampleDatasetProperties(org.talend.components.service.rest.fullexample.dataset.FullExampleDatasetProperties) FullExampleDatastoreProperties(org.talend.components.service.rest.fullexample.datastore.FullExampleDatastoreProperties) SerPropertiesDto(org.talend.components.service.rest.dto.SerPropertiesDto)

Aggregations

SerPropertiesDto (org.talend.components.service.rest.dto.SerPropertiesDto)1 FullExampleDatasetProperties (org.talend.components.service.rest.fullexample.dataset.FullExampleDatasetProperties)1 FullExampleDatastoreProperties (org.talend.components.service.rest.fullexample.datastore.FullExampleDatastoreProperties)1