public class ConnectionDescription extends Object
Modifier and Type | Field and Description |
---|---|
String |
dbPassword |
String |
dbType |
String |
dbURL |
String |
dbUser |
String |
subject |
Constructor and Description |
---|
ConnectionDescription(String subject,
String dbURL,
String dbUser,
String dbPassword,
String dbType)
Initialise a description from the given arguments.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionDescription |
create(String subject,
String dbURL,
String dbUser,
String dbPassword,
String dbType)
Answer a description containing the specified components.
|
IDBConnection |
getConnection()
Answer the connection specified by the description.
|
String |
toString()
Answer a descriptive string for this connection object, including whether or
not it has already had its connection opened.
|
public final String subject
public final String dbURL
public final String dbUser
public final String dbPassword
public final String dbType
public ConnectionDescription(String subject, String dbURL, String dbUser, String dbPassword, String dbType)
subject
- the URI of the subject node from which this description is createddbURL
- the URL of the database to connect todbUser
- the name of the user authorising the connectiondbPassword
- the password of that userdbType
- the type of the databasepublic IDBConnection getConnection()
public static ConnectionDescription create(String subject, String dbURL, String dbUser, String dbPassword, String dbType)
public String toString()
toString
in class Object
Object.toString()
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP