public class Schema extends Object
| Constructor and Description |
|---|
Schema(String name)
Creates a data set schema.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTable(Table table)
Adds a table to the schema.
|
SchemaDifference |
compare(Schema actualSchema)
Compares the schema with the given actual schema.
|
String |
getName() |
Table |
getTable(String tableName)
Gets the table for the given name.
|
List<String> |
getTableNames() |
List<Table> |
getTables() |
public Schema(String name)
name - The name of the schema, not nullpublic String getName()
public List<String> getTableNames()
public Table getTable(String tableName)
tableName - The table name to look for, not nullpublic void addTable(Table table)
table - The table to add, not nullUnitilsException - When a table with the same name was already addedpublic SchemaDifference compare(Schema actualSchema)
actualSchema - The schema to compare with, not nullCopyright © 2016. All Rights Reserved.