com.cafesoft.core.jdbc
Class DatasourceConfig

java.lang.Object
  |
  +--com.cafesoft.core.jdbc.DatasourceConfig

public class DatasourceConfig
extends Object

Encapsulates a set of JDBC parameters for a DataSource.

Since:
10/12/01

Field Summary
protected  String dsDriver
          The driver to use to connect to the datasource.
protected  String dsPassword
          The user's password for the datasource.
protected  String dsUrl
          The Url of the datasource.
protected  String dsUser
          The user to connect to the datasource.
 
Constructor Summary
DatasourceConfig(String dsDriver, String dsUrl, String dsUser, String dsPassword)
          Create a new DatasourceConfig object.
 
Method Summary
 String getDriver()
          Get the JDBC Driver.
 String getPassword()
          Get the JDBC Password.
 String getUrl()
          Get the JDBC URL.
 String getUser()
          Get the JDBC User.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsDriver

protected String dsDriver
The driver to use to connect to the datasource.


dsUrl

protected String dsUrl
The Url of the datasource.


dsUser

protected String dsUser
The user to connect to the datasource.


dsPassword

protected String dsPassword
The user's password for the datasource.

Constructor Detail

DatasourceConfig

public DatasourceConfig(String dsDriver,
                        String dsUrl,
                        String dsUser,
                        String dsPassword)
Create a new DatasourceConfig object.

Parameters:
dsDriver - - the JDBC Datasource Driver.
dsUrl - - the JDBC Datasource URL (e.g. "jdbc:odbc:gooberdb").
dsUser - - the JDBC Datasource user name.
dsPassword - - the JDBC Datasource user password.
Method Detail

getDriver

public String getDriver()
Get the JDBC Driver.

Returns:
the JDBC Driver parameter.

getUrl

public String getUrl()
Get the JDBC URL.

Returns:
the JDBC URL parameter.

getUser

public String getUser()
Get the JDBC User.

Returns:
the JDBC User parameter.

getPassword

public String getPassword()
Get the JDBC Password.

Returns:
the JDBC Password parameter.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.