org.mule.providers.jdbc
Class JdbcUtils

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

public abstract class JdbcUtils
extends java.lang.Object

Version:
$Revision: 1.2 $
Author:
Guillaume Nodet

Constructor Summary
JdbcUtils()
           
 
Method Summary
static void close(java.sql.Connection con)
           
static void commitAndClose(java.sql.Connection con)
           
static java.lang.Object[] getParams(UMOEndpointURI uri, java.util.List paramNames, java.lang.Object root)
           
static java.lang.String parseStatement(java.lang.String stmt, java.util.List params)
          Parse the given statement filling the parameter list and return the ready to use statement.
static void rollbackAndClose(java.sql.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(java.sql.Connection con)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

commitAndClose

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

rollbackAndClose

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

parseStatement

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

Parameters:
stmt -
params -
Returns:

getParams

public static java.lang.Object[] getParams(UMOEndpointURI uri,
                                           java.util.List paramNames,
                                           java.lang.Object root)
                                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.