|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbunit.dataset.Schema
public class Schema
A data set schema
| Constructor Summary | |
|---|---|
Schema(String name)
Creates a data set schema. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Schema(String name)
name - The name of the schema, not null| Method Detail |
|---|
public String getName()
public List<Table> getTables()
public List<String> getTableNames()
public Table getTable(String tableName)
tableName - The table name to look for, not null
public void addTable(Table table)
table - The table to add, not null
UnitilsException - When a table with the same name was already addedpublic SchemaDifference compare(Schema actualSchema)
actualSchema - The schema to compare with, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||