code: public Object[] executeMultiplePreparedStatements(String[] statements, Collection inParams) throws SQLException {
  		Object[] result;
  		if (statements.length == inParams.size()) {
  			result = new Object[inParams.size()];
  			Connection conn = null;
  
  			conn = dataSource.getConnection();
  			conn.setAutoCommit(false);
  
  			try {
  				Iterator inParamsIt = inParams.iterator();
  				int count = 0;
  				while (inParamsIt.hasNext()) {
  					Object[] params = (Object[]) inParamsIt.next();
  					result[count] = executePreparedStatement(statements[count], new StatementInput(params), false, conn);
  					count++;
  				}
  				conn.commit();
  			} catch (SQLException e) {
  				throw e;
  			} finally {
  				if (conn != null) {
  					conn.close();
  				}
  			}
  		} else {
  			throw new SQLException("number of arguments doesn't match");
  		}
  		return result;
  	}
docs: //////////////////////////////////////