net.sourceforge.sqlunit.handlers
Class ConnectionHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.ConnectionHandler
All Implemented Interfaces:
IHandler

public class ConnectionHandler
extends java.lang.Object
implements IHandler

The ConnectionHandler class creates a JDBC connection object given its parameters in the form of a JDOM Element.

Version:
$Revision: 1.10 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
ConnectionHandler()
           
 
Method Summary
 java.util.Map getLastConnectionProperties()
          Returns the last connection's properties.
 java.lang.Object process(org.jdom.Element elConn)
          Processes the JDOM Element and returns a JDBC Connection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHandler

public ConnectionHandler()
Method Detail

getLastConnectionProperties

public final java.util.Map getLastConnectionProperties()
Returns the last connection's properties.

Returns:
the last connection's properties as a Map.

process

public final java.lang.Object process(org.jdom.Element elConn)
                               throws java.lang.Exception
Processes the JDOM Element and returns a JDBC Connection object.

Specified by:
process in interface IHandler
Parameters:
elConn - the JDOM Element representing the Connection parameters.
Returns:
the Connection object.
Throws:
java.lang.Exception - if something goes wrong with the creating.