Codota Logo
RDBMetadataExtractionTools.loadMetadata
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getSystemService (Context)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now