uk.ac.starlink.table.jdbc.Connector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stil Show documentation
Show all versions of stil Show documentation
Starlink Tables Infrastructure Library
package uk.ac.starlink.table.jdbc;
import java.sql.Connection;
import java.sql.SQLException;
/**
* Interface for objects which can supply a JDBC Connection to
* a single database.
*
* Should its use be replaced by use of the similar but bigger
* (and beany) javax.sql.DataSource interface?
*/
public interface Connector {
/**
* Returns a JDBC Connection object.
*
* @return a connection
*/
Connection getConnection() throws SQLException;
}