Interface DialectResolutionInfo
- All Superinterfaces:
DatabaseVersion
- All Known Implementing Classes:
DatabaseMetaDataDialectResolutionInfoAdapter
Exposes information about the database and JDBC driver that can be used in resolving the appropriate Dialect
to use.
The information here mimics part of the JDBC DatabaseMetaData
contract, specifically the portions
about database and driver names and versions.
-
Field Summary
Fields inherited from interface org.hibernate.dialect.DatabaseVersion
NO_VERSION
-
Method Summary
Modifier and TypeMethodDescriptionObtain access to the completemap of config settings
.default DatabaseMetaData
Obtain access to theDatabaseMetaData
if it is available.Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
for the target databaseObtain access to the database version, as returned fromDatabaseMetaData.getDatabaseProductVersion()
for the target databaseint
Obtain access to the major version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMajorVersion()
()} for the target database.int
Obtain access to the minor version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMinorVersion()
for the target database.Obtain access to the name of the JDBC driver, as returned fromDatabaseMetaData.getDriverName()
for the target databaseObtain access to the SQL keywords of the JDBC driver, as returned fromDatabaseMetaData.getSQLKeywords()
for the target database.Methods inherited from interface org.hibernate.dialect.DatabaseVersion
getDatabaseMajorVersion, getDatabaseMicroVersion, getDatabaseMinorVersion, getMajor, getMicro, getMinor, isAfter, isAfter, isAfter, isAfter, isAfter, isBefore, isBefore, isBefore, isBefore, isBefore, isSame, isSame, isSame, isSame, isSameOrAfter, isSameOrAfter, isSameOrAfter, isSameOrAfter, isSameOrAfter, makeCopy, makeCopy, makeCopyOrDefault
-
Method Details
-
getDatabaseName
String getDatabaseName()Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
for the target database- Returns:
- The database name
- See Also:
-
getDatabaseVersion
String getDatabaseVersion()Obtain access to the database version, as returned fromDatabaseMetaData.getDatabaseProductVersion()
for the target database- Returns:
- The database version
- See Also:
-
getDriverName
String getDriverName()Obtain access to the name of the JDBC driver, as returned fromDatabaseMetaData.getDriverName()
for the target database- Returns:
- The JDBC driver name
- See Also:
-
getDriverMajorVersion
int getDriverMajorVersion()Obtain access to the major version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMajorVersion()
()} for the target database.- Returns:
- The JDBC driver major version, or -9999 to indicate "no version information"
- See Also:
-
getDriverMinorVersion
int getDriverMinorVersion()Obtain access to the minor version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMinorVersion()
for the target database.- Returns:
- The JDBC driver minor version, or -9999 to indicate "no version information"
- See Also:
-
getSQLKeywords
String getSQLKeywords()Obtain access to the SQL keywords of the JDBC driver, as returned fromDatabaseMetaData.getSQLKeywords()
for the target database.- Returns:
- The JDBC driver keywords
- See Also:
-
getDatabaseMetadata
Obtain access to theDatabaseMetaData
if it is available.- Returns:
- The
DatabaseMetaData
ornull
if not available
-
getConfigurationValues
Obtain access to the completemap of config settings
.- Returns:
- The immutable map of config settings.
-