Class ProductReferenceModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.catalog.model.ProductReferenceModel
All Implemented Interfaces:
Serializable

public class ProductReferenceModel extends ItemModel
Generated model class for type ProductReference first defined at extension catalog.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation ProductReferenceRelation defining source attribute source in extension catalog.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of ProductReference.active attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.description attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.icon attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.preselected attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.qualifier attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.quantity attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.referenceType attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.source attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.sourcePOS attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of ProductReference.target attribute defined at extension catalog.

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    ProductReferenceModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    ProductReferenceModel(Boolean _active, ItemModel _owner, Boolean _preselected, ProductModel _source, ProductModel _target)
    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
    ProductReferenceModel(Boolean _active, Boolean _preselected, ProductModel _source, ProductModel _target)
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the ProductReference.active attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.icon attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.preselected attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.qualifier attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.quantity attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.referenceType attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.source attribute defined at extension catalog.
    Generated method - Getter of the ProductReference.target attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.active attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.description attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.description attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.icon attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.preselected attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.qualifier attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.quantity attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.referenceType attribute defined at extension catalog.
    void
    Generated method - Initial setter of ProductReference.source attribute defined at extension catalog.
    void
    Generated method - Setter of ProductReference.target attribute defined at extension catalog.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

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

      public static final String _PRODUCTREFERENCERELATION
      Generated relation code constant for relation ProductReferenceRelation defining source attribute source in extension catalog.
      See Also:
    • QUALIFIER

      public static final String QUALIFIER
      Generated constant - Attribute key of ProductReference.qualifier attribute defined at extension catalog.
      See Also:
    • TARGET

      public static final String TARGET
      Generated constant - Attribute key of ProductReference.target attribute defined at extension catalog.
      See Also:
    • QUANTITY

      public static final String QUANTITY
      Generated constant - Attribute key of ProductReference.quantity attribute defined at extension catalog.
      See Also:
    • REFERENCETYPE

      public static final String REFERENCETYPE
      Generated constant - Attribute key of ProductReference.referenceType attribute defined at extension catalog.
      See Also:
    • ICON

      public static final String ICON
      Generated constant - Attribute key of ProductReference.icon attribute defined at extension catalog.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of ProductReference.description attribute defined at extension catalog.
      See Also:
    • PRESELECTED

      public static final String PRESELECTED
      Generated constant - Attribute key of ProductReference.preselected attribute defined at extension catalog.
      See Also:
    • ACTIVE

      public static final String ACTIVE
      Generated constant - Attribute key of ProductReference.active attribute defined at extension catalog.
      See Also:
    • SOURCEPOS

      public static final String SOURCEPOS
      Generated constant - Attribute key of ProductReference.sourcePOS attribute defined at extension catalog.
      See Also:
    • SOURCE

      public static final String SOURCE
      Generated constant - Attribute key of ProductReference.source attribute defined at extension catalog.
      See Also:
  • Constructor Details

    • ProductReferenceModel

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

      public ProductReferenceModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • ProductReferenceModel

      @Deprecated(since="4.1.1", forRemoval=true) public ProductReferenceModel(Boolean _active, Boolean _preselected, ProductModel _source, ProductModel _target)
      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:
      _active - initial attribute declared by type ProductReference at extension catalog
      _preselected - initial attribute declared by type ProductReference at extension catalog
      _source - initial attribute declared by type ProductReference at extension catalog
      _target - initial attribute declared by type ProductReference at extension catalog
    • ProductReferenceModel

      @Deprecated(since="4.1.1", forRemoval=true) public ProductReferenceModel(Boolean _active, ItemModel _owner, Boolean _preselected, ProductModel _source, ProductModel _target)
      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:
      _active - initial attribute declared by type ProductReference at extension catalog
      _owner - initial attribute declared by type Item at extension core
      _preselected - initial attribute declared by type ProductReference at extension catalog
      _source - initial attribute declared by type ProductReference at extension catalog
      _target - initial attribute declared by type ProductReference at extension catalog
  • Method Details

    • getActive

      @Accessor(qualifier="active", type=GETTER) public Boolean getActive()
      Generated method - Getter of the ProductReference.active attribute defined at extension catalog.
      Returns:
      the active
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the ProductReference.description attribute defined at extension catalog.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getIcon

      @Accessor(qualifier="icon", type=GETTER) public MediaModel getIcon()
      Generated method - Getter of the ProductReference.icon attribute defined at extension catalog.
      Returns:
      the icon
    • getPreselected

      @Accessor(qualifier="preselected", type=GETTER) public Boolean getPreselected()
      Generated method - Getter of the ProductReference.preselected attribute defined at extension catalog.
      Returns:
      the preselected
    • getQualifier

      @Accessor(qualifier="qualifier", type=GETTER) public String getQualifier()
      Generated method - Getter of the ProductReference.qualifier attribute defined at extension catalog.
      Returns:
      the qualifier - Qualifier
    • getQuantity

      @Accessor(qualifier="quantity", type=GETTER) public Integer getQuantity()
      Generated method - Getter of the ProductReference.quantity attribute defined at extension catalog.
      Returns:
      the quantity - Quantity
    • getReferenceType

      @Accessor(qualifier="referenceType", type=GETTER) public ProductReferenceTypeEnum getReferenceType()
      Generated method - Getter of the ProductReference.referenceType attribute defined at extension catalog.
      Returns:
      the referenceType
    • getSource

      @Accessor(qualifier="source", type=GETTER) public ProductModel getSource()
      Generated method - Getter of the ProductReference.source attribute defined at extension catalog.
      Returns:
      the source
    • getTarget

      @Accessor(qualifier="target", type=GETTER) public ProductModel getTarget()
      Generated method - Getter of the ProductReference.target attribute defined at extension catalog.
      Returns:
      the target - Target
    • setActive

      @Accessor(qualifier="active", type=SETTER) public void setActive(Boolean value)
      Generated method - Setter of ProductReference.active attribute defined at extension catalog.
      Parameters:
      value - the active
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of ProductReference.description attribute defined at extension catalog.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of ProductReference.description attribute defined at extension catalog.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setIcon

      @Accessor(qualifier="icon", type=SETTER) public void setIcon(MediaModel value)
      Generated method - Setter of ProductReference.icon attribute defined at extension catalog.
      Parameters:
      value - the icon
    • setPreselected

      @Accessor(qualifier="preselected", type=SETTER) public void setPreselected(Boolean value)
      Generated method - Setter of ProductReference.preselected attribute defined at extension catalog.
      Parameters:
      value - the preselected
    • setQualifier

      @Accessor(qualifier="qualifier", type=SETTER) public void setQualifier(String value)
      Generated method - Setter of ProductReference.qualifier attribute defined at extension catalog.
      Parameters:
      value - the qualifier - Qualifier
    • setQuantity

      @Accessor(qualifier="quantity", type=SETTER) public void setQuantity(Integer value)
      Generated method - Setter of ProductReference.quantity attribute defined at extension catalog.
      Parameters:
      value - the quantity - Quantity
    • setReferenceType

      @Accessor(qualifier="referenceType", type=SETTER) public void setReferenceType(ProductReferenceTypeEnum value)
      Generated method - Setter of ProductReference.referenceType attribute defined at extension catalog.
      Parameters:
      value - the referenceType
    • setSource

      @Accessor(qualifier="source", type=SETTER) public void setSource(ProductModel value)
      Generated method - Initial setter of ProductReference.source attribute defined at extension catalog. Can only be used at creation of model - before first save.
      Parameters:
      value - the source
    • setTarget

      @Accessor(qualifier="target", type=SETTER) public void setTarget(ProductModel value)
      Generated method - Setter of ProductReference.target attribute defined at extension catalog.
      Parameters:
      value - the target - Target