Interface DatabaseConnectionProvider<C extends DatabaseConnectionConfig>
-
- Type Parameters:
C-DatabaseAdapterconfiguration type
- All Superinterfaces:
java.lang.AutoCloseable
public interface DatabaseConnectionProvider<C extends DatabaseConnectionConfig> extends java.lang.AutoCloseableBase 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
DatabaseAdapterinstances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()"Forcefully" close all resources held by this provider, even if this instance is still referenced.voidconfigure(C config)Applies connection configuration to this connection provider.voidinitialize()Initialize the connection provider using the configuration supplied "earlier" viaconfigure(DatabaseConnectionConfig).
-
-
-
Method Detail
-
configure
void configure(C config)
Applies connection configuration to this connection provider.
-
initialize
void initialize() throws java.lang.ExceptionInitialize the connection provider using the configuration supplied "earlier" viaconfigure(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:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-