Examples of SqlStatementStrategy


Examples of org.mule.transport.jdbc.sqlstrategy.SqlStatementStrategy

        // Use a strategy pattern to choose a particular strategy to handle the SQL request
        JdbcConnector jdbcConnector = (JdbcConnector) endpoint.getConnector();
        String statement = jdbcConnector.getStatement(endpoint);
        Object payload = event.getMessage().getPayload();
       
        SqlStatementStrategy strategy =
            jdbcConnector.getSqlStatementStrategyFactory().create(statement, payload);
        return strategy.executeStatement(jdbcConnector, endpoint, event, event.getTimeout());
    }
View Full Code Here

Examples of org.mule.transport.jdbc.sqlstrategy.SqlStatementStrategy

     * @throws Exception if the call to the underlying protocol causes an exception
     */
    protected MuleMessage doRequest(long timeout, MuleEvent event) throws Exception
    {
        String statement = connector.getStatement(endpoint);
        SqlStatementStrategy strategy = connector.getSqlStatementStrategyFactory().create(statement, null);
        return strategy.executeStatement(connector, endpoint, event, timeout);       
    }
View Full Code Here

Examples of org.mule.transport.jdbc.sqlstrategy.SqlStatementStrategy

     * @throws Exception if the call to the underlying protocol causes an exception
     */
    protected MuleMessage doRequest(long timeout, MuleEvent event) throws Exception
    {
        String statement = connector.getStatement(endpoint);
        SqlStatementStrategy strategy = connector.getSqlStatementStrategyFactory().create(statement, null);
        Connection connection = connector.getConnection();
        return sqlStatementExecutor.execute(strategy,connector, endpoint, event, timeout, connection);
    }
View Full Code Here

Examples of org.mule.transport.jdbc.sqlstrategy.SqlStatementStrategy

        // Use a strategy pattern to choose a particular strategy to handle the SQL request
        JdbcConnector jdbcConnector = (JdbcConnector) endpoint.getConnector();
        String statement = jdbcConnector.getStatement(endpoint);
        Object payload = event.getMessage().getPayload();
       
        SqlStatementStrategy strategy =
            jdbcConnector.getSqlStatementStrategyFactory().create(statement, payload);
        Connection connection = (Connection) connector.getTransactionalResource(endpoint);
        return sqlStatementExecutor.execute(strategy,jdbcConnector, endpoint, event, event.getTimeout(), connection);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.