Interface DbProvider

  • All Known Implementing Classes:
    PostgresProviderImpl

    public interface DbProvider
    Interface class provide the contract for different database implementation for the portal.
    Author:
    Steve Hu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static DbProvider getInstance()
      Default method to provide the DbProvider instance from Singleton Service Factory.
    • Field Detail

      • logger

        static final org.slf4j.Logger logger
    • Method Detail

      • getInstance

        static DbProvider getInstance()
        Default method to provide the DbProvider instance from Singleton Service Factory. If no instance found in factory, it creates a SqlDbProviderImpl, puts it in factory and returns it.
        Returns:
        instance of the provider