|
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.ConnectionParameters
public class ConnectionParameters
A simple value object used to represent the data required to initiate
a connection to a database. T
be obtained through DataSource or DriverManager.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
String |
database
The name of the database to connect to. |
static String |
DATABASE
The encoded value used to represent the database part of a
JDBC connection url. |
String |
databaseType
The name to use to identify the database engine. |
String |
driver
The fully qualified name of the JDBC driver class. |
String |
host
The fully qualified hostname of the database server to connect to. |
static String |
HOST
The encoded value used to represent the host part of a
JDBC connection url. |
String |
password
The password for the database user to connect as. |
int |
port
The port to connect to. |
static String |
PORT
The encoded value used to represent the port part of a
JDBC connection url. |
String |
urlPattern
The JDBC connection url pattern to use. |
String |
userName
The database user to connect as. |
| Constructor Summary | |
|---|---|
ConnectionParameters(String userName,
String password,
String host,
int port,
String database,
String databaseType,
String urlPattern,
String driver)
Designated constructor. |
|
| Method Summary | |
|---|---|
String |
getUrl()
Return the proper JDBC connection url after replacing place holders in urlPattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HOST
host part of a
JDBC connection url.
"$HOST$"
public static final String PORT
port part of a
JDBC connection url.
"$PORT$"
public static final String DATABASE
database part of a
JDBC connection url.
"$DATABASE$"
public final String host
public final String database
public final int port
public final String userName
public final transient String password
public final String databaseType
public final String urlPattern
$HOST$ etc.
public final String driver
| Constructor Detail |
|---|
public ConnectionParameters(String userName,
String password,
String host,
int port,
String database,
String databaseType,
String urlPattern,
String driver)
userName - The userName value to use.password - The password value to use.host - The host value to use.port - The port value to use.database - The database value to use.urlPattern - The urlPattern value to use.| Method Detail |
|---|
public String getUrl()
urlPattern.
|
SPT RWT Application API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||