Class VariantProductModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApparelStyleVariantProductModel, ElectronicsColorVariantProductModel, GenericVariantProductModel, MockVariantProductModel

public class VariantProductModel extends ProductModel
Generated model class for type VariantProduct first defined at extension catalog.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _PRODUCT2VARIANTRELATION

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

      public static final String BASEPRODUCT
      Generated constant - Attribute key of VariantProduct.baseProduct attribute defined at extension catalog.
      See Also:
  • Constructor Details

    • 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, 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, 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 Details

    • 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