Package de.hybris.platform.catalog.model
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:
java.io.Serializable
public class ProductReferenceModel extends ItemModel
Generated model class for type ProductReference first defined at extension catalog.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_PRODUCTREFERENCERELATION
Generated relation code constant for relationProductReferenceRelation
defining source attributesource
in extensioncatalog
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ACTIVE
Generated constant - Attribute key ofProductReference.active
attribute defined at extensioncatalog
.static java.lang.String
DESCRIPTION
Generated constant - Attribute key ofProductReference.description
attribute defined at extensioncatalog
.static java.lang.String
ICON
Generated constant - Attribute key ofProductReference.icon
attribute defined at extensioncatalog
.static java.lang.String
PRESELECTED
Generated constant - Attribute key ofProductReference.preselected
attribute defined at extensioncatalog
.static java.lang.String
QUALIFIER
Generated constant - Attribute key ofProductReference.qualifier
attribute defined at extensioncatalog
.static java.lang.String
QUANTITY
Generated constant - Attribute key ofProductReference.quantity
attribute defined at extensioncatalog
.static java.lang.String
REFERENCETYPE
Generated constant - Attribute key ofProductReference.referenceType
attribute defined at extensioncatalog
.static java.lang.String
SOURCE
Generated constant - Attribute key ofProductReference.source
attribute defined at extensioncatalog
.static java.lang.String
SOURCEPOS
Generated constant - Attribute key ofProductReference.sourcePOS
attribute defined at extensioncatalog
.static java.lang.String
TARGET
Generated constant - Attribute key ofProductReference.target
attribute defined at extensioncatalog
.-
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 ProductReferenceModel()
Generated constructor - Default constructor for generic creation.ProductReferenceModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing contextProductReferenceModel(java.lang.Boolean _active, ItemModel _owner, java.lang.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 parametersProductReferenceModel(java.lang.Boolean _active, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getActive()
Generated method - Getter of theProductReference.active
attribute defined at extensioncatalog
.java.lang.String
getDescription()
Generated method - Getter of theProductReference.description
attribute defined at extensioncatalog
.java.lang.String
getDescription(java.util.Locale loc)
Generated method - Getter of theProductReference.description
attribute defined at extensioncatalog
.MediaModel
getIcon()
Generated method - Getter of theProductReference.icon
attribute defined at extensioncatalog
.java.lang.Boolean
getPreselected()
Generated method - Getter of theProductReference.preselected
attribute defined at extensioncatalog
.java.lang.String
getQualifier()
Generated method - Getter of theProductReference.qualifier
attribute defined at extensioncatalog
.java.lang.Integer
getQuantity()
Generated method - Getter of theProductReference.quantity
attribute defined at extensioncatalog
.ProductReferenceTypeEnum
getReferenceType()
Generated method - Getter of theProductReference.referenceType
attribute defined at extensioncatalog
.ProductModel
getSource()
Generated method - Getter of theProductReference.source
attribute defined at extensioncatalog
.ProductModel
getTarget()
Generated method - Getter of theProductReference.target
attribute defined at extensioncatalog
.void
setActive(java.lang.Boolean value)
Generated method - Setter ofProductReference.active
attribute defined at extensioncatalog
.void
setDescription(java.lang.String value)
Generated method - Setter ofProductReference.description
attribute defined at extensioncatalog
.void
setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofProductReference.description
attribute defined at extensioncatalog
.void
setIcon(MediaModel value)
Generated method - Setter ofProductReference.icon
attribute defined at extensioncatalog
.void
setPreselected(java.lang.Boolean value)
Generated method - Setter ofProductReference.preselected
attribute defined at extensioncatalog
.void
setQualifier(java.lang.String value)
Generated method - Setter ofProductReference.qualifier
attribute defined at extensioncatalog
.void
setQuantity(java.lang.Integer value)
Generated method - Setter ofProductReference.quantity
attribute defined at extensioncatalog
.void
setReferenceType(ProductReferenceTypeEnum value)
Generated method - Setter ofProductReference.referenceType
attribute defined at extensioncatalog
.void
setSource(ProductModel value)
Generated method - Initial setter ofProductReference.source
attribute defined at extensioncatalog
.void
setTarget(ProductModel value)
Generated method - Setter ofProductReference.target
attribute defined at extensioncatalog
.-
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
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_PRODUCTREFERENCERELATION
public static final java.lang.String _PRODUCTREFERENCERELATION
Generated relation code constant for relationProductReferenceRelation
defining source attributesource
in extensioncatalog
.- See Also:
- Constant Field Values
-
QUALIFIER
public static final java.lang.String QUALIFIER
Generated constant - Attribute key ofProductReference.qualifier
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
TARGET
public static final java.lang.String TARGET
Generated constant - Attribute key ofProductReference.target
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
QUANTITY
public static final java.lang.String QUANTITY
Generated constant - Attribute key ofProductReference.quantity
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
REFERENCETYPE
public static final java.lang.String REFERENCETYPE
Generated constant - Attribute key ofProductReference.referenceType
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
ICON
public static final java.lang.String ICON
Generated constant - Attribute key ofProductReference.icon
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofProductReference.description
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
PRESELECTED
public static final java.lang.String PRESELECTED
Generated constant - Attribute key ofProductReference.preselected
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofProductReference.active
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
SOURCEPOS
public static final java.lang.String SOURCEPOS
Generated constant - Attribute key ofProductReference.sourcePOS
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
SOURCE
public static final java.lang.String SOURCE
Generated constant - Attribute key ofProductReference.source
attribute defined at extensioncatalog
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductReferenceModel
public ProductReferenceModel()
Generated constructor - Default constructor for generic creation.
-
ProductReferenceModel
public ProductReferenceModel(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(java.lang.Boolean _active, java.lang.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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_active
- initial attribute declared by typeProductReference
at extensioncatalog
_preselected
- initial attribute declared by typeProductReference
at extensioncatalog
_source
- initial attribute declared by typeProductReference
at extensioncatalog
_target
- initial attribute declared by typeProductReference
at extensioncatalog
-
ProductReferenceModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductReferenceModel(java.lang.Boolean _active, ItemModel _owner, java.lang.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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_active
- initial attribute declared by typeProductReference
at extensioncatalog
_owner
- initial attribute declared by typeItem
at extensioncore
_preselected
- initial attribute declared by typeProductReference
at extensioncatalog
_source
- initial attribute declared by typeProductReference
at extensioncatalog
_target
- initial attribute declared by typeProductReference
at extensioncatalog
-
-
Method Detail
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theProductReference.active
attribute defined at extensioncatalog
.- Returns:
- the active
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theProductReference.description
attribute defined at extensioncatalog
.- Returns:
- the description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theProductReference.description
attribute defined at extensioncatalog
.- Parameters:
loc
- the value localization key- Returns:
- the description
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getIcon
@Accessor(qualifier="icon", type=GETTER) public MediaModel getIcon()
Generated method - Getter of theProductReference.icon
attribute defined at extensioncatalog
.- Returns:
- the icon
-
getPreselected
@Accessor(qualifier="preselected", type=GETTER) public java.lang.Boolean getPreselected()
Generated method - Getter of theProductReference.preselected
attribute defined at extensioncatalog
.- Returns:
- the preselected
-
getQualifier
@Accessor(qualifier="qualifier", type=GETTER) public java.lang.String getQualifier()
Generated method - Getter of theProductReference.qualifier
attribute defined at extensioncatalog
.- Returns:
- the qualifier - Qualifier
-
getQuantity
@Accessor(qualifier="quantity", type=GETTER) public java.lang.Integer getQuantity()
Generated method - Getter of theProductReference.quantity
attribute defined at extensioncatalog
.- Returns:
- the quantity - Quantity
-
getReferenceType
@Accessor(qualifier="referenceType", type=GETTER) public ProductReferenceTypeEnum getReferenceType()
Generated method - Getter of theProductReference.referenceType
attribute defined at extensioncatalog
.- Returns:
- the referenceType
-
getSource
@Accessor(qualifier="source", type=GETTER) public ProductModel getSource()
Generated method - Getter of theProductReference.source
attribute defined at extensioncatalog
.- Returns:
- the source
-
getTarget
@Accessor(qualifier="target", type=GETTER) public ProductModel getTarget()
Generated method - Getter of theProductReference.target
attribute defined at extensioncatalog
.- Returns:
- the target - Target
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofProductReference.active
attribute defined at extensioncatalog
.- Parameters:
value
- the active
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofProductReference.description
attribute defined at extensioncatalog
.- Parameters:
value
- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofProductReference.description
attribute defined at extensioncatalog
.- Parameters:
value
- the descriptionloc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setIcon
@Accessor(qualifier="icon", type=SETTER) public void setIcon(MediaModel value)
Generated method - Setter ofProductReference.icon
attribute defined at extensioncatalog
.- Parameters:
value
- the icon
-
setPreselected
@Accessor(qualifier="preselected", type=SETTER) public void setPreselected(java.lang.Boolean value)
Generated method - Setter ofProductReference.preselected
attribute defined at extensioncatalog
.- Parameters:
value
- the preselected
-
setQualifier
@Accessor(qualifier="qualifier", type=SETTER) public void setQualifier(java.lang.String value)
Generated method - Setter ofProductReference.qualifier
attribute defined at extensioncatalog
.- Parameters:
value
- the qualifier - Qualifier
-
setQuantity
@Accessor(qualifier="quantity", type=SETTER) public void setQuantity(java.lang.Integer value)
Generated method - Setter ofProductReference.quantity
attribute defined at extensioncatalog
.- Parameters:
value
- the quantity - Quantity
-
setReferenceType
@Accessor(qualifier="referenceType", type=SETTER) public void setReferenceType(ProductReferenceTypeEnum value)
Generated method - Setter ofProductReference.referenceType
attribute defined at extensioncatalog
.- Parameters:
value
- the referenceType
-
setSource
@Accessor(qualifier="source", type=SETTER) public void setSource(ProductModel value)
Generated method - Initial setter ofProductReference.source
attribute defined at extensioncatalog
. 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 ofProductReference.target
attribute defined at extensioncatalog
.- Parameters:
value
- the target - Target
-
-