Class ServicelayerConstants
- java.lang.Object
-
- de.hybris.platform.servicelayer.constants.ServicelayerConstants
-
public final class ServicelayerConstants extends java.lang.ObjectConstants for the servicelayer extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_PREFETCH_MODE_FLAGAttribute specific flag to fine-tune prefetching mode.static java.lang.StringATTRIBUTE_SUFFIXSuffix used for member variables in model.static java.lang.StringEXTENSIONNAMEDeprecated.since agesstatic java.lang.StringPARAM_PREFETCHConfiguration key for change between different model attribute load behaviours.static java.lang.StringVALUE_PREFETCH_ALLValue for using thePARAM_PREFETCHkey.static java.lang.StringVALUE_PREFETCH_DEFAULTValue for using thePARAM_PREFETCHkey.static java.lang.StringVALUE_PREFETCH_LITERALValue for using thePARAM_PREFETCHkey.static java.lang.StringVALUE_PREFETCH_NONEValue for using thePARAM_PREFETCHkey.
-
-
-
Field Detail
-
EXTENSIONNAME
@Deprecated public static final java.lang.String EXTENSIONNAME
Deprecated.since ages- See Also:
- Constant Field Values
-
PARAM_PREFETCH
public static final java.lang.String PARAM_PREFETCH
Configuration key for change between different model attribute load behaviours. Add/enable this key in your *.properties file. See file advanced.properties. The following configurations are possible- disabled in the properties - Default setting. In the model only the atomic member attributes (Strings, int, ...) are preloaded. Each other attribute will be loaded if called the model getter.
PARAM_PREFETCH=VALUE_PREFETCH_NONEin the property file - No member attribute is preloaded at all.PARAM_PREFETCH=VALUE_PREFETCH_ALLin the property file - All member attributes of the models are preloaded. This is slow.PARAM_PREFETCH=VALUE_PREFETCH_DEFAULTin the property file - This is the default mode which pre-fetches only literal values but leaves reference values for lazy-loading.
- See Also:
- Constant Field Values
-
VALUE_PREFETCH_ALL
public static final java.lang.String VALUE_PREFETCH_ALL
Value for using thePARAM_PREFETCHkey. 'all' means that all attribute values are being pre-fetched upon model loading.- See Also:
- Constant Field Values
-
VALUE_PREFETCH_NONE
public static final java.lang.String VALUE_PREFETCH_NONE
Value for using thePARAM_PREFETCHkey. 'none' means that no attribute value is being pre-fetched upon model loading. Instead they are lazy-loaded the first time their getter is being called.- See Also:
- Constant Field Values
-
VALUE_PREFETCH_LITERAL
public static final java.lang.String VALUE_PREFETCH_LITERAL
Value for using thePARAM_PREFETCHkey. 'literal' behaviour means pre-fetching only literal attribute values and not pre-fetching reference attribute values.- See Also:
- Constant Field Values
-
VALUE_PREFETCH_DEFAULT
public static final java.lang.String VALUE_PREFETCH_DEFAULT
Value for using thePARAM_PREFETCHkey. 'default' is the default pre-fetching behaviour which means pre-fetching only literal attribute values and not pre-fetching reference attribute values.- See Also:
- Constant Field Values
-
ATTRIBUTE_PREFETCH_MODE_FLAG
public static final java.lang.String ATTRIBUTE_PREFETCH_MODE_FLAG
Attribute specific flag to fine-tune prefetching mode. Setting it totruemeans that values for this attribute are being pre-fetched upon model loading. Setting it tofalsemeans that values for this attribute are always lazy-loaded. Not setting means using the global pre-fetch mode configuration (seePARAM_PREFETCH). Specify in*-items.xmlas follows:<attribute qualifier="catalog" type="Catalog"> <custom-properties> <property name="modelPrefetchMode"> <value>java.lang.Boolean.TRUE</value> </property> </custom-properties> ...- See Also:
- Constant Field Values
-
ATTRIBUTE_SUFFIX
public static final java.lang.String ATTRIBUTE_SUFFIX
Suffix used for member variables in model.- See Also:
- Constant Field Values
-
-