Class MColumn
java.lang.Object
io.ebeaninternal.dbmigration.model.MColumn
A column in the logical model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(AlterColumn alterColumn)Apply changes based on the AlterColumn request.voidvoidCompare the column meta data and return true if there is a change that means the history table column needsReturn a copy of this column used for creating the associated draft table.Return the column comment.getName()getType()Return true if this is unique for a OneToOne.booleanReturn the draftOnly status for this column.booleanbooleanbooleanReturn true if this column should be included in History DB triggers etc.booleanbooleanRename the column.voidsetCheckConstraint(String checkConstraint)voidsetCheckConstraintName(String checkConstraintName)voidsetComment(String comment)Set the column comment.voidsetDbMigrationInfos(List<io.ebeaninternal.server.deploy.DbMigrationInfo> dbMigrationInfos)voidsetDefaultValue(String defaultValue)voidsetDraftOnly(boolean draftOnly)Set the draftOnly status for this column.voidsetForeignKeyIndex(String foreignKeyIndex)voidsetForeignKeyModes(io.ebean.annotation.ConstraintMode onDelete, io.ebean.annotation.ConstraintMode onUpdate)voidsetForeignKeyName(String foreignKeyName)voidsetHistoryExclude(boolean historyExclude)voidsetIdentity(boolean identity)voidsetNotnull(boolean notnull)voidsetPrimaryKey(boolean primaryKey)voidsetReferences(String references)voidvoidsetUniqueOneToOne(String uniqueOneToOne)Set unique specifically for OneToOne mapping.
-
Constructor Details
-
MColumn
-
MColumn
-
MColumn
-
-
Method Details
-
copyForDraft
Return a copy of this column used for creating the associated draft table. -
getName
-
getType
-
isPrimaryKey
-
setPrimaryKey
-
isIdentity
-
setIdentity
-
getCheckConstraint
-
setCheckConstraint
-
getCheckConstraintName
-
setCheckConstraintName
-
getForeignKeyName
-
setForeignKeyName
-
getForeignKeyIndex
-
setForeignKeyIndex
-
setForeignKeyModes
public void setForeignKeyModes(io.ebean.annotation.ConstraintMode onDelete, io.ebean.annotation.ConstraintMode onUpdate) -
getDefaultValue
-
setDefaultValue
-
getReferences
-
setReferences
-
isNotnull
-
setNotnull
-
isHistoryExclude
-
setHistoryExclude
-
setUnique
-
getUnique
-
setUniqueOneToOne
Set unique specifically for OneToOne mapping. We need special DDL for this case for SqlServer. -
getUniqueOneToOne
Return true if this is unique for a OneToOne. -
getComment
Return the column comment. -
setComment
Set the column comment. -
setDraftOnly
Set the draftOnly status for this column. -
isDraftOnly
Return the draftOnly status for this column. -
isIncludeInHistory
Return true if this column should be included in History DB triggers etc. -
clearForeignKey
-
createColumn
-
compare
Compare the column meta data and return true if there is a change that means the history table column needs -
setDbMigrationInfos
public void setDbMigrationInfos(List<io.ebeaninternal.server.deploy.DbMigrationInfo> dbMigrationInfos) -
rename
Rename the column. -
apply
Apply changes based on the AlterColumn request.
-