Skip to content

getInvolvedSchemas

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

API

Set<String> getInvolvedSchemas(String tableId)

Description

Return a Set of schema identifiers which a table is used in.

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 schemas which use the table "ssf1_jpd"
Set<String> schemas = staging.getInvolvedSchemas("ssf1_jpd");

Assert.assertEquals(3, schemas.size());
Assert.assertTrue(schemas.contains("kidney_renal_pelvis"));
Assert.assertTrue(schemas.contains("bladder"));
Assert.assertTrue(schemas.contains("urethra"));
Clone this wiki locally