java.lang.Object
org.firebirdsql.jdbc.DbMetadataMediator
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Holder class for query text and parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<String>
abstract FirebirdSupportInfo
Provides theFirebirdSupportInfo
for the connection of the associated database metadata.abstract GDSType
abstract FBDatabaseMetaData
AFBDatabaseMetaData
instance of the connection that created this mediator.abstract OdsVersion
abstract boolean
static RowDescriptorBuilder
newRowDescriptorBuilder
(int size) abstract ResultSet
performMetaDataQuery
(DbMetadataMediator.MetadataQuery metadataQuery) Executes the provided metadata query on the connection of the associated database metadata.
-
Constructor Details
-
DbMetadataMediator
public DbMetadataMediator()
-
-
Method Details
-
newRowDescriptorBuilder
-
getFirebirdSupportInfo
Provides theFirebirdSupportInfo
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
AFBDatabaseMetaData
instance of the connection that created this mediator.- Returns:
- metadata instance
-
getGDSType
- Returns:
- GDSType of the current connection
-
isUseCatalogAsPackage
public abstract boolean isUseCatalogAsPackage()- Returns:
- value of the
useCatalogAsPackage
connection property if packages are supported, otherwisefalse
- Since:
- 6
-
getClientInfoPropertyNames
- Returns:
- the client info properties to report for
FBDatabaseMetaData.getClientInfoProperties()
. - Since:
- 6
-
getOdsVersion
- Returns:
- the ODS version of the database
- Since:
- 6
-