Class ConnectorRepositoryImpl
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.repository.impl.ConnectorRepositoryImpl
-
- All Implemented Interfaces:
ConnectorRepository
,Serializable
public class ConnectorRepositoryImpl extends Object implements ConnectorRepository
The main repository containing all configured connectors.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
Hint is used by
RepositoryTableFilterHint
when returning table metadata - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectorRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnectionInfo(String connectorId, ConnectorInfo connectionInfo)
Add connection info to repository with symbolic ID for data base such as "source db", e.g.<T> void
addConnectorHint(String connectorId, ConnectorHint<T> hint)
Add configuration hint for connector.void
addSourceDatabaseConfiguration(DatabaseType databaseType, SourceDatabaseConfiguration sourceDatabaseConfiguration)
Define configuration for given data base type when reading data.void
addTargetDatabaseConfiguration(DatabaseType databaseType, TargetDatabaseConfiguration targetDatabaseConfiguration)
Define configuration for given data base type when writing data.Connector
createConnector(String connectorId)
Create connectorConnectorInfo
getConnectionInfo(String connectorId)
Get connection info<T> ConnectorHint<T>
getConnectorHint(String connectorId, Class<T> connectionInfoHintType)
Get configuration hint for connector.List<String>
getConnectorIds()
Get all currently configured connector IDs.DatabaseMetaData
getDatabaseMetaData(String connectorId)
Get all meta data from data base.SourceDatabaseConfiguration
getSourceDatabaseConfiguration(String connectorId)
Get configuration.TargetDatabaseConfiguration
getTargetDatabaseConfiguration(String connectorId)
Get configuration.void
refreshDatabaseMetaData(String connectorId)
Reset table data, i.e. it will be reread from the data base.void
removeConnectionInfo(String connectorId)
Remove all information about connector<T> void
removeConnectorHint(String connectorId, Class<T> connectionInfoHintType)
Remove configuration hint for connector.
-
-
-
Method Detail
-
addConnectionInfo
public void addConnectionInfo(String connectorId, ConnectorInfo connectionInfo)
Add connection info to repository with symbolic ID for data base such as "source db", e.g.- Specified by:
addConnectionInfo
in interfaceConnectorRepository
-
removeConnectionInfo
public void removeConnectionInfo(String connectorId)
Remove all information about connector- Specified by:
removeConnectionInfo
in interfaceConnectorRepository
-
addConnectorHint
public <T> void addConnectorHint(String connectorId, ConnectorHint<T> hint)
Add configuration hint for connector.- Specified by:
addConnectorHint
in interfaceConnectorRepository
-
removeConnectorHint
public <T> void removeConnectorHint(String connectorId, Class<T> connectionInfoHintType)
Remove configuration hint for connector.- Specified by:
removeConnectorHint
in interfaceConnectorRepository
-
getConnectorHint
public <T> ConnectorHint<T> getConnectorHint(String connectorId, Class<T> connectionInfoHintType)
Get configuration hint for connector.- Specified by:
getConnectorHint
in interfaceConnectorRepository
-
getConnectionInfo
public ConnectorInfo getConnectionInfo(String connectorId)
Get connection info- Specified by:
getConnectionInfo
in interfaceConnectorRepository
-
getDatabaseMetaData
public DatabaseMetaData getDatabaseMetaData(String connectorId)
Get all meta data from data base.- Specified by:
getDatabaseMetaData
in interfaceConnectorRepository
-
refreshDatabaseMetaData
public void refreshDatabaseMetaData(String connectorId)
Reset table data, i.e. it will be reread from the data base.- Specified by:
refreshDatabaseMetaData
in interfaceConnectorRepository
-
createConnector
public Connector createConnector(String connectorId)
Create connector- Specified by:
createConnector
in interfaceConnectorRepository
-
getSourceDatabaseConfiguration
public SourceDatabaseConfiguration getSourceDatabaseConfiguration(String connectorId)
Get configuration.- Specified by:
getSourceDatabaseConfiguration
in interfaceConnectorRepository
-
addSourceDatabaseConfiguration
public void addSourceDatabaseConfiguration(DatabaseType databaseType, SourceDatabaseConfiguration sourceDatabaseConfiguration)
Define configuration for given data base type when reading data.- Specified by:
addSourceDatabaseConfiguration
in interfaceConnectorRepository
-
addTargetDatabaseConfiguration
public void addTargetDatabaseConfiguration(DatabaseType databaseType, TargetDatabaseConfiguration targetDatabaseConfiguration)
Define configuration for given data base type when writing data.- Specified by:
addTargetDatabaseConfiguration
in interfaceConnectorRepository
-
getTargetDatabaseConfiguration
public TargetDatabaseConfiguration getTargetDatabaseConfiguration(String connectorId)
Get configuration.- Specified by:
getTargetDatabaseConfiguration
in interfaceConnectorRepository
-
getConnectorIds
public List<String> getConnectorIds()
Get all currently configured connector IDs.- Specified by:
getConnectorIds
in interfaceConnectorRepository
-
-