|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.brains2b.sql.RemoteConnector
public class RemoteConnector
Implementation of Connector to connect to a remote JDBC source, given by a lookup name accessable through an InitialContext
| Constructor Summary | |
|---|---|
RemoteConnector(java.lang.String lookupName)
Constructor taking a lookupName for an InitialContext to create a connection to a database |
|
| Method Summary | |
|---|---|
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 |
getUser()
get the user which is connected to the database |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteConnector(java.lang.String lookupName)
lookupName - String, the lookup for the connection to use| Method Detail |
|---|
public void close()
throws java.sql.SQLException
close in interface Connectorjava.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface Connectorjava.sql.SQLExceptionpublic java.lang.String getUser()
getUser in interface Connectorpublic java.lang.Object clone()
clone in interface Connectorclone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||