Interface ExtractedDatabaseMetaData


@SPI(USE) public interface ExtractedDatabaseMetaData

Raw JDBC driver and bootstrap-connection observations.

This contract records the defensively extracted DatabaseMetaData answers and connection values. These observations are useful for diagnostics, reporting, and integrations which explicitly need driver-reported state. Use JdbcMetadata for Hibernate runtime decisions because its support answers include Dialect metadata overrides and compatibility interpretation.

See Also:
  • Method Details

    • getJdbcEnvironment

      JdbcEnvironment getJdbcEnvironment()
      The JDBC environment from which these observations were extracted.
    • isJdbcMetadataAccessible

      boolean isJdbcMetadataAccessible()
      Whether a live JDBC metadata source was available when this snapshot was extracted.
    • getDatabaseProductName

      String getDatabaseProductName()
      The database product name reported by the JDBC driver.
    • getDatabaseProductVersion

      String getDatabaseProductVersion()
      The database product version reported by the JDBC driver.
    • supportsSchemas

      boolean supportsSchemas()

      Whether the driver reported support for named schemas in DML.

      A true answer may also represent a defensive fallback when the driver could not be asked.

    • supportsCatalogs

      boolean supportsCatalogs()

      Whether the driver reported support for named catalogs in DML.

      A true answer may also represent a defensive fallback when the driver could not be asked.

    • getConnectionCatalogName

      String getConnectionCatalogName()
      The catalog in effect for the bootstrap connection.
    • getConnectionSchemaName

      String getConnectionSchemaName()
      The schema in effect for the bootstrap connection.
      See Also:
    • getUnquotedIdentifierCaseStrategy

      IdentifierCaseStrategy getUnquotedIdentifierCaseStrategy()
      The normalized case strategy derived from the driver's unquoted identifier storage reports.
    • getQuotedIdentifierCaseStrategy

      IdentifierCaseStrategy getQuotedIdentifierCaseStrategy()
      The normalized case strategy derived from the driver's quoted identifier storage reports.
    • getSqlKeywords

      Set<String> getSqlKeywords()
      The immutable lowercase SQL-keyword set reported by the JDBC driver.
    • supportsNamedParameters

      boolean supportsNamedParameters()

      Whether the driver reported support for named callable parameters.

      A false answer may also represent a defensive fallback when the driver could not be asked. Use JdbcMetadata.supportsNamedParameters() for an effective runtime decision.

      See Also:
    • supportsRefCursors

      boolean supportsRefCursors()

      Whether the driver reported support for the standard JDBC REF_CURSOR API.

      A false answer may also represent a defensive fallback when the driver could not be asked. Use JdbcMetadata.supportsRefCursors() for an effective runtime decision.

    • supportsScrollableResults

      boolean supportsScrollableResults()
      Whether the driver reported support for scroll-insensitive result sets.
      See Also:
    • supportsGetGeneratedKeys

      boolean supportsGetGeneratedKeys()
      Whether the driver reported support for generated-key retrieval.
      See Also:
    • supportsBatchUpdates

      boolean supportsBatchUpdates()

      Whether the driver reported support for JDBC batch updates.

      A true answer may also represent a defensive fallback when the driver could not be asked. Use JdbcMetadata.supportsBatchUpdates() for an effective runtime decision.

    • supportsDataDefinitionInTransaction

      boolean supportsDataDefinitionInTransaction()
      Whether the driver reported that DDL is supported within transactions.
    • doesDataDefinitionCauseTransactionCommit

      boolean doesDataDefinitionCauseTransactionCommit()
      Whether the driver reported that DDL causes an implicit transaction commit.
    • getSqlStateType

      SQLStateType getSqlStateType()
      The SQL-state coding scheme reported by the JDBC driver.
    • getUrl

      String getUrl()
      The JDBC URL reported by the driver.
    • getDriver

      String getDriver()
      The JDBC driver name.
    • getTransactionIsolation

      int getTransactionIsolation()
      The bootstrap connection's transaction isolation level.
    • getDefaultTransactionIsolation

      int getDefaultTransactionIsolation()
      The default transaction isolation level reported by the driver.
    • getDefaultFetchSize

      int getDefaultFetchSize()
      The default JDBC fetch size observed from the bootstrap connection.
    • getSequenceInformationList

      default List<SequenceInformation> getSequenceInformationList()
      Information describing the database sequences.