tppt.db
Class DBSetting

java.lang.Object
  |
  +--tppt.db.DBSetting

public class DBSetting
extends java.lang.Object

DBSetting is used to store the JDBC setting information for specific DBMS.

Version:
2.0
Author:
Jodie Wu

Field Summary
private  java.lang.String dbname
          The name of DB.
private  java.lang.String driver
          The JDBC driver string
private  java.lang.String id
          The user id
private  java.lang.String multi_url
          The JDBC url string for multi-user mode
private  java.lang.String passd
          The password
private  java.lang.String proxy
          The proxy machine url string
private  java.lang.String single_url
          The JDBC url string for single-user mode
 
Constructor Summary
DBSetting(java.lang.String name)
          Constructs the DBSetting with the specified db name.
 
Method Summary
 java.lang.String getDBName()
          Gets the name of DBMS for this DBSetting object.
 java.lang.String getId()
          Gets the user id.
 java.lang.String getJDBCDriver()
          Gets the JDBC driver string.
 java.lang.String getMultiJDBCURL()
          Gets the JDBC url string for multi-user mode.
 java.lang.String getPassd()
          Gets the db password.
 java.lang.String getProxy()
          Gets the proxy url string
 java.lang.String getSingleJDBCURL()
          Gets the JDBC url string for single-user mode.
 void setId(java.lang.String id)
          Set up the user id.
 void setJDBCDriver(java.lang.String driver)
          Set the JDBC driver.
 void setMultiJDBCURL(java.lang.String url)
          Set up the JDBC url string for the multi-user mode.
 void setPassd(java.lang.String passd)
          Set up the password.
 void setProxy(java.lang.String proxy)
          Set up the proxy.
 void setSingleJDBCURL(java.lang.String url)
          Set up the JDBC url string for the single-user mode.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dbname

private java.lang.String dbname
The name of DB. "DB2" or "SYBASE".

driver

private java.lang.String driver
The JDBC driver string

multi_url

private java.lang.String multi_url
The JDBC url string for multi-user mode

single_url

private java.lang.String single_url
The JDBC url string for single-user mode

proxy

private java.lang.String proxy
The proxy machine url string

id

private java.lang.String id
The user id

passd

private java.lang.String passd
The password
Constructor Detail

DBSetting

public DBSetting(java.lang.String name)
Constructs the DBSetting with the specified db name.
Parameters:
name - the name of DBMS. DB2 or SYBASE
Method Detail

setJDBCDriver

public void setJDBCDriver(java.lang.String driver)
Set the JDBC driver.
Parameters:
driver - the jdbc driver string

setMultiJDBCURL

public void setMultiJDBCURL(java.lang.String url)
Set up the JDBC url string for the multi-user mode.
Parameters:
url - the url string

setSingleJDBCURL

public void setSingleJDBCURL(java.lang.String url)
Set up the JDBC url string for the single-user mode.
Parameters:
url - the url string

setProxy

public void setProxy(java.lang.String proxy)
Set up the proxy.
Parameters:
proxy - the proxy url string.

setId

public void setId(java.lang.String id)
Set up the user id.
Parameters:
id - user id

setPassd

public void setPassd(java.lang.String passd)
Set up the password.
Parameters:
passd - the db password.

getId

public java.lang.String getId()
Gets the user id.
Returns:
the db user id.

getPassd

public java.lang.String getPassd()
Gets the db password.
Returns:
the password.

getDBName

public java.lang.String getDBName()
Gets the name of DBMS for this DBSetting object.
Returns:
the name of dbms

getJDBCDriver

public java.lang.String getJDBCDriver()
Gets the JDBC driver string.
Returns:
the jdbc driver.

getMultiJDBCURL

public java.lang.String getMultiJDBCURL()
Gets the JDBC url string for multi-user mode.
Returns:
the url string

getSingleJDBCURL

public java.lang.String getSingleJDBCURL()
Gets the JDBC url string for single-user mode.
Returns:
the url string

getProxy

public java.lang.String getProxy()
Gets the proxy url string
Returns:
the url string.