Package org.firebirdsql.jdbc.metadata
Class DbMetadataMediator
- java.lang.Object
- 
- org.firebirdsql.jdbc.metadata.DbMetadataMediator
 
- 
 @InternalApi public abstract class DbMetadataMediator extends java.lang.Object Provides access to the database connection for executing database metadata queries.- Since:
- 4.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDbMetadataMediator.MetadataQueryHolder class for query text and parameters.
 - 
Constructor SummaryConstructors Constructor Description DbMetadataMediator()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract FirebirdSupportInfogetFirebirdSupportInfo()Provides theFirebirdSupportInfofor the connection of the associated database metadata.protected abstract GDSTypegetGDSType()protected abstract FBDatabaseMetaDatagetMetaData()AFBDatabaseMetaDatainstance of the connection that created this mediator.protected abstract intgetOdsMajorVersion()protected abstract intgetOdsMinorVersion()protected booleanisOdsEqualOrAbove(int major, int minor)protected abstract java.sql.ResultSetperformMetaDataQuery(DbMetadataMediator.MetadataQuery metadataQuery)Executes the provided metadata query on the connection of the associated database metadata.
 
- 
- 
- 
Method Detail- 
getFirebirdSupportInfoprotected abstract FirebirdSupportInfo getFirebirdSupportInfo() Provides theFirebirdSupportInfofor the connection of the associated database metadata.- Returns:
- Firebird support info object.
 
 - 
performMetaDataQueryprotected abstract java.sql.ResultSet performMetaDataQuery(DbMetadataMediator.MetadataQuery metadataQuery) throws java.sql.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:
- java.sql.SQLException- For failures to execute the query
 
 - 
getMetaDataprotected abstract FBDatabaseMetaData getMetaData() AFBDatabaseMetaDatainstance of the connection that created this mediator.- Returns:
- metadata instance
 
 - 
getGDSTypeprotected abstract GDSType getGDSType() - Returns:
- GDSType of the current connection
 
 - 
getOdsMajorVersionprotected abstract int getOdsMajorVersion() - Returns:
- ODS major version
 
 - 
getOdsMinorVersionprotected abstract int getOdsMinorVersion() - Returns:
- ODS minor version
 
 - 
isOdsEqualOrAboveprotected final boolean isOdsEqualOrAbove(int major, int minor)
 
- 
 
-