Interface ConstraintService
-
- All Known Implementing Classes:
DefaultConstraintService
public interface ConstraintServiceService to readconstraints.- Spring Bean ID:
- constraintService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AbstractConstraintModel>getAllConstraints()Gets all constraints instances.java.util.List<ComposedTypeModel>getConstraintedComposedTypes()Gets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system.java.util.List<AbstractConstraintModel>getPojoRelatedConstraints()Gets the list of theAbstractConstraintModelwhich are attached to any POJO and are not attached to any model, this means not have haveAbstractConstraintModel.TYPEset as reference to existing type in system.booleanisConstraintDuplicated(AbstractConstraintModel model)
-
-
-
Method Detail
-
getConstraintedComposedTypes
java.util.List<ComposedTypeModel> getConstraintedComposedTypes()
Gets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system.
-
getPojoRelatedConstraints
java.util.List<AbstractConstraintModel> getPojoRelatedConstraints()
Gets the list of theAbstractConstraintModelwhich are attached to any POJO and are not attached to any model, this means not have haveAbstractConstraintModel.TYPEset as reference to existing type in system.
-
getAllConstraints
java.util.List<AbstractConstraintModel> getAllConstraints()
Gets all constraints instances.
-
isConstraintDuplicated
boolean isConstraintDuplicated(AbstractConstraintModel model)
- Parameters:
model- constraint instance which duplicates of are searched for- Returns:
trueif there is at least one constraint of- the same type annotation
AbstractConstraintModel.ANNOTATION - which is attached to the same
GeneratedCatalogConstants.Attributes.ComposedType/POJO ( via parameterAbstractConstraintModel.TARGET) or to the sameAttributeDescriptor/POJO's attribute ( via parameterAbstractConstraintModel.TARGET.AttributeConstraintModel.QUALIFIER)AttributeConstraintModel.QUALIFIER) - and is active
AbstractConstraintModel.ACTIVE
false- the same type annotation
-
-