Interface DatabaseConnectionProvider<C extends DatabaseConnectionConfig>

  • Type Parameters:
    C - DatabaseAdapter configuration type
    All Superinterfaces:
    java.lang.AutoCloseable

    public interface DatabaseConnectionProvider<C extends DatabaseConnectionConfig>
    extends java.lang.AutoCloseable
    Base interface that manages database connections.

    Concrete implementations serve connections in a database specific way, i.e. by implementing database specific functionality.

    This interface is used as a common way to let multiple DatabaseAdapter instances

    • Method Detail

      • configure

        void configure​(C config)
        Applies connection configuration to this connection provider.
      • initialize

        void initialize()
                 throws java.lang.Exception
        Initialize the connection provider using the configuration supplied "earlier" via configure(DatabaseConnectionConfig).
        Throws:
        java.lang.Exception
      • close

        void close()
            throws java.lang.Exception
        "Forcefully" close all resources held by this provider, even if this instance is still referenced.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception