public interface Connector
extends java.lang.Cloneable, java.lang.AutoCloseable
| 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
|
java.sql.Connection getConnection()
throws java.sql.SQLException
SQLException, - thrown if the connection
produces an errorjava.sql.SQLExceptionvoid close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseablejava.sql.SQLExceptionjava.lang.String getUser()
java.lang.String getURL()
java.lang.Object clone()