org.opennms.bb.common.components
Class BBDataRetriever

java.lang.Object
  |
  +--org.opennms.bb.common.components.BBDataRetriever
Direct Known Subclasses:
DiscKnownNodesRetriever

public abstract class BBDataRetriever
extends Object

BBDataRetriever is the base for classes connecting to the database. The class contains the JDBC DriverManager fully qualified class path along with the database URL and authentication information.

Version:
$Revision: 1.3 $
Author:
Sowmya, OpenNMS

Field Summary
protected  String driver
          Fully qualified class name for the JDBC driver for the SQL driver manager.
protected  String passwd
          The password for the authenticating user.
protected  String url
          The Uniform Resource Locator (URL) for connecting to the database.
protected  String user
          The name of the user for authentication purposes when connecting to the database.
 
Constructor Summary
protected BBDataRetriever(String driverName, String url, String user, String passwd)
          This constructor should be called by any derived class to initialize the base class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

driver

protected String driver

Fully qualified class name for the JDBC driver for the SQL driver manager.


url

protected String url

The Uniform Resource Locator (URL) for connecting to the database. This URL will be used by the DriverManager to connect to the remote/local Database.


user

protected String user

The name of the user for authentication purposes when connecting to the database.


passwd

protected String passwd

The password for the authenticating user.

Constructor Detail

BBDataRetriever

protected BBDataRetriever(String driverName,
                          String url,
                          String user,
                          String passwd)

This constructor should be called by any derived class to initialize the base class. Since the member variables may only be accessed by a derived class the constructor is marked as protected also.

Parameters:
driverName - The fully qualified class name of the JDBC driver.
url - The URL of the database for connection purposes.
user - The username for authentication.
passwd - The user's password for authentication.