Class DefaultConstraintDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.validation.daos.impl.DefaultConstraintDao
-
- All Implemented Interfaces:
Dao,ConstraintDao
public class DefaultConstraintDao extends AbstractItemDao implements ConstraintDao
Default implementation of theConstraintDaointerface.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultConstraintDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AbstractConstraintModel>getAllConstraints()Gets all constraints instances.java.util.List<AbstractConstraintModel>getConstraintDuplicates(AbstractConstraintModel constraint)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.java.lang.ClassgetTargetClass(ConstraintGroupModel group)Internal use only.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
getAllConstraints
public java.util.List<AbstractConstraintModel> getAllConstraints()
Description copied from interface:ConstraintDaoGets all constraints instances.- Specified by:
getAllConstraintsin interfaceConstraintDao
-
getConstraintedComposedTypes
public java.util.List<ComposedTypeModel> getConstraintedComposedTypes()
Description copied from interface:ConstraintDaoGets the list of composed type 'affected' by any attached constraint, this means haveAbstractConstraintModel.TYPEset as reference to existing type in system.- Specified by:
getConstraintedComposedTypesin interfaceConstraintDao
-
getPojoRelatedConstraints
public java.util.List<AbstractConstraintModel> getPojoRelatedConstraints()
Description copied from interface:ConstraintDaoGets 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.- Specified by:
getPojoRelatedConstraintsin interfaceConstraintDao
-
getConstraintDuplicates
public java.util.List<AbstractConstraintModel> getConstraintDuplicates(AbstractConstraintModel constraint)
Description copied from interface:ConstraintDao- Specified by:
getConstraintDuplicatesin interfaceConstraintDao
-
getTargetClass
public java.lang.Class getTargetClass(ConstraintGroupModel group)
Description copied from interface:ConstraintDaoInternal use only. Returns the (loaded) java class or creates a java class on runtime based on the value ofConstraintGroupModel.getInterfaceName(). The class is loaded into the VM and is available during runtime. This is needed for the validation framework only.- Specified by:
getTargetClassin interfaceConstraintDao
-
-