Class DatabaseMetaDataDialectResolutionInfoAdapter

  • All Implemented Interfaces:
    DialectResolutionInfo

    public class DatabaseMetaDataDialectResolutionInfoAdapter
    extends java.lang.Object
    implements DialectResolutionInfo
    An implementation of DialectResolutionInfo that delegates calls to a wrapped DatabaseMetaData.

    All SQLExceptions resulting from calls on the DatabaseMetaData are converted to the Hibernate JDBCException hierarchy.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      java.lang.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.
      java.lang.String getDriverName()
      Obtain access to the name of the JDBC driver, as returned from DatabaseMetaData.getDriverName() for the target database
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DatabaseMetaDataDialectResolutionInfoAdapter

        public DatabaseMetaDataDialectResolutionInfoAdapter​(java.sql.DatabaseMetaData databaseMetaData)
    • Method Detail

      • getDatabaseName

        public java.lang.String getDatabaseName()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the database name, as returned from DatabaseMetaData.getDatabaseProductName() for the target database
        Specified by:
        getDatabaseName in interface DialectResolutionInfo
        Returns:
        The database name
        See Also:
        DatabaseMetaData.getDatabaseProductName()
      • getDatabaseMajorVersion

        public int getDatabaseMajorVersion()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the database major version, as returned from DatabaseMetaData.getDatabaseMajorVersion() for the target database.
        Specified by:
        getDatabaseMajorVersion in interface DialectResolutionInfo
        Returns:
        The database major version, or -9999 to indicate "no version information"
        See Also:
        DatabaseMetaData.getDatabaseMajorVersion()
      • getDatabaseMinorVersion

        public int getDatabaseMinorVersion()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the database minor version, as returned from DatabaseMetaData.getDatabaseMinorVersion() for the target database.
        Specified by:
        getDatabaseMinorVersion in interface DialectResolutionInfo
        Returns:
        The database minor version, or -9999 to indicate "no version information"
        See Also:
        DatabaseMetaData.getDatabaseMinorVersion()
      • getDriverName

        public java.lang.String getDriverName()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the name of the JDBC driver, as returned from DatabaseMetaData.getDriverName() for the target database
        Specified by:
        getDriverName in interface DialectResolutionInfo
        Returns:
        The JDBC driver name
        See Also:
        DatabaseMetaData.getDriverName()
      • getDriverMajorVersion

        public int getDriverMajorVersion()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the major version of the JDBC driver, as returned from DatabaseMetaData.getDriverMajorVersion() ()} for the target database.
        Specified by:
        getDriverMajorVersion in interface DialectResolutionInfo
        Returns:
        The JDBC driver major version, or -9999 to indicate "no version information"
        See Also:
        DatabaseMetaData.getDriverMajorVersion()
      • getDriverMinorVersion

        public int getDriverMinorVersion()
        Description copied from interface: DialectResolutionInfo
        Obtain access to the minor version of the JDBC driver, as returned from DatabaseMetaData.getDriverMinorVersion() for the target database.
        Specified by:
        getDriverMinorVersion in interface DialectResolutionInfo
        Returns:
        The JDBC driver minor version, or -9999 to indicate "no version information"
        See Also:
        DatabaseMetaData.getDriverMinorVersion()