Top Description Fields Constructors Methods
org.eclipse.persistence.tools.schemaframework

public Class DynamicSchemaManager

extends SchemaManager
Class Inheritance
Imports
java.util.Collection, org.eclipse.persistence.dynamic.DynamicType, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.sessions.DatabaseSession

Extended SchemaManager to handle the creation of tables for dynamic types.

Todo

Handle the case where the provided session uses an external transaction controller or is from an external connection pool. In these cases a custom direct connection must be created cloning the minimal state needed from the primary session.

Author
dclarke, mnorman
Since
EclipseLink 1.2

Field Summary

Inherited from org.eclipse.persistence.tools.schemaframework.SchemaManager:
createDatabaseSchemascreatedDatabaseSchemascreatedDatabaseSchemasOnDatabasecreateSchemaWritercreateSQLFilesdefaultTableCreatordropDatabaseSchemasdropSchemaWriterFAST_TABLE_CREATORFORCE_DROPsession

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
createTables(DynamicType... entityTypes)

Create the database tables for one or more entityTypes.

public void
createTables(boolean generateFKConstraints, DynamicType... entityTypes)

public void
createTables(boolean generateFKConstraints, Collection<DynamicType> entityTypes)

Inherited from org.eclipse.persistence.tools.schemaframework.SchemaManager:
alterSequenceappendToDDLWriterappendToDDLWriterbuildFieldTypesbuildSequenceDefinitionbuildSequenceDefinitionscheckTableExistscheckTableExistscloseDDLWritercloseDDLWritercollectDatabaseSchemasForDropcreateConstraintscreateDefaultTablescreateForeignConstraintscreateObjectcreateOrReplaceSequencescreateOrReplaceSequencescreateSequencescreateUniqueConstraintsdropConstraintsdropDatabaseSchemasdropDefaultTablesdropObjectdropSequencesdropTableextendDefaultTablesfinalizegenerateStoredProceduresgenerateStoredProceduresgenerateStoredProceduresAndAmendmentClassgenerateStoredProceduresAndAmendmentClassgetAccessorgetAllColumnNamesgetAllColumnNamesgetAllTableNamesgetAllTableNamesgetColumnInfogetColumnInfogetDefaultTableCreatorgetDropSchemaWritergetSessiongetTableInfogetWriteroutputCreateDDLToFileoutputCreateDDLToWriteroutputDDLToDatabaseoutputDDLToFileoutputDDLToWriteroutputDropDDLToFileoutputDropDDLToWriterprocessSequenceDefinitionprocessSequenceDefinitionsreplaceDefaultTablesreplaceDefaultTablesreplaceDefaultTablesreplaceObjectreplaceSequencessetCreateDatabaseSchemassetCreateSQLFilessetSessionshouldCreateDatabaseSchemashouldWriteToDatabase

Constructor Detail

DynamicSchemaManagerback to summary
public DynamicSchemaManager(DatabaseSession session)

Method Detail

createTablesback to summary
public void createTables(DynamicType... entityTypes)

Create the database tables for one or more entityTypes.

Todo

At present this method will create all tables that do not exist. It needs to be made specific to the entityTypes.

createTablesback to summary
public void createTables(boolean generateFKConstraints, DynamicType... entityTypes)
createTablesback to summary
public void createTables(boolean generateFKConstraints, Collection<DynamicType> entityTypes)