Tabnine Logo
RDBMetadataExtractionTools.loadMetadata
Code IndexAdd Tabnine to your IDE (free)

How to use
loadMetadata
method
in
it.unibz.inf.ontop.dbschema.RDBMetadataExtractionTools

Best Java code snippets using it.unibz.inf.ontop.dbschema.RDBMetadataExtractionTools.loadMetadata (Showing top 6 results out of 315)

origin: ontop/ontop

private void addDatabaseTableToDataSetComboBox() {
  DefaultComboBoxModel<RelationDefinition> relationList = new DefaultComboBoxModel<>();
  try {
    Connection conn = ConnectionTools.getConnection(selectedSource);
    RDBMetadata md = RDBMetadataExtractionTools.createMetadata(conn, obdaModel.getTypeFactory(), jdbcTypeMapper);
    // this operation is EXPENSIVE -- only names are needed + a flag for table/view
    RDBMetadataExtractionTools.loadMetadata(md, conn, null);
    for (DatabaseRelationDefinition relation : md.getDatabaseRelations()) {
      relationList.addElement(relation);
    }
  }
  catch (SQLException e) {
    // NO-OP
  }
  cboDataSet.setModel(relationList);
  cboDataSet.setSelectedIndex(-1);
}
origin: ontop/ontop

/***
 * extract mappings from given datasource, and insert them into the pre-processed mapping
 *
 * Duplicate Exception may happen,
 * since mapping id is generated randomly and same id may occur
 */
private SQLPPMapping bootstrapMappings(SQLPPMapping ppMapping)
    throws SQLException, DuplicateMappingException {
  if (ppMapping == null) {
    throw new IllegalArgumentException("Model should not be null");
  }
  try (Connection conn = LocalJDBCConnectionUtils.createConnection(settings)) {
    RDBMetadata metadata = RDBMetadataExtractionTools.createMetadata(conn, typeFactory, jdbcTypeMapper);
    // this operation is EXPENSIVE
    RDBMetadataExtractionTools.loadMetadata(metadata, conn, null);
    return bootstrapMappings(metadata, ppMapping);
  }
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-owlapi

/***
 * extract mappings from given datasource, and insert them into the pre-processed mapping
 *
 * Duplicate Exception may happen,
 * since mapping id is generated randomly and same id may occur
 */
private SQLPPMapping bootstrapMappings(SQLPPMapping ppMapping)
    throws SQLException, DuplicateMappingException {
  if (ppMapping == null) {
    throw new IllegalArgumentException("Model should not be null");
  }
  try (Connection conn = LocalJDBCConnectionUtils.createConnection(settings)) {
    RDBMetadata metadata = RDBMetadataExtractionTools.createMetadata(conn);
    // this operation is EXPENSIVE
    RDBMetadataExtractionTools.loadMetadata(metadata, conn, null);
    return bootstrapMappings(metadata, ppMapping);
  }
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

RDBMetadataExtractionTools.loadMetadata(metadata, connection, null);
  });
  RDBMetadataExtractionTools.loadMetadata(metadata, connection, realTables);
origin: ontop/ontop

RDBMetadataExtractionTools.loadMetadata(metadata, connection, null);
  });
  RDBMetadataExtractionTools.loadMetadata(metadata, connection, realTables);
origin: ontop/ontop

RDBMetadataExtractionTools.loadMetadata(metadata, conn, null);
it.unibz.inf.ontop.dbschemaRDBMetadataExtractionToolsloadMetadata

Javadoc

Retrieves the database metadata (table schema and database constraints) This method either uses the given list of tables or if it is null then it retrieves all the complete list of tables from the connection metadata

Popular methods of RDBMetadataExtractionTools

  • createMetadata
    Creates database metadata description (but does not load metadata)
  • createDummyMetadata
  • extractForeignKeys
  • extractPrimaryKey
  • extractUniqueAttributes
  • getCatalog
  • getForeignKeys
    Retrieves the foreign keys for the table
  • getOracleDefaultOwner
  • getPrimaryKey
    Retrieves the primary key for the table
  • getTableList
    Retrieve metadata for a specific database engine
  • getTableListDefault
    Retrieve the table and view list from the JDBC driver (works for most database engines, e.g., MySQL
  • getUniqueAttributes
    Retrieves the unique attributes(s)
  • getTableListDefault,
  • getUniqueAttributes

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Reference (javax.naming)
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now