Class DatabaseInfo

java.lang.Object
com.aceql.jdbc.commons.DatabaseInfo

public class DatabaseInfo
extends Object
A simple shortcut class that contains main remote database and JDBC info.
A DatabaseInfo instance is retrieved with the AceQLConnection.getDatabaseInfo() call:
 
 // Casts the current Connection to get an AceQLConnection object
 AceQLConnection aceqlConnection = (AceQLConnection) connection;
 
 DatabaseInfo databaseInfo = aceqlConnection.getDatabaseInfo();
 System.out.println("Database Product Name   : " + databaseInfo.getDatabaseProductName());
 System.out.println("Database Product Version: " + databaseInfo.getDatabaseProductVersion());
 // Etc.
 
 
Since:
8.1
Author:
Nicolas de Pomereu
  • Method Details

    • getDatatabaseMajorVersion

      public int getDatatabaseMajorVersion()
      Gets the database major version
      Returns:
      the database major version
    • getDatabaseMinorVersion

      public int getDatabaseMinorVersion()
      Gets the database minor version
      Returns:
      the database minor version
    • getDatabaseProductName

      public String getDatabaseProductName()
      Gets the database product name
      Returns:
      the database product name
    • getDatabaseProductVersion

      public String getDatabaseProductVersion()
      Gets the database product version
      Returns:
      the database product version
    • getDriverMajorVersion

      public int getDriverMajorVersion()
      Gets the driver major version
      Returns:
      the driver major version
    • getDriverMinorVersion

      public int getDriverMinorVersion()
      Gets the driver minor version
      Returns:
      the driver minor version
    • getDriverName

      public String getDriverName()
      Gets the driver name
      Returns:
      the driver name
    • getDriverVersion

      public String getDriverVersion()
      Gets the driver version
      Returns:
      the driver version
    • toString

      public String toString()
      Overrides:
      toString in class Object