|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.assembler.ConnectionDescription
public class ConnectionDescription
A ConnectionDescription holds the information required to construct an IDBConnection, and can construct that connection on demand.
Field Summary | |
---|---|
java.lang.String |
dbPassword
|
java.lang.String |
dbType
|
java.lang.String |
dbURL
|
java.lang.String |
dbUser
|
java.lang.String |
subject
|
Constructor Summary | |
---|---|
ConnectionDescription(java.lang.String subject,
java.lang.String dbURL,
java.lang.String dbUser,
java.lang.String dbPassword,
java.lang.String dbType)
Initialise a description from the given arguments. |
Method Summary | |
---|---|
static ConnectionDescription |
create(java.lang.String subject,
java.lang.String dbURL,
java.lang.String dbUser,
java.lang.String dbPassword,
java.lang.String dbType)
Answer a description containing the specified components. |
IDBConnection |
getConnection()
Answer the connection specified by the description. |
java.lang.String |
toString()
Answer a descriptive string for this connection object, including whether or not it has already had its connection opened. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String subject
public final java.lang.String dbURL
public final java.lang.String dbUser
public final java.lang.String dbPassword
public final java.lang.String dbType
Constructor Detail |
---|
public ConnectionDescription(java.lang.String subject, java.lang.String dbURL, java.lang.String dbUser, java.lang.String dbPassword, java.lang.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 databaseMethod Detail |
---|
public IDBConnection getConnection()
public static ConnectionDescription create(java.lang.String subject, java.lang.String dbURL, java.lang.String dbUser, java.lang.String dbPassword, java.lang.String dbType)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |