Interface ExtractedDatabaseMetaData

All Known Implementing Classes:
ExtractedDatabaseMetaDataImpl

public interface ExtractedDatabaseMetaData
Information extracted from DatabaseMetaData regarding what the JDBC driver reports as being supported or not. Obviously DatabaseMetaData reports many things, these are a few in which we have particular interest.
  • Method Details

    • getJdbcEnvironment

      JdbcEnvironment getJdbcEnvironment()
      Obtain the JDBC Environment from which this metadata came.
      Returns:
      The JDBC environment
    • getDatabaseProductName

      String getDatabaseProductName()
      The name of the database, according to the JDBC driver.
    • getDatabaseProductVersion

      String getDatabaseProductVersion()
      The version of the database, according to the JDBC driver.
    • supportsSchemas

      boolean supportsSchemas()
      Does this driver support named schemas in DML?
      Returns:
      false indicates the driver reported false; true indicates the driver reported true or that the driver could not be asked.
    • supportsCatalogs

      boolean supportsCatalogs()
      Does this driver support named catalogs in DML?
      Returns:
      false indicates the driver reported false; true indicates the driver reported true or that the driver could not be asked.
    • getConnectionCatalogName

      String getConnectionCatalogName()
      Retrieve the name of the catalog in effect when we connected to the database.
      Returns:
      The catalog name
      See Also:
    • getConnectionSchemaName

      String getConnectionSchemaName()
      Retrieve the name of the schema in effect when we connected to the database.
      Returns:
      The schema name
    • supportsNamedParameters

      boolean supportsNamedParameters()
      Does the driver report supporting named parameters?
      Returns:
      true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.
      See Also:
    • supportsRefCursors

      boolean supportsRefCursors()
      Does the driver report supporting Types.REF_CURSOR?
      Returns:
      true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.
      See Also:
    • supportsScrollableResults

      boolean supportsScrollableResults()
      Did the driver report to supporting scrollable result sets?
      Returns:
      True if the driver reported to support ResultSet.TYPE_SCROLL_INSENSITIVE.
      See Also:
    • supportsGetGeneratedKeys

      boolean supportsGetGeneratedKeys()
      Did the driver report to supporting retrieval of generated keys?
      Returns:
      True if the driver reported to support calls to Statement.getGeneratedKeys()
      See Also:
    • supportsBatchUpdates

      boolean supportsBatchUpdates()
      Did the driver report to supporting batched updates?
      Returns:
      True if the driver supports batched updates
      See Also:
    • supportsDataDefinitionInTransaction

      boolean supportsDataDefinitionInTransaction()
      Did the driver report to support performing DDL within transactions?
      Returns:
      True if the drivers supports DDL statements within transactions.
      See Also:
    • doesDataDefinitionCauseTransactionCommit

      boolean doesDataDefinitionCauseTransactionCommit()
      Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.
      Returns:
      True if the driver/database performs an implicit commit of transaction when DDL statement is performed
      See Also:
    • getSqlStateType

      SQLStateType getSqlStateType()
      Retrieve the type of codes the driver says it uses for SQLState. They might follow either the X/Open standard or the SQL92 standard.
      Returns:
      The SQLState strategy reportedly used by this driver/database.
      See Also:
    • getUrl

      String getUrl()
      Retrieve the JDBC URL.
      See Also:
    • getDriver

      String getDriver()
      Retrieve the JDBC driver name.
      See Also:
    • getTransactionIsolation

      int getTransactionIsolation()
      Retrieve the transaction isolation level.
      See Also:
    • getDefaultTransactionIsolation

      int getDefaultTransactionIsolation()
      Retrieve the default transaction isolation level.
      See Also:
    • getDefaultFetchSize

      int getDefaultFetchSize()
      Retrieve the default JDBC fetch size.
    • getSequenceInformationList

      default List<SequenceInformation> getSequenceInformationList()
      Retrieve the list of SequenceInformation objects which describe the underlying database sequences.
      Returns:
      SequenceInformation objects.