|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.tools.schemaframework.TableCreator
public class TableCreator
Purpose: This class is reponsible for creating the tables defined in the project. A specific subclass of this class is created for each project. The specific table information is defined in the subclass.
Field Summary | |
---|---|
protected boolean |
ignoreDatabaseException
|
protected java.lang.String |
name
|
protected java.util.Vector |
tableDefinitions
|
Constructor Summary | |
---|---|
TableCreator()
|
|
TableCreator(java.util.Vector tableDefinitions)
|
Method Summary | |
---|---|
void |
addTableDefinition(TableDefinition tableDefinition)
Add the table. |
void |
addTableDefinitions(java.util.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. |
java.lang.String |
getName()
Return the name. |
protected java.lang.String |
getSequenceTableName(Session session)
|
java.util.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(java.lang.String name)
Set the name. |
void |
setTableDefinitions(java.util.Vector tableDefinitions)
Set the tables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector tableDefinitions
protected java.lang.String name
protected boolean ignoreDatabaseException
Constructor Detail |
---|
public TableCreator()
public TableCreator(java.util.Vector tableDefinitions)
Method Detail |
---|
public void addTableDefinition(TableDefinition tableDefinition)
public void addTableDefinitions(java.util.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 java.lang.String getName()
public java.util.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(java.lang.String name)
public void setTableDefinitions(java.util.Vector tableDefinitions)
protected java.lang.String getSequenceTableName(Session session)
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |