Package com.aceql.jdbc.commons
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
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 Summary
Modifier and Type Method Description intgetDatabaseMinorVersion()Gets the database minor versionStringgetDatabaseProductName()Gets the database product nameStringgetDatabaseProductVersion()Gets the database product versionintgetDatatabaseMajorVersion()Gets the database major versionintgetDriverMajorVersion()Gets the driver major versionintgetDriverMinorVersion()Gets the driver minor versionStringgetDriverName()Gets the driver nameStringgetDriverVersion()Gets the driver versionStringtoString()
-
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
Gets the database product name- Returns:
- the database product name
-
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
Gets the driver name- Returns:
- the driver name
-
getDriverVersion
Gets the driver version- Returns:
- the driver version
-
toString
-