org.mule.providers.jdbc
Class JdbcUtils

java.lang.Object
  extended byorg.mule.providers.jdbc.JdbcUtils

public abstract class JdbcUtils
extends Object

Version:
$Revision: 3397 $
Author:
Ross Mason, Guillaume Nodet

Constructor Summary
JdbcUtils()
           
 
Method Summary
static void close(Connection con)
           
static void commitAndClose(Connection con)
           
static Object[] getParams(org.mule.umo.endpoint.UMOImmutableEndpoint endpoint, List paramNames, Object root)
           
static String parseStatement(String stmt, List params)
          Parse the given statement filling the parameter list and return the ready to use statement.
static void rollbackAndClose(Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcUtils

public JdbcUtils()
Method Detail

close

public static void close(Connection con)
                  throws SQLException
Throws:
SQLException

commitAndClose

public static void commitAndClose(Connection con)
                           throws SQLException
Throws:
SQLException

rollbackAndClose

public static void rollbackAndClose(Connection con)
                             throws SQLException
Throws:
SQLException

parseStatement

public static String parseStatement(String stmt,
                                    List params)
Parse the given statement filling the parameter list and return the ready to use statement.

Parameters:
stmt -
params -
Returns:

getParams

public static Object[] getParams(org.mule.umo.endpoint.UMOImmutableEndpoint endpoint,
                                 List paramNames,
                                 Object root)
                          throws Exception
Throws:
Exception


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.