public class DatabaseMetaDataDialectResolutionInfoAdapter extends Object implements DialectResolutionInfo
DatabaseMetaData
.
All SQLException
s resulting from calls on the DatabaseMetaData are converted to the Hibernate
JDBCException
hierarchy.NO_VERSION
Constructor and Description |
---|
DatabaseMetaDataDialectResolutionInfoAdapter(DatabaseMetaData databaseMetaData) |
Modifier and Type | Method and Description |
---|---|
int |
getDatabaseMajorVersion()
Obtain access to the database major version, as returned from
DatabaseMetaData.getDatabaseMajorVersion() for the target database. |
int |
getDatabaseMinorVersion()
Obtain access to the database minor version, as returned from
DatabaseMetaData.getDatabaseMinorVersion() for the target database. |
String |
getDatabaseName()
Obtain access to the database name, as returned from
DatabaseMetaData.getDatabaseProductName()
for the target database |
int |
getDriverMajorVersion()
Obtain access to the major version of the JDBC driver, as returned from
DatabaseMetaData.getDriverMajorVersion() ()} for the target database. |
int |
getDriverMinorVersion()
Obtain access to the minor version of the JDBC driver, as returned from
DatabaseMetaData.getDriverMinorVersion() for the target database. |
String |
getDriverName()
Obtain access to the name of the JDBC driver, as returned from
DatabaseMetaData.getDriverName()
for the target database |
public DatabaseMetaDataDialectResolutionInfoAdapter(DatabaseMetaData databaseMetaData)
public String getDatabaseName()
DialectResolutionInfo
DatabaseMetaData.getDatabaseProductName()
for the target databasegetDatabaseName
in interface DialectResolutionInfo
DatabaseMetaData.getDatabaseProductName()
public int getDatabaseMajorVersion()
DialectResolutionInfo
DatabaseMetaData.getDatabaseMajorVersion()
for the target database.getDatabaseMajorVersion
in interface DialectResolutionInfo
DatabaseMetaData.getDatabaseMajorVersion()
public int getDatabaseMinorVersion()
DialectResolutionInfo
DatabaseMetaData.getDatabaseMinorVersion()
for the target database.getDatabaseMinorVersion
in interface DialectResolutionInfo
DatabaseMetaData.getDatabaseMinorVersion()
public String getDriverName()
DialectResolutionInfo
DatabaseMetaData.getDriverName()
for the target databasegetDriverName
in interface DialectResolutionInfo
DatabaseMetaData.getDriverName()
public int getDriverMajorVersion()
DialectResolutionInfo
DatabaseMetaData.getDriverMajorVersion()
()} for the target database.getDriverMajorVersion
in interface DialectResolutionInfo
DatabaseMetaData.getDriverMajorVersion()
public int getDriverMinorVersion()
DialectResolutionInfo
DatabaseMetaData.getDriverMinorVersion()
for the target database.getDriverMinorVersion
in interface DialectResolutionInfo
DatabaseMetaData.getDriverMinorVersion()
Copyright © 2016 JBoss by Red Hat. All rights reserved.