Class ServicelayerConstants

java.lang.Object
de.hybris.platform.servicelayer.constants.ServicelayerConstants

public final class ServicelayerConstants extends Object
Constants for the servicelayer extension.
  • Field Details

    • EXTENSIONNAME

      @Deprecated(since="ages", forRemoval=true) public static final String EXTENSIONNAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      See Also:
    • PARAM_PREFETCH

      public static final 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_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.
      See Also:
    • VALUE_PREFETCH_ALL

      public static final String VALUE_PREFETCH_ALL
      Value for using the PARAM_PREFETCH key. 'all' means that all attribute values are being pre-fetched upon model loading.
      See Also:
    • VALUE_PREFETCH_NONE

      public static final String VALUE_PREFETCH_NONE
      Value for using the 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.
      See Also:
    • VALUE_PREFETCH_LITERAL

      public static final String VALUE_PREFETCH_LITERAL
      Value for using the PARAM_PREFETCH key. 'literal' behaviour means pre-fetching only literal attribute values and not pre-fetching reference attribute values.
      See Also:
    • VALUE_PREFETCH_DEFAULT

      public static final String VALUE_PREFETCH_DEFAULT
      Value for using the 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.
      See Also:
    • ATTRIBUTE_PREFETCH_MODE_FLAG

      public static final String ATTRIBUTE_PREFETCH_MODE_FLAG
      Attribute specific flag to fine-tune prefetching mode. Setting it to 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>
                      ...
       
      See Also:
    • ATTRIBUTE_SUFFIX

      public static final String ATTRIBUTE_SUFFIX
      Suffix used for member variables in model.
      See Also:
    • UNDEFINED_DATASOURCE

      public static final String UNDEFINED_DATASOURCE
      Identifier used when dataSourceId is unknown.
      See Also: