public class ModelHelper extends Object
| Constructor and Description |
|---|
ModelHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForForeignKeysToAndFromTables(Database model,
Table[] tables)
Determines whether one of the tables in the list has a foreign key to a table outside of the list,
or a table outside of the list has a foreign key to one of the tables in the list.
|
static void |
getDelimitedName(String name,
StringBuilder query,
String delimiterToken) |
void |
removeForeignKeysToAndFromTables(Database model,
Table[] tables)
Removes all foreign keys from the tables in the list to tables outside of the list,
or from tables outside of the list to tables in the list.
|
public void checkForForeignKeysToAndFromTables(Database model, Table[] tables) throws ModelException
model - The database modeltables - The tablesModelException - If such a foreign key existspublic void removeForeignKeysToAndFromTables(Database model, Table[] tables)
model - The database modeltables - The tablespublic static void getDelimitedName(String name, StringBuilder query, String delimiterToken)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.