Package org.mule.module.db.internal.domain.statement

Examples of org.mule.module.db.internal.domain.statement.QueryStatementFactory


        builder.addPropertyValue("target", element.getAttribute("target"));
    }

    protected Object parseStatementFactory(Element element)
    {
        QueryStatementFactory defaultStatementFactory = new QueryStatementFactory();

        if (element.hasAttribute(MAX_ROWS_ATTRIBUTE))
        {
            defaultStatementFactory.setMaxRows(Integer.parseInt(element.getAttribute(MAX_ROWS_ATTRIBUTE)));
        }

        if (element.hasAttribute(FETCH_SIZE))
        {
            defaultStatementFactory.setFetchSize(Integer.parseInt(element.getAttribute(FETCH_SIZE)));
        }
        else if (streaming)
        {
            logger.warn("Streaming mode needs to configure fetchSize property. Using default value: " + DEFAULT_FETCH_SIZE);
            defaultStatementFactory.setFetchSize(DEFAULT_FETCH_SIZE);
        }

        return defaultStatementFactory;
    }
View Full Code Here

TOP

Related Classes of org.mule.module.db.internal.domain.statement.QueryStatementFactory

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.