Package org.mule.common.metadata

Examples of org.mule.common.metadata.DefaultParameterizedMapMetaDataModel


    public Result<MetaData> getStaticOutputMetadata()
    {
        DefaultMetaData defaultMetaData;
        if (autoGeneratedKeyStrategy != null && autoGeneratedKeyStrategy.returnsAutoGeneratedKeys())
        {
            MetaDataModel recordModel = new DefaultParameterizedMapMetaDataModel(new DefaultSimpleMetaDataModel(DataType.STRING), new DefaultPojoMetaDataModel(Object.class));
            DefaultListMetaDataModel listModel = new DefaultListMetaDataModel(recordModel);
            defaultMetaData = new DefaultMetaData(listModel);
        }
        else
        {
View Full Code Here


        DefaultListMetaDataModel listMetaDataModel = (DefaultListMetaDataModel) outputMetaData.get().getPayload();
        assertThat(listMetaDataModel.isArray(), equalTo(true));

        DefaultListMetaDataModel innerListMetaDataModel = (DefaultListMetaDataModel) listMetaDataModel.getElementModel();
        assertEquals(ArrayList.class.getName(), innerListMetaDataModel.getImplementationClass());
        DefaultParameterizedMapMetaDataModel mapMetaDataModel = (DefaultParameterizedMapMetaDataModel) innerListMetaDataModel.getElementModel();
        assertEquals(DataType.STRING, mapMetaDataModel.getKeyMetaDataModel().getDataType());
        assertEquals(DataType.POJO, mapMetaDataModel.getValueMetaDataModel().getDataType());
    }
View Full Code Here

        AbstractSingleQueryDbMessageProcessor queryMessageProcessor = (AbstractSingleQueryDbMessageProcessor) messageProcessors.get(0);
        Result<MetaData> outputMetaData = queryMessageProcessor.getOutputMetaData(null);

        DefaultListMetaDataModel listMetaDataModel = (DefaultListMetaDataModel) outputMetaData.get().getPayload();
        assertEquals(ArrayList.class.getName(), listMetaDataModel.getImplementationClass());
        DefaultParameterizedMapMetaDataModel mapMetaDataModel = (DefaultParameterizedMapMetaDataModel) listMetaDataModel.getElementModel();
        assertEquals(DataType.STRING, mapMetaDataModel.getKeyMetaDataModel().getDataType());
        assertEquals(DataType.POJO, mapMetaDataModel.getValueMetaDataModel().getDataType());
    }
View Full Code Here

TOP

Related Classes of org.mule.common.metadata.DefaultParameterizedMapMetaDataModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.