Interface Connector
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractConnector
,AbstractURLConnector
,DataSourceConnector
,ExportDumpConnector
,ImportDumpConnector
,URLConnector
public interface Connector extends AutoCloseable
Connectors maintain informations about the data base and how open and close the SQLConnection
s.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
void
closeConnection()
Close connection if it exists and is openConnection
openConnection()
Open connection or return existing connectionDatabaseMetaData
retrieveDatabaseMetaData()
Return information about database and tables
-
-
-
Method Detail
-
openConnection
Connection openConnection() throws SQLException
Open connection or return existing connection- Throws:
SQLException
-
closeConnection
void closeConnection() throws SQLException
Close connection if it exists and is open- Throws:
SQLException
-
retrieveDatabaseMetaData
DatabaseMetaData retrieveDatabaseMetaData() throws SQLException
Return information about database and tables- Throws:
SQLException
-
close
default void close() throws SQLException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
SQLException
-
-