Class DefaultPrefetchAttributeMode
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.converter.impl.DefaultPrefetchAttributeMode
-
- All Implemented Interfaces:
AttributePrefetchMode
public class DefaultPrefetchAttributeMode extends java.lang.Object implements AttributePrefetchMode
Default attribute preFetch mode. EvaluatesServicelayerConstants.ATTRIBUTE_PREFETCH_MODE_FLAGproperty at the the specified attribute descriptor.If no value has been specified it calls
ItemModelConverter.mustConvert(Type)in order to determine whether or not to preLoad the model attribute.
-
-
Constructor Summary
Constructors Constructor Description DefaultPrefetchAttributeMode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPrefetched(AttributeDescriptor desc)protected booleanisPrefetchedAsDefault(AttributeDescriptor desc)Called when no specific preFetch property has been found.java.lang.StringtoString()
-
-
-
Method Detail
-
isPrefetched
public boolean isPrefetched(AttributeDescriptor desc)
- Specified by:
isPrefetchedin interfaceAttributePrefetchMode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isPrefetchedAsDefault
protected boolean isPrefetchedAsDefault(AttributeDescriptor desc)
Called when no specific preFetch property has been found. CallsItemModelConverter.mustConvert(Type)in order to determine whether or not to preLoad the model attribute.- Parameters:
desc- the attribute descriptor to evaluate
-
-