public class DefaultConstraintService extends java.lang.Object implements ConstraintService
ConstraintService interface.| Constructor and Description |
|---|
DefaultConstraintService() |
| Modifier and Type | Method and 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 have
AbstractConstraintModel.TYPE set as reference to existing type in system. |
java.util.List<AbstractConstraintModel> |
getPojoRelatedConstraints()
Gets the list of the
AbstractConstraintModel which are attached to any POJO and are not attached to any
model, this means not have have AbstractConstraintModel.TYPE set as reference to existing type in
system. |
boolean |
isConstraintDuplicated(AbstractConstraintModel constraint) |
void |
setConstraintDao(ConstraintDao constraintDao) |
public java.util.List<AbstractConstraintModel> getAllConstraints()
ConstraintServicegetAllConstraints in interface ConstraintServicepublic java.util.List<ComposedTypeModel> getConstraintedComposedTypes()
ConstraintServiceAbstractConstraintModel.TYPE set as reference to existing type in system.getConstraintedComposedTypes in interface ConstraintServicepublic java.util.List<AbstractConstraintModel> getPojoRelatedConstraints()
ConstraintServiceAbstractConstraintModel which are attached to any POJO and are not attached to any
model, this means not have have AbstractConstraintModel.TYPE set as reference to existing type in
system.getPojoRelatedConstraints in interface ConstraintServicepublic void setConstraintDao(ConstraintDao constraintDao)
public boolean isConstraintDuplicated(AbstractConstraintModel constraint)
isConstraintDuplicated in interface ConstraintServiceconstraint - constraint instance which duplicates of are searched fortrue if there is at least one constraint of
AbstractConstraintModel.ANNOTATIONGeneratedCatalogConstants.Attributes.ComposedType/POJO ( via
parameter AbstractConstraintModel.TARGET ) or to the same AttributeDescriptor/POJO's
attribute ( via parameter AbstractConstraintModel.TARGET.
AttributeConstraintModel.QUALIFIER) AttributeConstraintModel.QUALIFIER )AbstractConstraintModel.ACTIVEfalseCopyright © 2018 SAP SE. All Rights Reserved.