|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.rwt.ConnectionData
public class ConnectionData
A simple bean used to represent different types of database engines that the application can connect to.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
private String |
database
The name of the database to connect to. |
private String |
host
The fully qualified hostname of the database server to connect to. |
private byte[] |
password
The password for the database user to connect as. |
private static String |
PASSWORD_KEY
The key used to encrypt password. |
private int |
port
The port to connect to. |
private String |
userName
The database user to connect as. |
| Constructor Summary | |
|---|---|
protected |
ConnectionData()
Default constructor. |
| Method Summary | |
|---|---|
String |
getDatabase()
Returns database. |
String |
getHost()
Returns host. |
String |
getPassword()
Returns password. |
int |
getPort()
Returns port. |
String |
getUserName()
Returns userName. |
protected void |
setDatabase(String database)
Set database. |
protected void |
setHost(String host)
Set host. |
protected void |
setPassword(String password)
Set password. |
protected void |
setPort(int port)
Set port. |
protected void |
setUserName(String userName)
Set userName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String PASSWORD_KEY
password.
private String host
private String database
private int port
private String userName
private byte[] password
| Constructor Detail |
|---|
protected ConnectionData()
| Method Detail |
|---|
public String getHost()
host.
protected void setHost(String host)
host.
host - The value to set.public String getDatabase()
database.
protected void setDatabase(String database)
database.
database - The value to set.public int getPort()
port.
protected void setPort(int port)
port.
port - The value to set.public String getUserName()
userName.
protected void setUserName(String userName)
userName.
userName - The value to set.
public String getPassword()
throws RuntimeException
password.
RuntimeException - If the password value cannot be decrypted.
protected void setPassword(String password)
throws RuntimeException
password.
password - The value to set.
RuntimeException - If errors are encountered while encrypting the
password value.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||