Class AbstractConnector
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.connector.impl.AbstractConnector
-
- All Implemented Interfaces:
Connector
,AutoCloseable
- Direct Known Subclasses:
AbstractURLConnector
,DataSourceConnector
,ExportDumpConnector
,ImportDumpConnector
public abstract class AbstractConnector extends Object implements Connector
Default connector implementation.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Field Summary
Fields Modifier and Type Field Description protected Connection
_connection
protected ConnectorInfo
_connectionInfo
protected String
_connectorId
protected ConnectorRepository
_connectorRepository
protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description AbstractConnector(ConnectorRepository connectorRepository, String connectorId, ConnectorInfo connectionInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection()
Close connection if it exists and is openDatabaseMetaData
retrieveDatabaseMetaData()
Return information about database and tables-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.akquinet.jbosscc.guttenbase.connector.Connector
close, openConnection
-
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
_connection
protected transient Connection _connection
-
_connectorRepository
protected final ConnectorRepository _connectorRepository
-
_connectorId
protected final String _connectorId
-
_connectionInfo
protected final ConnectorInfo _connectionInfo
-
-
Constructor Detail
-
AbstractConnector
public AbstractConnector(ConnectorRepository connectorRepository, String connectorId, ConnectorInfo connectionInfo)
-
-
Method Detail
-
closeConnection
public void closeConnection() throws SQLException
Close connection if it exists and is open- Specified by:
closeConnection
in interfaceConnector
- Throws:
SQLException
-
retrieveDatabaseMetaData
public DatabaseMetaData retrieveDatabaseMetaData() throws SQLException
Return information about database and tables- Specified by:
retrieveDatabaseMetaData
in interfaceConnector
- Throws:
SQLException
-
-