Class CurrentModel
java.lang.Object
io.ebeaninternal.dbmigration.model.CurrentModel
Reads EbeanServer bean descriptors to build the current model.
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentModel(io.ebeaninternal.api.SpiEbeanServer server) Construct with a given EbeanServer instance for DDL create all generation, not migration.CurrentModel(io.ebeaninternal.api.SpiEbeanServer server, io.ebean.config.DbConstraintNaming constraintNaming) Construct with a given EbeanServer, platformDdl and constraintNaming convention. -
Method Summary
Modifier and TypeMethodDescriptionReturn as a ChangeSet.Return the 'Create' DDL.Return the 'Drop' DDL.Return the tables that have partitioning.booleanReturn true if the model contains tables that are partitioned.read()Return the current model by reading all the bean descriptors and properties.voidsetChangeSet(ChangeSet changeSet)
-
Constructor Details
-
CurrentModel
Construct with a given EbeanServer instance for DDL create all generation, not migration. -
CurrentModel
public CurrentModel(io.ebeaninternal.api.SpiEbeanServer server, io.ebean.config.DbConstraintNaming constraintNaming) Construct with a given EbeanServer, platformDdl and constraintNaming convention.Note the EbeanServer is just used to read the BeanDescriptors and platformDdl supplies the platform specific handling on
-
-
Method Details
-
getDdlOptions
-
isTablePartitioning
Return true if the model contains tables that are partitioned. -
getPartitionedTables
Return the tables that have partitioning. -
read
Return the current model by reading all the bean descriptors and properties. -
setChangeSet
-
getChangeSet
Return as a ChangeSet. -
getCreateDdl
Return the 'Create' DDL. -
getDropAllDdl
Return the 'Drop' DDL.
-