Class CustomConstraintDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.validation.daos.impl.DefaultConstraintDao
-
- de.hybris.platform.b2ctelcoservices.validation.dao.impl.CustomConstraintDao
-
- All Implemented Interfaces:
de.hybris.platform.servicelayer.internal.dao.Dao,de.hybris.platform.validation.daos.ConstraintDao
public class CustomConstraintDao extends de.hybris.platform.validation.daos.impl.DefaultConstraintDaoOverrides the DefaultConstraintDao to allow more than 1ClassificationNotBlankConstraintper target (= type to be checked). As theClassificationNotBlankConstraintinherits from TypeConstraint the DefaultConstraintDao would select the constraints by the attributes target, annotation and active only. But theClassificationNotBlankConstraints need to have the additional attributes category and classification to be unique.
-
-
Constructor Summary
Constructors Constructor Description CustomConstraintDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AbstractConstraintModel>getConstraintDuplicates(AbstractConstraintModel constraint)-
Methods inherited from class de.hybris.platform.validation.daos.impl.DefaultConstraintDao
getAllConstraints, getConstraintedComposedTypes, getPojoRelatedConstraints, getTargetClass
-
-
-
-
Method Detail
-
getConstraintDuplicates
public java.util.List<AbstractConstraintModel> getConstraintDuplicates(AbstractConstraintModel constraint)
- Specified by:
getConstraintDuplicatesin interfacede.hybris.platform.validation.daos.ConstraintDao- Overrides:
getConstraintDuplicatesin classde.hybris.platform.validation.daos.impl.DefaultConstraintDao
-
-