public class SimonConnectionConfiguration extends java.lang.Object
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 java.lang.String |
DEFAULT_PREFIX
Default hierarchy prefix for Simon JDBC driver.
|
static java.lang.String |
PREFIX
Name for the driver property holding the hierarchy prefix given to JDBC Simons.
|
static java.lang.String |
REAL_DRIVER
Name for the property holding the real driver class value.
|
static java.lang.String |
URL_PREFIX
Prefix used in JDBC connection URLs.
|
Constructor and Description |
---|
SimonConnectionConfiguration(java.lang.String url)
Class constructor, parses given connection URL and recognizes driver's properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDriverId()
Returns driver identifier (eg.
|
java.lang.String |
getPrefix()
Returns prefix for hierarchy of JDBC connection related Simons.
|
java.lang.String |
getRealConnectionPoolDataSourceName()
Gets the name of the class implementing
ConnectionPoolDataSource . |
java.lang.String |
getRealDataSourceName()
Gets the name of the class implementing
DataSource . |
java.lang.String |
getRealDriver()
Returns fully qualified class name of the real driver.
|
java.lang.String |
getRealUrl()
Returns orignal JDBC connection URL without any Simon stuff.
|
java.lang.String |
getRealXADataSourceName()
Gets the name of the class implementing
XADataSource . |
java.lang.String |
getSimonUrl()
Simon JDBC connection URL prefixed with
jdbc:simon: . |
static boolean |
isSimonUrl(java.lang.String url)
Tests whether URL is a Simon JDBC connection URL.
|
public static final java.lang.String DEFAULT_PREFIX
public static final java.lang.String URL_PREFIX
public static final java.lang.String REAL_DRIVER
public static final java.lang.String PREFIX
public SimonConnectionConfiguration(java.lang.String url)
url
- given JDBC connection URLpublic java.lang.String getRealUrl()
public java.lang.String getDriverId()
public java.lang.String getRealDriver()
public java.lang.String getPrefix()
public java.lang.String getSimonUrl()
jdbc:simon:
.public static boolean isSimonUrl(java.lang.String url)
public java.lang.String getRealConnectionPoolDataSourceName()
ConnectionPoolDataSource
.public java.lang.String getRealDataSourceName()
DataSource
.public java.lang.String getRealXADataSourceName()
XADataSource
.Copyright © 2018. All Rights Reserved.