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_FLAG
property 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 boolean
isPrefetched(AttributeDescriptor desc)
protected boolean
isPrefetchedAsDefault(AttributeDescriptor desc)
Called when no specific preFetch property has been found.java.lang.String
toString()
-
-
-
Method Detail
-
isPrefetched
public boolean isPrefetched(AttributeDescriptor desc)
- Specified by:
isPrefetched
in interfaceAttributePrefetchMode
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-