Class DbMetadataMediator

java.lang.Object
org.firebirdsql.jdbc.DbMetadataMediator

@InternalApi public abstract class DbMetadataMediator extends Object
Provides access to the database connection for executing database metadata queries.

This class is internal API of Jaybird. Future versions may radically change, move, or make inaccessible this type.

Since:
4.0
Author:
Mark Rotteveel
  • Constructor Details

    • DbMetadataMediator

      public DbMetadataMediator()
  • Method Details

    • newRowDescriptorBuilder

      public static RowDescriptorBuilder newRowDescriptorBuilder(int size)
    • getFirebirdSupportInfo

      public abstract FirebirdSupportInfo getFirebirdSupportInfo()
      Provides the FirebirdSupportInfo for the connection of the associated database metadata.
      Returns:
      Firebird support info object.
    • performMetaDataQuery

      public abstract ResultSet performMetaDataQuery(DbMetadataMediator.MetadataQuery metadataQuery) throws SQLException
      Executes the provided metadata query on the connection of the associated database metadata.
      Parameters:
      metadataQuery - Result set producing query to execute
      Returns:
      Result set of the query
      Throws:
      SQLException - For failures to execute the query
    • getMetaData

      public abstract FBDatabaseMetaData getMetaData()
      A FBDatabaseMetaData instance of the connection that created this mediator.
      Returns:
      metadata instance
    • getGDSType

      public abstract GDSType getGDSType()
      Returns:
      GDSType of the current connection
    • isUseCatalogAsPackage

      public abstract boolean isUseCatalogAsPackage()
      Returns:
      value of the useCatalogAsPackage connection property if packages are supported, otherwise false
      Since:
      6
    • getClientInfoPropertyNames

      public abstract Collection<String> getClientInfoPropertyNames()
      Returns:
      the client info properties to report for FBDatabaseMetaData.getClientInfoProperties().
      Since:
      6
    • getOdsVersion

      public abstract OdsVersion getOdsVersion()
      Returns:
      the ODS version of the database
      Since:
      6