Interface DialectResolutionInfo
-
- All Known Implementing Classes:
DatabaseMetaDataDialectResolutionInfoAdapter
public interface DialectResolutionInfo
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 JDBCDatabaseMetaData
contract, specifically the portions about database and driver names and versions.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_VERSION
Constant used to indicate that no version is defined
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDatabaseMajorVersion()
Obtain access to the database major version, as returned fromDatabaseMetaData.getDatabaseMajorVersion()
for the target database.int
getDatabaseMinorVersion()
Obtain access to the database minor version, as returned fromDatabaseMetaData.getDatabaseMinorVersion()
for the target database.java.lang.String
getDatabaseName()
Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
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.java.lang.String
getDriverName()
Obtain access to the name of the JDBC driver, as returned fromDatabaseMetaData.getDriverName()
for the target database
-
-
-
Field Detail
-
NO_VERSION
static final int NO_VERSION
Constant used to indicate that no version is defined- See Also:
- Constant Field Values
-
-
Method Detail
-
getDatabaseName
java.lang.String getDatabaseName()
Obtain access to the database name, as returned fromDatabaseMetaData.getDatabaseProductName()
for the target database- Returns:
- The database name
- See Also:
DatabaseMetaData.getDatabaseProductName()
-
getDatabaseMajorVersion
int getDatabaseMajorVersion()
Obtain access to the database major version, as returned fromDatabaseMetaData.getDatabaseMajorVersion()
for the target database.- Returns:
- The database major version, or -9999 to indicate "no version information"
- See Also:
DatabaseMetaData.getDatabaseMajorVersion()
-
getDatabaseMinorVersion
int getDatabaseMinorVersion()
Obtain access to the database minor version, as returned fromDatabaseMetaData.getDatabaseMinorVersion()
for the target database.- Returns:
- The database minor version, or -9999 to indicate "no version information"
- See Also:
DatabaseMetaData.getDatabaseMinorVersion()
-
getDriverName
java.lang.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()
-
-