org.brains2b.sql
Interface Connector

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
LocalConnector, RemoteConnector

public interface Connector
extends java.lang.Cloneable

Interface to describe a connection to a JDBC source

Version:
1.00 [22-11-2006]
Author:
dennis@brains2b.nl

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
 

Method Detail

getConnection

java.sql.Connection getConnection()
                                  throws java.sql.SQLException
get the JDBC connection for this Connector

Returns:
Connection
Throws:
SQLException, - thrown if the connection produces an error
java.sql.SQLException

close

void close()
           throws java.sql.SQLException
close this connector and the contained connection

Throws:
java.sql.SQLException

getUser

java.lang.String getUser()
get the user which is connected to the database

Returns:
the name of the user connected

clone

java.lang.Object clone()
clone the connector object, not copying the connection itself. Used of the clone connector will thus make a new connection to the database

Returns: