Class UniqueConstraint
java.lang.Object
ch.tocco.nice2.model.entity.api.schema.events.CheckEvent
ch.tocco.nice2.model.entity.api.schema.events.UniqueConstraint
- All Implemented Interfaces:
Descriptive
Marks a missing or incomplete unique constraint. There are 4 situations possible:
field | businessunit
-------------|---------------
not in index | not available
not in index | in index
not in index | not in index
in index | not in index
-----------good-------------
in index | not available
in index | in index
Obviously, this class only represents the invalid situations.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.model.entity.api.schema.events.CheckEvent
CheckEvent.Level
-
Constructor Summary
ConstructorDescriptionUniqueConstraint
(Optional<MetaData.IndexInfo> indexInfo, FieldCheckData data, UniqueConstraint.Status fieldStatus, UniqueConstraint.Status businessUnitStatus, Optional<RelationModel> businessUnitRelation) -
Method Summary
Methods inherited from class ch.tocco.nice2.model.entity.api.schema.events.CheckEvent
appendColumn, appendField, appendField, appendForeignKeyInfo, appendRelationString, getCreated, getLevel, getMetaData
-
Constructor Details
-
UniqueConstraint
public UniqueConstraint(Optional<MetaData.IndexInfo> indexInfo, FieldCheckData data, UniqueConstraint.Status fieldStatus, UniqueConstraint.Status businessUnitStatus, Optional<RelationModel> businessUnitRelation)
-
-
Method Details
-
getData
-
forBusinessUnit
-
forField
-
getIndexInfo
-
getBusinessUnitRelation
If present, the relation model to the business unit. -
getDescription
- Specified by:
getDescription
in interfaceDescriptive
-
equals
-
hashCode
public int hashCode() -
toString
-