Class ProviderAdapter
- java.lang.Object
-
- nl.gx.webmanager.services.datasource.ProviderAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected Driver
driverInstance
Driver holding the instance of the specific underlaid database driver.
-
Constructor Summary
Constructors Constructor Description ProviderAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Connection
createConnection(String url)
Connection
createConnection(String url, String username, String password)
abstract String
getDriverClassName()
abstract String
getSpecification()
Deprecated.String
getValidationQuery()
-
-
-
Field Detail
-
driverInstance
protected Driver driverInstance
Driver holding the instance of the specific underlaid database driver.
-
-
Method Detail
-
createConnection
public Connection createConnection(String url) throws SQLException
- Specified by:
createConnection
in interfaceProvider
- Throws:
SQLException
-
createConnection
public Connection createConnection(String url, String username, String password) throws SQLException
- Specified by:
createConnection
in interfaceProvider
- Throws:
SQLException
-
getDriverClassName
public abstract String getDriverClassName()
- Specified by:
getDriverClassName
in interfaceProvider
-
getSpecification
@Deprecated public abstract String getSpecification()
Deprecated.Returns specification of provided DataSource in a human readable format.- Specified by:
getSpecification
in interfaceProvider
- Returns:
- specification of provided DataSource in a human readable format.
-
getValidationQuery
public String getValidationQuery()
- Specified by:
getValidationQuery
in interfaceProvider
-
-