org.enableit.db
Class AbstractDBUtility

java.lang.Object
  |
  +--org.enableit.db.AbstractDBUtility
Direct Known Subclasses:
DataLoader

public abstract class AbstractDBUtility
extends java.lang.Object

Base class for utilities that need to connect to database.


Field Summary
protected  java.lang.String driver
          The JDBC driver's class name.
protected  java.lang.String password
          Password to use when connecting to the database.
protected  java.lang.String url
          The database URL to connect to.
protected  java.lang.String userid
          Username to use when connecting to the database.
 
Constructor Summary
AbstractDBUtility()
          Default Constructor.
 
Method Summary
 void setConnectionProperties(java.lang.String driver, java.lang.String url, java.lang.String userid, java.lang.String password)
          Export the schema identified by the provided connection parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

protected java.lang.String driver
The JDBC driver's class name.


url

protected java.lang.String url
The database URL to connect to.


userid

protected java.lang.String userid
Username to use when connecting to the database.


password

protected java.lang.String password
Password to use when connecting to the database.

Constructor Detail

AbstractDBUtility

public AbstractDBUtility()
Default Constructor.

Method Detail

setConnectionProperties

public void setConnectionProperties(java.lang.String driver,
                                    java.lang.String url,
                                    java.lang.String userid,
                                    java.lang.String password)
Export the schema identified by the provided connection parameters.

Parameters:
driver - Name of JDBC driver class.
url - The JDBC datasource's URL.
userid - The user id to connect with.
password - The password to connect with.


Copyright © 1999-2004 enableIT.org. All Rights Reserved.