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.DefaultConstraintDao
Overrides the DefaultConstraintDao to allow more than 1
ClassificationNotBlankConstraint per target (= type to be checked).
As the ClassificationNotBlankConstraint inherits from TypeConstraint
the DefaultConstraintDao would select the constraints by the attributes target, annotation and active only. But the
ClassificationNotBlankConstraints need to have the additional
attributes category and classification to be unique.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.validation.daos.impl.DefaultConstraintDao
getAllConstraints, getConstraintedComposedTypes, getPojoRelatedConstraints, getTargetClassMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
CustomConstraintDao
public CustomConstraintDao()
-
-
Method Details
-
getConstraintDuplicates
- Specified by:
getConstraintDuplicatesin interfacede.hybris.platform.validation.daos.ConstraintDao- Overrides:
getConstraintDuplicatesin classde.hybris.platform.validation.daos.impl.DefaultConstraintDao
-