Class ServicelayerConstants


  • public final class ServicelayerConstants
    extends java.lang.Object
    Constants for the servicelayer extension.
    • 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_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:
        Constant Field Values
      • VALUE_PREFETCH_ALL

        public static final java.lang.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:
        Constant Field Values
      • VALUE_PREFETCH_NONE

        public static final java.lang.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:
        Constant Field Values
      • VALUE_PREFETCH_LITERAL

        public static final java.lang.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:
        Constant Field Values
      • VALUE_PREFETCH_DEFAULT

        public static final java.lang.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:
        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 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:
        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