Interface DialectResolutionInfo
-
- All Superinterfaces:
DatabaseVersion
- All Known Implementing Classes:
DatabaseMetaDataDialectResolutionInfoAdapter
public interface DialectResolutionInfo extends DatabaseVersion
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DatabaseMetaData
getDatabaseMetadata()
Obtain access to theDatabaseMetaData
if it is available.String
getDatabaseName()
Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
for the target databaseString
getDatabaseVersion()
Obtain access to the database version, as returned fromDatabaseMetaData.getDatabaseProductVersion()
for the target databaseint
getDriverMajorVersion()
Obtain access to the major version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMajorVersion()
()} for the target database.int
getDriverMinorVersion()
Obtain access to the minor version of the JDBC driver, as returned fromDatabaseMetaData.getDriverMinorVersion()
for the target database.String
getDriverName()
Obtain access to the name of the JDBC driver, as returned fromDatabaseMetaData.getDriverName()
for the target databaseString
getSQLKeywords()
Obtain 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
-
-
-
-
Method Detail
-
getDatabaseName
String getDatabaseName()
Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
for the target database- Returns:
- The database name
- See Also:
DatabaseMetaData.getDatabaseProductName()
-
getDatabaseVersion
String getDatabaseVersion()
Obtain access to the database version, as returned fromDatabaseMetaData.getDatabaseProductVersion()
for the target database- Returns:
- The database version
- See Also:
DatabaseMetaData.getDatabaseProductVersion()
-
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:
DatabaseMetaData.getDriverName()
-
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:
DatabaseMetaData.getDriverMajorVersion()
-
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:
DatabaseMetaData.getDriverMinorVersion()
-
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:
DatabaseMetaData.getSQLKeywords()
-
getDatabaseMetadata
default DatabaseMetaData getDatabaseMetadata()
Obtain access to theDatabaseMetaData
if it is available.- Returns:
- The
DatabaseMetaData
ornull
if not available
-
-