|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbunit.dataset.SchemaFactory
public class SchemaFactory
A builder for creating data set schemas.
| Constructor Summary | |
|---|---|
SchemaFactory()
|
|
| Method Summary | |
|---|---|
protected void |
addRows(org.dbunit.dataset.ITable dbUnitTable,
Table table,
List<String> primaryKeyColumnNames)
Adds the rows of the DbUnit table to the given table. |
protected void |
addTables(org.dbunit.dataset.IDataSet dbUnitDataSet,
Schema schema)
Adds the tables of the DbUnit dataset to the given schema. |
Schema |
createSchemaForDbUnitDataSet(String schemaName,
org.dbunit.dataset.IDataSet dbUnitDataSet)
Creates a data set schema for the given DbUnit dataset. |
Schema |
createSchemaForDbUnitDataSet(String schemaName,
org.dbunit.dataset.IDataSet dbUnitDataSet,
List<String> tablesToInclude)
Creates a data set schema for the given DbUnit dataset. |
protected List<String> |
getPrimaryKeyColumnNames(org.dbunit.dataset.ITable dbUnitTable)
Gets the primary key column names for the given DbUnit table. |
protected boolean |
shouldIgnoreTable(String tableName,
List<String> tablesToInclude)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaFactory()
| Method Detail |
|---|
public Schema createSchemaForDbUnitDataSet(String schemaName,
org.dbunit.dataset.IDataSet dbUnitDataSet)
schemaName - The schema name that this data set is for, not nulldbUnitDataSet - The DbUnit data set, not null
public Schema createSchemaForDbUnitDataSet(String schemaName,
org.dbunit.dataset.IDataSet dbUnitDataSet,
List<String> tablesToInclude)
schemaName - The schema name that this data set is for, not nulldbUnitDataSet - The DbUnit data set, not nulltablesToInclude - Only tables with these names will be returned the rest will be ignored, null for all tables
protected void addTables(org.dbunit.dataset.IDataSet dbUnitDataSet,
Schema schema)
throws org.dbunit.dataset.DataSetException
dbUnitDataSet - The DbUnit dataset containing the tables, not nullschema - The schema to add the tables to, not null
org.dbunit.dataset.DataSetException
protected boolean shouldIgnoreTable(String tableName,
List<String> tablesToInclude)
tableName - The table name to check, not nulltablesToInclude - Names of tables to include, null for all tables
protected void addRows(org.dbunit.dataset.ITable dbUnitTable,
Table table,
List<String> primaryKeyColumnNames)
throws org.dbunit.dataset.DataSetException
dbUnitTable - The DbUnit table containing the rows, not nulltable - The table to add the rows to, not nullprimaryKeyColumnNames - The names of the pk columns, empty if there are none
org.dbunit.dataset.DataSetException
protected List<String> getPrimaryKeyColumnNames(org.dbunit.dataset.ITable dbUnitTable)
throws org.dbunit.dataset.DataSetException
dbUnitTable - The DbUnit table, not null
org.dbunit.dataset.DataSetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||