dbxml.sax
Class JDBCSAXUtil

java.lang.Object
  |
  +--dbxml.sax.JDBCSAXUtil

public class JDBCSAXUtil
extends java.lang.Object

A utility class for simplfying the use of JDBCSAXParser.

Author:
Ramnivas Laddad

Constructor Summary
JDBCSAXUtil()
           
 
Method Summary
static JDBCInputSource setupSourceFromProperties(java.util.Properties dbProperties)
          Create a JDBCInputSource object from information in a property object.
static JDBCInputSource setupSourceFromProperties(java.lang.String propertyFile)
          Create a JDBCInputSource object from information in a property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCSAXUtil

public JDBCSAXUtil()
Method Detail

setupSourceFromProperties

public static JDBCInputSource setupSourceFromProperties(java.lang.String propertyFile)
                                                 throws java.io.IOException,
                                                        java.lang.ClassNotFoundException
Create a JDBCInputSource object from information in a property file. It also loads the specified JDBC driver. The property file must have following entries:
Parameters:
propertyFile - name of property file describing the database source
Returns:
a JDBCInputSource object
Throws:
java.io.IOException - if an i/o error occurs
java.lang.ClassNotFoundException - if an JDBC driver specified cannot be loaded

setupSourceFromProperties

public static JDBCInputSource setupSourceFromProperties(java.util.Properties dbProperties)
                                                 throws java.io.IOException,
                                                        java.lang.ClassNotFoundException
Create a JDBCInputSource object from information in a property object.
Parameters:
dbProperties - A propery object descrbing the JDBC source
Returns:
a JDBCInputSource object
Throws:
java.io.IOException - if an i/o error occurs
java.lang.ClassNotFoundException - if an JDBC driver specified cannot be loaded