int java.sql.Driver.getMinorVersion() : Driver « Database SQL JDBC « Java






int java.sql.Driver.getMinorVersion()

   
import java.sql.Driver;
import java.sql.DriverManager;
import java.util.Collections;
import java.util.List;

public class Main {
  public static void main(String[] argv) throws Exception {
    List drivers = Collections.list(DriverManager.getDrivers());
    for (int i = 0; i < drivers.size(); i++) {
      Driver driver = (Driver) drivers.get(i);


      String name = driver.getClass().getName();
      System.out.println(name);


      int majorVersion = driver.getMajorVersion();
      System.out.println(majorVersion);
      int minorVersion = driver.getMinorVersion();
      System.out.println(minorVersion);
      boolean isJdbcCompliant = driver.jdbcCompliant();
      System.out.println(isJdbcCompliant);
    }
  }
}

   
    
    
  








Related examples in the same category

1.Get Driver Property Info
2.Get Driver Name
3.int java.sql.Driver.getMajorVersion()
4.boolean java.sql.Driver.jdbcCompliant()
5.Enumeration java.sql.DriverManager.getDrivers()
6.Get Driver Version
7.JDBC Driver Information
8.Loading a JDBC Driver: call Class.forName() within the code
9.Listing All Loaded JDBC Drivers and gets information about each one.
10.DriverPropertyInfo[] java.sql.Driver.getPropertyInfo(String url, Properties info)
11.Enable JDBC logging
12.JDBC driver url