org.eclipse.persistence.tools.schemaframework
public class TableCreator extends Object
Constructor and Description |
---|
TableCreator() |
TableCreator(Vector tableDefinitions) |
Modifier and Type | Method and Description |
---|---|
void |
addTableDefinition(TableDefinition tableDefinition)
Add the table.
|
void |
addTableDefinitions(Collection tableDefs)
Add a set of tables.
|
void |
createConstraints(DatabaseSession session)
Create constraints.
|
void |
createConstraints(DatabaseSession session,
SchemaManager schemaManager)
Create constraints.
|
void |
createTables(DatabaseSession session)
This creates the tables on the database.
|
void |
createTables(DatabaseSession session,
SchemaManager schemaManager)
This creates the tables on the database.
|
void |
dropConstraints(DatabaseSession session)
Drop the table constraints from the database.
|
void |
dropConstraints(DatabaseSession session,
SchemaManager schemaManager)
Drop the table constraints from the database.
|
void |
dropTables(DatabaseSession session)
Drop the tables from the database.
|
void |
dropTables(DatabaseSession session,
SchemaManager schemaManager)
Drop the tables from the database.
|
String |
getName()
Return the name.
|
Vector |
getTableDefinitions()
Return the tables.
|
void |
replaceTables(DatabaseSession session)
Recreate the tables on the database.
|
void |
replaceTables(DatabaseSession session,
SchemaManager schemaManager)
Recreate the tables on the database.
|
void |
replaceTables(DatabaseSession session,
SchemaManager schemaManager,
boolean keepSequenceTable)
Recreate the tables on the database.
|
void |
setName(String name)
Set the name.
|
void |
setTableDefinitions(Vector tableDefinitions)
Set the tables.
|
public TableCreator()
public TableCreator(Vector tableDefinitions)
public void addTableDefinition(TableDefinition tableDefinition)
public void addTableDefinitions(Collection tableDefs)
public void createConstraints(DatabaseSession session)
public void createConstraints(DatabaseSession session, SchemaManager schemaManager)
public void createTables(DatabaseSession session)
public void createTables(DatabaseSession session, SchemaManager schemaManager)
public void dropConstraints(DatabaseSession session)
public void dropConstraints(DatabaseSession session, SchemaManager schemaManager)
public void dropTables(DatabaseSession session)
public void dropTables(DatabaseSession session, SchemaManager schemaManager)
public String getName()
public Vector getTableDefinitions()
public void replaceTables(DatabaseSession session)
public void replaceTables(DatabaseSession session, SchemaManager schemaManager)
public void replaceTables(DatabaseSession session, SchemaManager schemaManager, boolean keepSequenceTable)
public void setName(String name)
public void setTableDefinitions(Vector tableDefinitions)