public class SimonConnectionConfiguration extends Object
It parses given url and than provides getters for driver's properties if provided or default values.
Prior to Simon 3.4, this class was known as org.javasimon.jdbc4.Driver.Url and only used in Driver
.
It was externalized and is now used in both org.javasimon.jdbc4.Driver
and SimonDataSource
and other Simon DataSources.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX
Default hierarchy prefix for Simon JDBC driver.
|
static String |
PREFIX
Name for the driver property holding the hierarchy prefix given to JDBC Simons.
|
static String |
REAL_DRIVER
Name for the property holding the real driver class value.
|
static String |
URL_PREFIX
Prefix used in JDBC connection URLs.
|
Constructor and Description |
---|
SimonConnectionConfiguration(String url)
Class constructor, parses given connection URL and recognizes driver's properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getDriverId()
Returns driver identifier (eg.
|
String |
getPrefix()
Returns prefix for hierarchy of JDBC connection related Simons.
|
String |
getRealConnectionPoolDataSourceName()
Gets the name of the class implementing
ConnectionPoolDataSource . |
String |
getRealDataSourceName()
Gets the name of the class implementing
DataSource . |
String |
getRealDriver()
Returns fully qualified class name of the real driver.
|
String |
getRealUrl()
Returns orignal JDBC connection URL without any Simon stuff.
|
String |
getRealXADataSourceName()
Gets the name of the class implementing
XADataSource . |
String |
getSimonUrl()
Simon JDBC connection URL prefixed with
jdbc:simon: . |
static boolean |
isSimonUrl(String url)
Tests whether URL is a Simon JDBC connection URL.
|
public static final String DEFAULT_PREFIX
public static final String URL_PREFIX
public static final String REAL_DRIVER
public static final String PREFIX
public SimonConnectionConfiguration(String url)
url
- given JDBC connection URLpublic String getRealUrl()
public String getDriverId()
public String getRealDriver()
public String getPrefix()
public String getSimonUrl()
jdbc:simon:
.public static boolean isSimonUrl(String url)
public String getRealConnectionPoolDataSourceName()
ConnectionPoolDataSource
.public String getRealDataSourceName()
DataSource
.public String getRealXADataSourceName()
XADataSource
.Copyright © 2019. All rights reserved.