Class DynamicSchemaManager
java.lang.Object
org.eclipse.persistence.tools.schemaframework.SchemaManager
org.eclipse.persistence.tools.schemaframework.DynamicSchemaManager
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
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.schemaframework.SchemaManager
createDatabaseSchemas, createdDatabaseSchemas, createdDatabaseSchemasOnDatabase, createSchemaWriter, createSQLFiles, defaultTableCreator, dropDatabaseSchemas, dropSchemaWriter, FAST_TABLE_CREATOR, FORCE_DROP, session
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createTables
(boolean generateFKConstraints, Collection<DynamicType> entityTypes) void
createTables
(boolean generateFKConstraints, DynamicType... entityTypes) void
createTables
(DynamicType... entityTypes) Create the database tables for one or more entityTypes.Methods inherited from class org.eclipse.persistence.tools.schemaframework.SchemaManager
alterSequence, appendToDDLWriter, appendToDDLWriter, buildFieldTypes, buildSequenceDefinition, buildSequenceDefinitions, checkTableExists, checkTableExists, closeDDLWriter, closeDDLWriter, collectDatabaseSchemasForDrop, createConstraints, createDefaultTables, createObject, createOrReplaceSequences, createOrReplaceSequences, createSequences, dropConstraints, dropDatabaseSchemas, dropDefaultTables, dropObject, dropSequences, dropTable, extendDefaultTables, finalize, generateStoredProcedures, generateStoredProcedures, generateStoredProceduresAndAmendmentClass, generateStoredProceduresAndAmendmentClass, getAccessor, getAllColumnNames, getAllColumnNames, getAllTableNames, getAllTableNames, getColumnInfo, getDefaultTableCreator, getDropSchemaWriter, getSession, getTableInfo, getWriter, outputCreateDDLToFile, outputCreateDDLToWriter, outputDDLToDatabase, outputDDLToFile, outputDDLToWriter, outputDropDDLToFile, outputDropDDLToWriter, processSequenceDefinition, processSequenceDefinitions, replaceDefaultTables, replaceDefaultTables, replaceDefaultTables, replaceObject, replaceSequences, setCreateDatabaseSchemas, setCreateSQLFiles, setSession, shouldCreateDatabaseSchema, shouldWriteToDatabase
-
Constructor Details
-
DynamicSchemaManager
-
-
Method Details
-
createTables
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.- Parameters:
entityTypes
-
-
createTables
-
createTables
-