| Constructor and Description |
|---|
JAMonDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
Returns true if this driver can respond to the url
|
Connection |
connect(String url,
Properties info) |
int |
getMajorVersion()
boolean acceptsURL(String url)
Retrieves whether the driver thinks that it can open a connection to the given URL.
|
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
Returns this drivers properties.
|
static String |
getRealDriverName(String url)
Takes a url of the jamon format: jdbc:jamon:sybase:Tds:myserver:1234/mydatabase?jamonrealdriver=com.sybase.jdbc3.jdbc.SybDriver&LITERAL_PARAMS=true&PACKETSIZE=512&HOSTNAME=myhost
and returns: com.sybase.jdbc3.jdbc.SybDriver
|
static String |
getRealURL(String url)
Takes a url of the jamon format: jdbc:jamon:sybase:Tds:myserver:1234/mydatabase?jamonrealdriver=com.sybase.jdbc3.jdbc.SybDriver&LITERAL_PARAMS=true&PACKETSIZE=512&HOSTNAME=myhost
and returns the real url associated with the underlying driver: jdbc:sybase:Tds:myserver:1234/mydatabase?LITERAL_PARAMS=true&PACKETSIZE=512&HOSTNAME=myhost
|
boolean |
jdbcCompliant() |
static void |
register()
Register the JAMon driver.
|
public static void register()
public Connection connect(String url, Properties info) throws SQLException
connect in interface DriverSQLExceptionDriver.connect(java.lang.String, java.util.Properties)public boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic Logger getParentLogger()
getParentLogger in interface Driverpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic static String getRealDriverName(String url)
public static String getRealURL(String url)
Copyright © 2015. All rights reserved.