Class ModelBuildContext
java.lang.Object
io.ebeaninternal.dbmigration.model.build.ModelBuildContext
The context used during DDL generation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionModelBuildContext(ModelContainer model, io.ebean.config.dbplatform.DatabasePlatform databasePlatform, io.ebean.config.DbConstraintNaming naming, boolean platformTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddTableElementCollection(MTable table)voidAdjust the foreign key references on any draft tables (that reference other draft tables).checkConstraintName(String tableName, String columnName, int checkCount)voidcreateDraft(MTable table, boolean draftable)Create the draft table for a given table.fkeyBuilder(MTable destTable)Return a builder to add foreign keys.foreignKeyConstraintName(String tableName, String columnName, int foreignKeyCount)foreignKeyIndexName(String tableName, String[] columns, int indexCount)foreignKeyIndexName(String tableName, String column, int indexCount)getColumnDefn(io.ebeaninternal.server.deploy.BeanProperty p, boolean strict)Render the DB type for this property given the strict mode.io.ebean.config.dbplatform.DbPlatformTypeMappingReturn the map used to determine the DB specific type for a given bean property.normaliseTable(String baseTable)primaryKeyName(String tableName)uniqueConstraintName(String tableName, String[] columnNames, int indexCount)uniqueConstraintName(String tableName, String columnName, int indexCount)
-
Constructor Details
-
ModelBuildContext
public ModelBuildContext(ModelContainer model, io.ebean.config.dbplatform.DatabasePlatform databasePlatform, io.ebean.config.DbConstraintNaming naming, boolean platformTypes)
-
-
Method Details
-
adjustDraftReferences
Adjust the foreign key references on any draft tables (that reference other draft tables). This is called as a 'second pass' after all the draft tables have been identified. -
normaliseTable
-
-
foreignKeyConstraintName
-
foreignKeyIndexName
-
foreignKeyIndexName
-
indexName
-
indexName
-
uniqueConstraintName
-
uniqueConstraintName
-
checkConstraintName
-
addTable
-
addTableElementCollection
-
addIndex
-
getDbTypeMap
Return the map used to determine the DB specific type for a given bean property. -
getColumnDefn
Render the DB type for this property given the strict mode. -
createDraft
Create the draft table for a given table. -
fkeyBuilder
Return a builder to add foreign keys.
-