public final class ServicelayerConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_PREFETCH_MODE_FLAG
Attribute specific flag to fine-tune prefetching mode.
|
static String |
ATTRIBUTE_SUFFIX
Suffix used for member variables in model.
|
static String |
EXTENSIONNAME
Deprecated.
|
static String |
PARAM_PREFETCH
Configuration key for change between different model attribute load behaviours.
|
static String |
VALUE_PREFETCH_ALL
Value for using the
PARAM_PREFETCH key. |
static String |
VALUE_PREFETCH_DEFAULT
Value for using the
PARAM_PREFETCH key. |
static String |
VALUE_PREFETCH_LITERAL
Value for using the
PARAM_PREFETCH key. |
static String |
VALUE_PREFETCH_NONE
Value for using the
PARAM_PREFETCH key. |
@Deprecated public static final String EXTENSIONNAME
public static final String PARAM_PREFETCH
PARAM_PREFETCH=VALUE_PREFETCH_NONE in the property file - No member attribute is
preloaded at all.PARAM_PREFETCH=VALUE_PREFETCH_ALL in the property file - All member attributes
of the models are preloaded. This is slow.PARAM_PREFETCH=VALUE_PREFETCH_DEFAULT in the property file - This is the default mode
which pre-fetches only literal values but leaves reference values for lazy-loading.public static final String VALUE_PREFETCH_ALL
PARAM_PREFETCH key. 'all' means that all attribute values are being pre-fetched upon
model loading.public static final String VALUE_PREFETCH_NONE
PARAM_PREFETCH key. '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.public static final String VALUE_PREFETCH_LITERAL
PARAM_PREFETCH key. 'literal' behaviour means pre-fetching only literal attribute
values and not pre-fetching reference attribute values.public static final String VALUE_PREFETCH_DEFAULT
PARAM_PREFETCH key. 'default' is the default pre-fetching behaviour which means
pre-fetching only literal attribute values and not pre-fetching reference attribute values.public static final String ATTRIBUTE_PREFETCH_MODE_FLAG
true means that values for this
attribute are being pre-fetched upon model loading. Setting it to false means that values for this
attribute are always lazy-loaded. Not setting means using the global pre-fetch mode configuration (see
PARAM_PREFETCH).
Specify in *-items.xml as follows:
<attribute qualifier="catalog" type="Catalog">
<custom-properties>
<property name="modelPrefetchMode"> <value>java.lang.Boolean.TRUE</value> </property>
</custom-properties>
...
public static final String ATTRIBUTE_SUFFIX
Copyright © 2017 SAP SE. All Rights Reserved.