Class JDBC

  • All Implemented Interfaces:
    JDBCMBean

    final class JDBC
    extends java.lang.Object
    implements JDBCMBean
    Simple JBDC mbean that pulls information about the JDBC driver.
    • Constructor Summary

      Constructors 
      Constructor Description
      JDBC​(InternalDriver driver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptsURL​(java.lang.String url)
      Does the driver accept the passed in JDBC URL
      java.lang.String getDriverLevel()
      Get the JDBC driver's implementation level
      int getMajorVersion()
      Return the JDBC driver's major version.
      int getMinorVersion()
      Return the JDBC driver's minor version.
      boolean isCompliantDriver()
      Is the JDBC driver compliant.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDriverLevel

        public java.lang.String getDriverLevel()
        Description copied from interface: JDBCMBean
        Get the JDBC driver's implementation level
        Specified by:
        getDriverLevel in interface JDBCMBean
      • getMajorVersion

        public int getMajorVersion()
        Description copied from interface: JDBCMBean
        Return the JDBC driver's major version.
        Specified by:
        getMajorVersion in interface JDBCMBean
        Returns:
        major version
        See Also:
        Driver.getMajorVersion()
      • getMinorVersion

        public int getMinorVersion()
        Description copied from interface: JDBCMBean
        Return the JDBC driver's minor version.
        Specified by:
        getMinorVersion in interface JDBCMBean
        Returns:
        minor version
        See Also:
        Driver.getMinorVersion()
      • isCompliantDriver

        public boolean isCompliantDriver()
        Description copied from interface: JDBCMBean
        Is the JDBC driver compliant.
        Specified by:
        isCompliantDriver in interface JDBCMBean
        Returns:
        compliance state
        See Also:
        Driver.jdbcCompliant()
      • acceptsURL

        public boolean acceptsURL​(java.lang.String url)
                           throws java.sql.SQLException
        Description copied from interface: JDBCMBean
        Does the driver accept the passed in JDBC URL
        Specified by:
        acceptsURL in interface JDBCMBean
        Parameters:
        url - JDBC URL to check.
        Returns:
        True if it supports it, false otherwise.
        Throws:
        java.sql.SQLException
        See Also:
        Driver.acceptsURL(String)