de.fesenmeyer.dbnormalizer.core
Class DBConfig

java.lang.Object
  extended by de.fesenmeyer.dbnormalizer.core.DBConfig

public class DBConfig
extends Object

DBConfig holds information needed to access a database with a JDBC driver.

Author:
DF

Field Summary
private  String dbURL
          The (JDBC) database url.
private  String driverClassName
          The name of the JDBC-driver class.
private  String driverFileName
          The (absolute or relative) file name of the JDBC-driver jar file.
private  String password
          The password.
private  String username
          The username.
 
Constructor Summary
DBConfig(String dbURL, String username, String password, String driverClassName, String driverFileName)
          Class constructor specifying all properties.
 
Method Summary
 String getDbURL()
          Gets the (JDBC) database url.
 String getDriverClassName()
          Gets the name of the JDBC-driver class
 String getDriverFileName()
          Gets the (absolute or relative) file name of the JDBC-driver jar file.
 String getPassword()
          Gets the password.
 String getUsername()
          Gets the username.
 void setDbURL(String dbURL)
          Sets the (JDBC) database url.
 void setDriverClassName(String driverClassName)
          Sets the name of the JDBC-driver class.
 void setDriverFileName(String driverFileName)
          Sets the (absolute or relative) file name of the JDBC-driver jar file.
 void setPassword(String password)
          Sets the password.
 void setUsername(String username)
          Sets the username
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbURL

private String dbURL
The (JDBC) database url.


username

private String username
The username.


password

private String password
The password.


driverClassName

private String driverClassName
The name of the JDBC-driver class.


driverFileName

private String driverFileName
The (absolute or relative) file name of the JDBC-driver jar file.

Constructor Detail

DBConfig

public DBConfig(String dbURL,
                String username,
                String password,
                String driverClassName,
                String driverFileName)
Class constructor specifying all properties.

Parameters:
dbURL - the (JDBC) database url
username - the username (can be null)
password - the password (can be null)
driverClassName - the name of the JDBC-driver class
driverFileName - the (absolute or relative) file name of the JDBC-driver jar file
Method Detail

getDbURL

public String getDbURL()
Gets the (JDBC) database url.

Returns:
the (JDBC) database url

setDbURL

public void setDbURL(String dbURL)
Sets the (JDBC) database url.

Parameters:
dbURL - the (JDBC) database url

getDriverClassName

public String getDriverClassName()
Gets the name of the JDBC-driver class

Returns:
name of the JDBC-driver class

setDriverClassName

public void setDriverClassName(String driverClassName)
Sets the name of the JDBC-driver class.

Parameters:
driverClassName - the name of the JDBC-driver class

getDriverFileName

public String getDriverFileName()
Gets the (absolute or relative) file name of the JDBC-driver jar file.

Returns:
the (absolute or relative) file name of the JDBC-driver jar file

setDriverFileName

public void setDriverFileName(String driverFileName)
Sets the (absolute or relative) file name of the JDBC-driver jar file.

Parameters:
driverFileName - the (absolute or relative) file name of the JDBC-driver jar file

getPassword

public String getPassword()
Gets the password.

Returns:
the password

setPassword

public void setPassword(String password)
Sets the password.

Parameters:
password - the password

getUsername

public String getUsername()
Gets the username.

Returns:
the username

setUsername

public void setUsername(String username)
Sets the username

Parameters:
username - the username