|
|||||||||
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 useMethod Detail |
---|
public void close() throws java.sql.SQLException
close
in interface Connector
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface Connector
java.sql.SQLException
public java.lang.String getUser()
getUser
in interface Connector
public java.lang.Object clone()
clone
in interface Connector
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |