public abstract class AbstractDBMetadataProvider extends Object implements DBMetadataProvider
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractDBMetadataProvider.DefaultRelationIdComponentsFactory |
protected static interface |
AbstractDBMetadataProvider.QuotedIDFactoryFactory |
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected it.unibz.inf.ontop.dbschema.DBParameters |
dbParameters |
protected static org.slf4j.Logger |
LOGGER |
protected DatabaseMetaData |
metadata |
protected it.unibz.inf.ontop.dbschema.QuotedIDFactory |
rawIdFactory |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSameRelationID(it.unibz.inf.ontop.dbschema.RelationID extractedId,
it.unibz.inf.ontop.dbschema.RelationID givenId) |
protected abstract it.unibz.inf.ontop.com.google.common.collect.ImmutableList<it.unibz.inf.ontop.dbschema.RelationID> |
getAllIDs(it.unibz.inf.ontop.dbschema.RelationID id) |
protected abstract it.unibz.inf.ontop.dbschema.RelationID |
getCanonicalRelationId(it.unibz.inf.ontop.dbschema.RelationID id) |
it.unibz.inf.ontop.dbschema.DBParameters |
getDBParameters() |
it.unibz.inf.ontop.dbschema.QuotedIDFactory |
getQuotedIDFactory() |
it.unibz.inf.ontop.dbschema.NamedRelationDefinition |
getRelation(it.unibz.inf.ontop.dbschema.RelationID id0) |
protected abstract String |
getRelationCatalog(it.unibz.inf.ontop.dbschema.RelationID id) |
protected abstract it.unibz.inf.ontop.dbschema.RelationID |
getRelationID(ResultSet rs,
String catalogNameColumn,
String schemaNameColumn,
String tableNameColum) |
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<it.unibz.inf.ontop.dbschema.RelationID> |
getRelationIDs() |
protected ResultSet |
getRelationIDsResultSet() |
protected abstract String |
getRelationName(it.unibz.inf.ontop.dbschema.RelationID id) |
protected abstract String |
getRelationSchema(it.unibz.inf.ontop.dbschema.RelationID id) |
void |
insertIntegrityConstraints(it.unibz.inf.ontop.dbschema.NamedRelationDefinition relation,
it.unibz.inf.ontop.dbschema.MetadataLookup metadataLookup) |
protected boolean |
isRelationExcluded(it.unibz.inf.ontop.dbschema.RelationID id) |
protected static final org.slf4j.Logger LOGGER
protected final Connection connection
protected final it.unibz.inf.ontop.dbschema.DBParameters dbParameters
protected final DatabaseMetaData metadata
protected final it.unibz.inf.ontop.dbschema.QuotedIDFactory rawIdFactory
public it.unibz.inf.ontop.dbschema.QuotedIDFactory getQuotedIDFactory()
getQuotedIDFactory in interface it.unibz.inf.ontop.dbschema.MetadataLookuppublic it.unibz.inf.ontop.dbschema.DBParameters getDBParameters()
getDBParameters in interface it.unibz.inf.ontop.dbschema.MetadataProviderprotected boolean isRelationExcluded(it.unibz.inf.ontop.dbschema.RelationID id)
protected ResultSet getRelationIDsResultSet() throws SQLException
SQLExceptionpublic it.unibz.inf.ontop.com.google.common.collect.ImmutableList<it.unibz.inf.ontop.dbschema.RelationID> getRelationIDs()
throws MetadataExtractionException
getRelationIDs in interface it.unibz.inf.ontop.dbschema.MetadataProviderMetadataExtractionExceptionprotected abstract it.unibz.inf.ontop.dbschema.RelationID getRelationID(ResultSet rs, String catalogNameColumn, String schemaNameColumn, String tableNameColum) throws SQLException
SQLExceptionprotected void checkSameRelationID(it.unibz.inf.ontop.dbschema.RelationID extractedId,
it.unibz.inf.ontop.dbschema.RelationID givenId)
throws MetadataExtractionException
MetadataExtractionExceptionpublic it.unibz.inf.ontop.dbschema.NamedRelationDefinition getRelation(it.unibz.inf.ontop.dbschema.RelationID id0)
throws MetadataExtractionException
getRelation in interface it.unibz.inf.ontop.dbschema.MetadataLookupMetadataExtractionExceptionpublic void insertIntegrityConstraints(it.unibz.inf.ontop.dbschema.NamedRelationDefinition relation,
it.unibz.inf.ontop.dbschema.MetadataLookup metadataLookup)
throws MetadataExtractionException
insertIntegrityConstraints in interface it.unibz.inf.ontop.dbschema.MetadataProviderMetadataExtractionExceptionprotected abstract it.unibz.inf.ontop.dbschema.RelationID getCanonicalRelationId(it.unibz.inf.ontop.dbschema.RelationID id)
protected abstract it.unibz.inf.ontop.com.google.common.collect.ImmutableList<it.unibz.inf.ontop.dbschema.RelationID> getAllIDs(it.unibz.inf.ontop.dbschema.RelationID id)
protected abstract String getRelationCatalog(it.unibz.inf.ontop.dbschema.RelationID id)
protected abstract String getRelationSchema(it.unibz.inf.ontop.dbschema.RelationID id)
protected abstract String getRelationName(it.unibz.inf.ontop.dbschema.RelationID id)
Copyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.