Top Description Fields Constructors Methods
org.apache.derby.iapi.jdbc

public final Class JDBC

extends Object
implements JDBCMBean
Class Inheritance
All Implemented Interfaces
org.apache.derby.mbeans.JDBCMBean
Imports
java.sql.SQLException, org.apache.derby.iapi.jdbc.InternalDriver, org.apache.derby.shared.common.info.JVMInfo, org.apache.derby.mbeans.JDBCMBean

Simple JBDC mbean that pulls information about the JDBC driver.

Field Summary

Modifier and TypeField and Description
private final InternalDriver

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
acceptsURL(String
JDBC URL to check.
url
)

Implements org.apache.derby.mbeans.JDBCMBean.acceptsURL.

Does the driver accept the passed in JDBC URL

public String
getDriverLevel()

Implements org.apache.derby.mbeans.JDBCMBean.getDriverLevel.

Get the JDBC driver's implementation level

public int
getMajorVersion()

Implements org.apache.derby.mbeans.JDBCMBean.getMajorVersion.

Return the JDBC driver's major version.

public int
getMinorVersion()

Implements org.apache.derby.mbeans.JDBCMBean.getMinorVersion.

Return the JDBC driver's minor version.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

driverback to summary
private final InternalDriver driver

Constructor Detail

JDBCback to summary
public JDBC(InternalDriver driver)

Method Detail

acceptsURLback to summary
public boolean acceptsURL(String url) throws SQLException

Implements org.apache.derby.mbeans.JDBCMBean.acceptsURL.

Doc from org.apache.derby.mbeans.JDBCMBean.acceptsURL.

Does the driver accept the passed in JDBC URL

Parameters
url:String

JDBC URL to check.

Returns:boolean

True if it supports it, false otherwise.

Exceptions
SQLException:
on error
getDriverLevelback to summary
public String getDriverLevel()

Implements org.apache.derby.mbeans.JDBCMBean.getDriverLevel.

Doc from org.apache.derby.mbeans.JDBCMBean.getDriverLevel.

Get the JDBC driver's implementation level

Returns:String

the driver level

getMajorVersionback to summary
public int getMajorVersion()

Implements org.apache.derby.mbeans.JDBCMBean.getMajorVersion.

Doc from org.apache.derby.mbeans.JDBCMBean.getMajorVersion.

Return the JDBC driver's major version.

Returns:int

major version

getMinorVersionback to summary
public int getMinorVersion()

Implements org.apache.derby.mbeans.JDBCMBean.getMinorVersion.

Doc from org.apache.derby.mbeans.JDBCMBean.getMinorVersion.

Return the JDBC driver's minor version.

Returns:int

minor version

isCompliantDriverback to summary
public boolean isCompliantDriver()

Implements org.apache.derby.mbeans.JDBCMBean.isCompliantDriver.

Doc from org.apache.derby.mbeans.JDBCMBean.isCompliantDriver.

Is the JDBC driver compliant.

Returns:boolean

compliance state