Package org.mule.common.metadata

Examples of org.mule.common.metadata.DefaultMetaData


    }

    @Override
    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
        {
            DefaultSimpleMetaDataModel updateCountModel = new DefaultSimpleMetaDataModel(DataType.DOUBLE);
            defaultMetaData = new DefaultMetaData(updateCountModel);
        }

        return new DefaultResult<MetaData>(defaultMetaData);
    }
View Full Code Here


    }

    @Override
    public Result<MetaData> getOutputMetaData(MetaData metaData)
    {
        DefaultMetaData defaultMetaData;


        MetaDataModel recordModel = new DefaultSimpleMetaDataModel(DataType.DOUBLE);
        ListMetaDataModel listModel = new DefaultListMetaDataModel(recordModel, true);
        defaultMetaData = new DefaultMetaData(listModel);

        return new DefaultResult<MetaData>(defaultMetaData);
    }
View Full Code Here

        DefaultListMetaDataModel listModel = new DefaultListMetaDataModel(recordModel);
        if (streaming)
        {
            listModel.setImplementationClass(ResultSetIterator.class.getName());
        }
        DefaultMetaData defaultMetaData = new DefaultMetaData(listModel);

        return new DefaultResult<MetaData>(defaultMetaData);
    }
View Full Code Here

        Result<MetaData> dynamicInputMetadata = super.getStaticOutputMetadata();

        if (requiresWrappingMetadata(dynamicInputMetadata))
        {
            DefaultListMetaDataModel listModel = new DefaultListMetaDataModel(dynamicInputMetadata.get().getPayload(), true);
            DefaultMetaData defaultMetaData = new DefaultMetaData(listModel);
            return new DefaultResult<MetaData>(defaultMetaData);
        }
        else
        {
            return dynamicInputMetadata;
View Full Code Here

        Result<MetaData> dynamicInputMetadata = super.getDynamicInputMetadata(statement, query);

        if (requiresWrappingMetadata(dynamicInputMetadata))
        {
            DefaultListMetaDataModel listModel = new DefaultListMetaDataModel(dynamicInputMetadata.get().getPayload());
            DefaultMetaData defaultMetaData = new DefaultMetaData(listModel);
            return new DefaultResult<MetaData>(defaultMetaData);
        }
        else
        {
            return dynamicInputMetadata;
View Full Code Here

        {
            recordModels.put(fieldName, getDataTypeMetadataModel(Types.VARCHAR));
        }

        DefaultDefinedMapMetaDataModel recordModel = new DefaultDefinedMapMetaDataModel(recordModels);
        DefaultMetaData defaultMetaData = new DefaultMetaData(recordModel);

        return new DefaultResult<MetaData>(defaultMetaData);
    }
View Full Code Here

            int dataType = parameterMetaData.getParameterType(i++);
            recordModels.put(fieldName, getDataTypeMetadataModel(dataType));
        }

        DefaultDefinedMapMetaDataModel recordModel = new DefaultDefinedMapMetaDataModel(recordModels);
        DefaultMetaData defaultMetaData = new DefaultMetaData(recordModel);

        return new DefaultResult<MetaData>(defaultMetaData);
    }
View Full Code Here

    }
   
    @MetaDataRetriever
    public MetaData getMetadata(MetaDataKey key) throws ClassNotFoundException {
         Class<?> clazz = Class.forName(String.format("%s.%s", ENTITY_PACKAGE, key.getId()));
         return new DefaultMetaData(new DefaultPojoMetaDataModel(clazz));
    }
View Full Code Here

TOP

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

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.