- All Implemented Interfaces:
Driver
,FirebirdDriver
Although this class is formally public API of Jaybird, any method not defined by the Driver
and
FirebirdDriver
interfaces is considered internal API and may change between point releases.
- Author:
- David Jencks, Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsURL
(String url) connect
(String url, Properties info) int
int
getPropertyInfo
(String url, Properties info) boolean
normalizeProperties
(String jdbcUrl, Properties connectionProperties) Merges the properties from the JDBC URL and properties object, normalizes them to a standard name.
-
Constructor Details
-
FBDriver
public FBDriver()
-
-
Method Details
-
connect
- Specified by:
connect
in interfaceDriver
- Throws:
SQLException
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLException
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
- Throws:
SQLFeatureNotSupportedException
-
normalizeProperties
public static Map<String,String> normalizeProperties(String jdbcUrl, Properties connectionProperties) throws SQLException Merges the properties from the JDBC URL and properties object, normalizes them to a standard name.If a property with the exact same name is present in both, the property specified in the JDBC url takes precedence. Occurrence of multiple (distinct) aliases for the same property result in a
SQLException
.The property name that is the result of normalization, is implementation specific behaviour, and might change in a future version of Jaybird. When present, the (normalized) property `"database"` will be excluded, this also might change in the future.
The behaviour of this method does not necessarily match the behaviour of Jaybird when processing properties during
connect(String, Properties)
, as this method performs additional processing that is skipped during connect.- Parameters:
jdbcUrl
- JDBC UrlconnectionProperties
- Properties object- Returns:
- New map object with the merged and normalized connection properties
- Throws:
SQLException
- For failures to extract connection properties fromjdbcUrl
(URL decoding errors), or presence of the same property under multiple aliases.- Since:
- 4.0.1
-