Class DBImplSchemaProvider


  • public final class DBImplSchemaProvider
    extends Object
    This class is used as starting point to DIF database implementation of DFSchemaProvider. Use createSchemaProvider(PropsProvider) method to create a new instance of DFSchemaProvider.

    The basic idea is that this class creates a default implementation of DFSchemaProvider and through this other basic DIF objects will be accessed (DFSchema, DFEntities, etc.). To connect to data source this default implementation needs some configuration information (usually DB driver, DB URL, username, password, etc.). These properties can be modified during schema initialisation process and so should be stored for next time (e.g. remember username).

    And so there is a DBImplSchemaProvider.PropsProvider interface which provide the current connection properties and is able to store updated values. The typical implementation of this interface will read/write the props from file.

    Author:
    Petr Hamernik