de.akquinet.jbosscc.guttenbase.connector.Connector Maven / Gradle / Ivy
package de.akquinet.jbosscc.guttenbase.connector;
import java.sql.Connection;
import java.sql.SQLException;
import de.akquinet.jbosscc.guttenbase.meta.DatabaseMetaData;
/**
* Connectors maintain informations about the data base and how open and close the SQL {@link Connection}s.
*
*
* © 2012-2020 akquinet tech@spree
*
*
* @author M. Dahm
*/
public interface Connector {
/**
* Open connection or return existing connection
*/
Connection openConnection() throws SQLException;
/**
* Close connection if it exists and is open
*/
void closeConnection() throws SQLException;
/**
* Return information about database and tables
*/
DatabaseMetaData retrieveDatabaseMetaData() throws SQLException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy