Package net.lightapi.portal.db
Interface DbProvider
-
- All Known Implementing Classes:
PostgresProviderImpl
public interface DbProviderInterface 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.Loggerlogger
-
Method Summary
Static Methods Modifier and Type Method Description static DbProvidergetInstance()Default method to provide the DbProvider instance from Singleton Service Factory.
-
-
-
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
-
-