Package org.mule.module.db.internal.parser

Examples of org.mule.module.db.internal.parser.SimpleQueryTemplateParser


        List<BeanDefinition> params = parseStoreProcedureParams(paramElements, nestedCtx);

        BeanDefinitionBuilder queryTemplateFactory = BeanDefinitionBuilder.genericBeanDefinition(ParameterizedQueryTemplateFactoryBean.class);
        queryTemplateFactory.addConstructorArgValue(queryElement.getTextContent());
        queryTemplateFactory.addConstructorArgValue(params);
        queryTemplateFactory.addConstructorArgValue(new SimpleQueryTemplateParser());

        BeanDefinitionBuilder queryBean = BeanDefinitionBuilder.genericBeanDefinition(Query.class);
        queryBean.addConstructorArgValue(queryTemplateFactory.getBeanDefinition());

        return queryBean.getBeanDefinition();
View Full Code Here


    @Override
    public BulkQueryResolver getObject() throws Exception
    {
        if (context.getExpressionManager().isExpression(bulkQuery))
        {
            return new DynamicBulkQueryResolver(bulkQuery, new SimpleQueryTemplateParser(), context.getExpressionManager());
        }
        else
        {
            return new StaticBulkQueryResolver(bulkQuery, new SimpleQueryTemplateParser());
        }
    }
View Full Code Here

        }
        else
        {
            bulkQueryResolver = BeanDefinitionBuilder.genericBeanDefinition(FileBulkQueryResolver.class);
            bulkQueryResolver.addConstructorArgValue(file);
            bulkQueryResolver.addConstructorArgValue(new SimpleQueryTemplateParser());
            bulkQueryResolver.addConstructorArgValue(new DefaultFileReader());
        }

        builder.addConstructorArgValue(bulkQueryResolver.getBeanDefinition());
    }
View Full Code Here

            params.add(paramBean);
        }

        queryTemplateFactory.addConstructorArgValue(params);
        queryTemplateFactory.addConstructorArgValue(new SimpleQueryTemplateParser());

        builder.addConstructorArgValue(queryTemplateFactory.getBeanDefinition());
    }
View Full Code Here

    @Override
    public QueryResolver getObject() throws Exception
    {
        if (isDynamic(query))
        {
            return new DynamicQueryResolver(query, new SimpleQueryTemplateParser(), muleContext.getExpressionManager());
        }
        else if (hasParameters(query))
        {
            return new ParametrizedQueryResolver(query, paramValueResolver);
        }
View Full Code Here

TOP

Related Classes of org.mule.module.db.internal.parser.SimpleQueryTemplateParser

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.