Skip to content

getInvolvedTables

Chuck May edited this page Apr 14, 2015 · 6 revisions

API

public Set<String> getInvolvedTables(String schemaId)

Description

Return a Set of tables identifiers involved in a schema.

A schema can use a table in the following places:

  • schema selection
  • input validation
  • an an inclusion/exclusion for a mapping
  • the table path of a mapping

Examples

Staging staging = Staging.getInstance(CsDataProvider.getInstance(CsVersion.v020550));

// get all tables used in the "brain" schema"
Set<String> tables = staging.getInvolvedTables("brain");

Assert.assertEquals(61, tables.size());
Assert.assertTrue(tables.contains("schema_selection_brain"));
Assert.assertTrue(tables.contains("ssf7_sqk"));
Assert.assertTrue(tables.contains("ajcc6_n_codes"));
Assert.assertTrue(tables.contains("ssf18_snm"));
Assert.assertTrue(tables.contains("ajcc7_stage_una"));
Clone this wiki locally