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 int
getDatabaseMinorVersion()
Gets the database minor versionString
getDatabaseProductName()
Gets the database product nameString
getDatabaseProductVersion()
Gets the database product versionint
getDatatabaseMajorVersion()
Gets the database major versionint
getDriverMajorVersion()
Gets the driver major versionint
getDriverMinorVersion()
Gets the driver minor versionString
getDriverName()
Gets the driver nameString
getDriverVersion()
Gets the driver versionString
toString()
-
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
-