Class VariantProductModel

    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _PRODUCT2VARIANTRELATION

        public static final java.lang.String _PRODUCT2VARIANTRELATION
        Generated relation code constant for relation Product2VariantRelation defining source attribute baseProduct in extension catalog.
        See Also:
        Constant Field Values
      • BASEPRODUCT

        public static final java.lang.String BASEPRODUCT
        Generated constant - Attribute key of VariantProduct.baseProduct attribute defined at extension catalog.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VariantProductModel

        public VariantProductModel()
        Generated constructor - Default constructor for generic creation.
      • VariantProductModel

        public VariantProductModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • VariantProductModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public VariantProductModel​(ProductModel _baseProduct,
                                   CatalogVersionModel _catalogVersion,
                                   java.lang.String _code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _baseProduct - initial attribute declared by type VariantProduct at extension catalog
        _catalogVersion - initial attribute declared by type Product at extension catalog
        _code - initial attribute declared by type Product at extension core
      • VariantProductModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public VariantProductModel​(ProductModel _baseProduct,
                                   CatalogVersionModel _catalogVersion,
                                   java.lang.String _code,
                                   ItemModel _owner)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _baseProduct - initial attribute declared by type VariantProduct at extension catalog
        _catalogVersion - initial attribute declared by type Product at extension catalog
        _code - initial attribute declared by type Product at extension core
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getBaseProduct

        @Accessor(qualifier="baseProduct",
                  type=GETTER)
        public ProductModel getBaseProduct()
        Generated method - Getter of the VariantProduct.baseProduct attribute defined at extension catalog.
        Returns:
        the baseProduct
      • setBaseProduct

        @Accessor(qualifier="baseProduct",
                  type=SETTER)
        public void setBaseProduct​(ProductModel value)
        Generated method - Setter of VariantProduct.baseProduct attribute defined at extension catalog.
        Parameters:
        value - the baseProduct