Package it.unibz.inf.ontop.dbschema.impl
Class DefaultSchemaCatalogDBMetadataProvider
- java.lang.Object
-
- it.unibz.inf.ontop.dbschema.impl.AbstractDBMetadataProvider
-
- it.unibz.inf.ontop.dbschema.impl.DefaultSchemaCatalogDBMetadataProvider
-
- All Implemented Interfaces:
DBMetadataProvider,MetadataLookup,MetadataProvider
- Direct Known Subclasses:
H2DBMetadataProvider,JTDSDBMetadataProvider,SQLServerDBMetadataProvider
public abstract class DefaultSchemaCatalogDBMetadataProvider extends AbstractDBMetadataProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class it.unibz.inf.ontop.dbschema.impl.AbstractDBMetadataProvider
AbstractDBMetadataProvider.DefaultRelationIdComponentsFactory, AbstractDBMetadataProvider.QuotedIDFactoryFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCATALOG_INDEXprotected static intSCHEMA_INDEX-
Fields inherited from class it.unibz.inf.ontop.dbschema.impl.AbstractDBMetadataProvider
connection, dbParameters, escape, LOGGER, metadata, rawIdFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons)protectedDefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons, AbstractDBMetadataProvider.DefaultRelationIdComponentsFactory defaultsFactory)protectedDefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons, String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected it.unibz.inf.ontop.com.google.common.collect.ImmutableList<RelationID>getAllIDs(RelationID id)protected RelationIDgetCanonicalRelationId(RelationID id)protected StringgetRelationCatalog(RelationID id)protected RelationIDgetRelationID(ResultSet rs, String catalogNameColumn, String schemaNameColumn, String tableNameColumn)protected StringgetRelationName(RelationID id)protected StringgetRelationSchema(RelationID id)-
Methods inherited from class it.unibz.inf.ontop.dbschema.impl.AbstractDBMetadataProvider
checkSameRelationID, escapeRelationIdComponentPattern, extractBlackBoxViewByConnectingToDB, extractBlackBoxViewWithoutConnectingToDB, extractSQLTypeName, getBlackBoxView, getDBParameters, getQuotedIDFactory, getRelation, getRelationIDs, getRelationIDsResultSet, insertIntegrityConstraints, isRelationExcluded, makeQueryMinimizeResultSet, normalizeAndOptimizeRelations
-
-
-
-
Field Detail
-
SCHEMA_INDEX
protected static final int SCHEMA_INDEX
- See Also:
- Constant Field Values
-
CATALOG_INDEX
protected static final int CATALOG_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultSchemaCatalogDBMetadataProvider
protected DefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons, String sql) throws MetadataExtractionException
- Throws:
MetadataExtractionException
-
DefaultSchemaCatalogDBMetadataProvider
protected DefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons) throws MetadataExtractionException
- Throws:
MetadataExtractionException
-
DefaultSchemaCatalogDBMetadataProvider
protected DefaultSchemaCatalogDBMetadataProvider(Connection connection, AbstractDBMetadataProvider.QuotedIDFactoryFactory idFactoryProvider, CoreSingletons coreSingletons, AbstractDBMetadataProvider.DefaultRelationIdComponentsFactory defaultsFactory) throws MetadataExtractionException
- Throws:
MetadataExtractionException
-
-
Method Detail
-
getCanonicalRelationId
protected RelationID getCanonicalRelationId(RelationID id)
- Specified by:
getCanonicalRelationIdin classAbstractDBMetadataProvider
-
getAllIDs
protected it.unibz.inf.ontop.com.google.common.collect.ImmutableList<RelationID> getAllIDs(RelationID id)
- Specified by:
getAllIDsin classAbstractDBMetadataProvider
-
getRelationCatalog
protected String getRelationCatalog(RelationID id)
- Specified by:
getRelationCatalogin classAbstractDBMetadataProvider
-
getRelationSchema
protected String getRelationSchema(RelationID id)
- Specified by:
getRelationSchemain classAbstractDBMetadataProvider
-
getRelationName
protected String getRelationName(RelationID id)
- Specified by:
getRelationNamein classAbstractDBMetadataProvider
-
getRelationID
protected RelationID getRelationID(ResultSet rs, String catalogNameColumn, String schemaNameColumn, String tableNameColumn) throws SQLException
- Specified by:
getRelationIDin classAbstractDBMetadataProvider- Throws:
SQLException
-
-