umich.cac.queryengine
Class DataSource

java.lang.Object
  extended byumich.cac.queryengine.DataSource

public final class DataSource
extends java.lang.Object

DataSource used to hold XML database connection information. Filled in by the QueryEngineDigester class

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/cac/queryengine/DataSource.html,v 1.3 2003/12/18 17:16:08 rodmach Exp $
Author:
rmach@umich.edu

Constructor Summary
DataSource(java.lang.String name, java.lang.String driver, java.lang.String url, java.lang.String userName, java.lang.String password, java.lang.String collection)
          Constructor.
 
Method Summary
 java.lang.String getCollection()
          Returns the collection
 java.lang.String getDriver()
          Returns the driver
 java.lang.String getName()
          Returns the descriptive name
 java.lang.String getPassword()
          Returns the password
 java.lang.String getURL()
          Returns the URL
 java.lang.String getUserName()
          Returns the username
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource(java.lang.String name,
                  java.lang.String driver,
                  java.lang.String url,
                  java.lang.String userName,
                  java.lang.String password,
                  java.lang.String collection)
Constructor.

Parameters:
name - A descriptive name for this connection
driver - The name of the drive, like org.apache.xindice.client.xmldb.DatabaseImpl
url - URL for driver, like xmldb:xindice:///db/
password - the password for this connection, may be null
userName - the username for this connection, may be null
collection - Description of the Parameter
Method Detail

getName

public java.lang.String getName()
Returns the descriptive name

Returns:
The descriptive name

getDriver

public java.lang.String getDriver()
Returns the driver

Returns:
The driver

getURL

public java.lang.String getURL()
Returns the URL

Returns:
the URL

getPassword

public java.lang.String getPassword()
Returns the password

Returns:
The password value @returns the password

getUserName

public java.lang.String getUserName()
Returns the username

Returns:
The userName value @returns the username

getCollection

public java.lang.String getCollection()
Returns the collection

Returns:
The collection value @returns the collection