public abstract class JdbcConnectionProvider
extends Object
Constructor and Description |
---|
JdbcConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canHandle(java.sql.Driver driver,
scala.collection.immutable.Map<String,String> options)
Checks if this connection provider instance can handle the connection initiated by the driver.
|
abstract java.sql.Connection |
getConnection(java.sql.Driver driver,
scala.collection.immutable.Map<String,String> options)
Opens connection toward the database.
|
abstract String |
name()
Name of the service to provide JDBC connections.
|
public abstract boolean canHandle(java.sql.Driver driver, scala.collection.immutable.Map<String,String> options)
IllegalArgumentException
will be thrown by the provider framework.
driver
- Java driver which initiates the connectionoptions
- Driver options which initiates the connectionpublic abstract java.sql.Connection getConnection(java.sql.Driver driver, scala.collection.immutable.Map<String,String> options)
SecurityConfigurationLock
to avoid race.
driver
- Java driver which initiates the connectionoptions
- Driver options which initiates the connectionConnection
object that represents a connection to the URLpublic abstract String name()