Package io.hypersistence.optimizer.util
Class DatabaseInfo
java.lang.Object
io.hypersistence.optimizer.util.DatabaseInfo
The
DatabaseInfo encapsulates the underlying database-related information.- Since:
- 2.4.0
- Author:
- Vlad Mihalcea
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseInfo(String databaseName, String databaseVersion, int databaseMajorVersion, int databaseMinorVersion, String driverName, int driverMajorVersion, int driverMinorVersion, String sqlKeywords) Initializing constructor. -
Method Summary
Modifier and TypeMethodDescriptionintGet the associated database major version.intGet the associated database minor version.Get the associated database name.Get the associatedDatabaseType.Get the associated database version.intGet the associated JDBC Driver major version.intGet the associated JDBC Driver minor version.Get the associated Driver name.Get the associated JDBC Driver properties.Get the associated SQL keywords.
-
Constructor Details
-
DatabaseInfo
public DatabaseInfo(String databaseName, String databaseVersion, int databaseMajorVersion, int databaseMinorVersion, String driverName, int driverMajorVersion, int driverMinorVersion, String sqlKeywords) Initializing constructor.- Parameters:
databaseName- database namedatabaseVersion- database versiondatabaseMajorVersion- database major versiondatabaseMinorVersion- database minor versiondriverName- JDBC Driver namedriverMajorVersion- JDBC Driver major versiondriverMinorVersion- JDBC Driver minor versionsqlKeywords- SQL keywords
-
-
Method Details
-
getDatabaseType
Get the associatedDatabaseType.- Returns:
- the associated
DatabaseType.
-
getDatabaseName
Get the associated database name.- Returns:
- the associated database name.
-
getDatabaseVersion
Get the associated database version.- Returns:
- the associated database version.
-
getDatabaseMajorVersion
public int getDatabaseMajorVersion()Get the associated database major version.- Returns:
- the associated database major version.
-
getDatabaseMinorVersion
public int getDatabaseMinorVersion()Get the associated database minor version.- Returns:
- the associated database minor version.
-
getDriverName
Get the associated Driver name.- Returns:
- the associated Driver name.
-
getDriverMajorVersion
public int getDriverMajorVersion()Get the associated JDBC Driver major version.- Returns:
- the associated JDBC Driver major version.
-
getDriverMinorVersion
public int getDriverMinorVersion()Get the associated JDBC Driver minor version.- Returns:
- the associated JDBC Driver minor version.
-
getSQLKeywords
Get the associated SQL keywords.- Returns:
- the associated SQL keywords.
-
getDriverProperties
Get the associated JDBC Driver properties.- Returns:
- the associated JDBC Driver properties.
-