|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tppt.db.DBSetting
DBSetting
is used to store the JDBC setting information
for specific DBMS.
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 |
|
Field Detail |
private java.lang.String dbname
private java.lang.String driver
private java.lang.String multi_url
private java.lang.String single_url
private java.lang.String proxy
private java.lang.String id
private java.lang.String passd
Constructor Detail |
public DBSetting(java.lang.String name)
name
- the name of DBMS. DB2 or SYBASEMethod Detail |
public void setJDBCDriver(java.lang.String driver)
driver
- the jdbc driver stringpublic void setMultiJDBCURL(java.lang.String url)
url
- the url stringpublic void setSingleJDBCURL(java.lang.String url)
url
- the url stringpublic void setProxy(java.lang.String proxy)
proxy
- the proxy url string.public void setId(java.lang.String id)
id
- user idpublic void setPassd(java.lang.String passd)
passd
- the db password.public java.lang.String getId()
public java.lang.String getPassd()
public java.lang.String getDBName()
DBSetting
object.public java.lang.String getJDBCDriver()
public java.lang.String getMultiJDBCURL()
public java.lang.String getSingleJDBCURL()
public java.lang.String getProxy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |