mulesoft/mule — pull request #377 by dmiorandi (2014-02-13 07:29:40+00:00)
Title: UpdateSqlStatementStrategy does no return number of altered rows

Jdbc connector does not return number of rows altered on update delete insert.
This patched connector simply return an outbound property

```java
message.setOutboundProperty("nbRows", nbRows);
```

```java
/*
* $Id: UpdateSqlStatementStrategyWithRows.java,v 1.1 2012/10/26 08:57:49 d_miorandi Exp $
* --------------------------------------------------------------------------------------
*
* (c) 2003-2010 MuleSoft, Inc. This software is protected under international copyright
* law. All use of this software is subject to MuleSoft's Master Subscription Agreement
* (or other master license agreement) separately entered into in writing between you and
* MuleSoft. If such an agreement is not in place, you may not use the software.
*/

package it.clesius.esb.common.db;

import org.mule.DefaultMuleMessage;
import org.mule.api.MuleEvent;
import org.mule.api.MuleMessage;
import org.mule.api.endpoint.ImmutableEndpoint;
import org.mule.api.transaction.Transaction;
import org.mule.transaction.TransactionCoordination;
import org.mule.transport.jdbc.JdbcConnector;
import org.mule.transport.jdbc.JdbcUtils;
import org.mule.transport.jdbc.sqlstrategy.SqlStatementStrategy;
import org.mule.util.ArrayUtils;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

/**
* Implements strategy for handling individual insert, update, and delete statements
*/
public class UpdateSqlStatementStrategyWithRows implements SqlStatementStrategy
{
protected transient Logger logger = Logger.getLogger(getClass());

@Override
public MuleMessage executeStatement(JdbcConnector connector,
ImmutableEndpoint endpoint, MuleEvent event, long timeout, Connection connection) throws Exception
{
//Unparsed SQL statement (with #[foo] format parameters)
String statement = connector.getStatement(endpoint);

//Storage for parameters
List paramNames = new ArrayList