Class ChangesetFixFactory
java.lang.Object
ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
ch.tocco.nice2.devcon.impl.modelvalidation.fix.AbstractFixFactory<Changeset>
ch.tocco.nice2.devcon.impl.modelvalidation.fix.ChangesetFixFactory
- All Implemented Interfaces:
FixFactory<Changeset>
-
Field Summary
Fields inherited from class ch.tocco.nice2.devcon.impl.modelvalidation.fix.AbstractFixFactory
nonVirtualFields, typeMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFkConstraint(NoFkConstraint event) addMissingFkColumn(NoFkColumn event) protected Set<com.google.common.reflect.TypeToken<?>> dropUnusedColumn(UnusedColumn event) dropUnusedTable(UnusedTable event) fixFieldSize(InvalidFieldSize event) Varchar columns supported only atm.fixFkNotNull(FkNotNullMismatch event) fixNoColumnforField(NoFieldColumn event) fixTimeWithoutTimezone(NoTimezone event) onNoTable(NoTableEvent event) Methods inherited from class ch.tocco.nice2.devcon.impl.modelvalidation.fix.AbstractFixFactory
getFixesMethods inherited from class ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
consider, dispatch, getDispatchClass
-
Constructor Details
-
ChangesetFixFactory
public ChangesetFixFactory()
-
-
Method Details
-
onUniqueConstraint
-
onNoTable
-
fixNoColumnforField
-
fixInvalidPrimaryKey
-
addFkConstraint
-
addBinaryFkConstraint
-
addMissingFkColumn
-
dropUnusedColumn
-
dropUnusedTable
-
fixNotnullMismatch
-
fixFkNotNull
-
fixInvalidSequenceValue
-
fixTimeWithoutTimezone
-
fixInvalidDataType
-
fixInvalidFkType
-
fixFieldDefaultValue
-
fixRelationDefaultValue
-
fixInvalidDecimalDigits
-
fixFieldSize
Varchar columns supported only atm. If nice field model if of type "text", the column type is changed to "text", else only the field size is adjusted. -
allowedReturnTypes
- Overrides:
allowedReturnTypesin classAbstractDispatcher
-