public class RemoteConnector extends java.lang.Object implements Connector
| Constructor and Description |
|---|
RemoteConnector(java.lang.String lookupName)
Constructor taking a lookupName for an InitialContext
to create a connection to a database
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
clone the connector object, not copying the connection
itself.
|
void |
close()
close this connector and the contained connection
|
java.sql.Connection |
getConnection()
get the JDBC connection for this Connector
|
java.lang.String |
getURL()
get the user which is connected to the database
|
java.lang.String |
getUser()
get the user which is connected to the database
|
public RemoteConnector(java.lang.String lookupName)
lookupName - String, the lookup for the connection to usepublic void close()
throws java.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface Connectorjava.sql.SQLExceptionpublic java.lang.String getUser()
public java.lang.String getURL()
Connector