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 Driver
SQLException
Driver.connect(java.lang.String, java.util.Properties)
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
SQLException
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
public Logger getParentLogger()
getParentLogger
in interface Driver
public int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
public static String getRealDriverName(String url)
public static String getRealURL(String url)
Copyright © 2015. All rights reserved.