Interface ConnectorRepository

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    ConnectorRepositoryImpl

    public interface ConnectorRepository
    extends Serializable
    The main repository containing all configured connectors.

    © 2012-2034 akquinet tech@spree

    Author:
    M. Dahm
    • Method Detail

      • addConnectionInfo

        void addConnectionInfo​(String connectorId,
                               ConnectorInfo connectionInfo)
        Add connection info to repository with symbolic ID for data base such as "source db", e.g.
      • removeConnectionInfo

        void removeConnectionInfo​(String connectorId)
        Remove all information about connector
      • getConnectionInfo

        ConnectorInfo getConnectionInfo​(String connectorId)
        Get connection info
      • getDatabaseMetaData

        DatabaseMetaData getDatabaseMetaData​(String connectorId)
        Get all meta data from data base.
      • refreshDatabaseMetaData

        void refreshDatabaseMetaData​(String connectorId)
        Reset table data, i.e. it will be reread from the data base.
      • createConnector

        Connector createConnector​(String connectorId)
        Create connector
      • addConnectorHint

        <T> void addConnectorHint​(String connectorId,
                                  ConnectorHint<T> hint)
        Add configuration hint for connector.
      • removeConnectorHint

        <T> void removeConnectorHint​(String connectorId,
                                     Class<T> connectionInfoHintType)
        Remove configuration hint for connector.
      • getConnectorHint

        <T> ConnectorHint<T> getConnectorHint​(String connectorId,
                                              Class<T> connectorHintType)
        Get configuration hint for connector.
      • getConnectorIds

        List<String> getConnectorIds()
        Get all currently configured connector IDs.
      • addSourceDatabaseConfiguration

        void addSourceDatabaseConfiguration​(DatabaseType databaseType,
                                            SourceDatabaseConfiguration sourceDatabaseConfiguration)
        Define configuration for given data base type when reading data.
      • addTargetDatabaseConfiguration

        void addTargetDatabaseConfiguration​(DatabaseType databaseType,
                                            TargetDatabaseConfiguration targetDatabaseConfiguration)
        Define configuration for given data base type when writing data.