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_PRODUCTREFERENCERELATIONGenerated relation code constant for relationProductReferenceRelationdefining source attributesourcein extensioncatalog.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIVEGenerated constant - Attribute key ofProductReference.activeattribute defined at extensioncatalog.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofProductReference.descriptionattribute defined at extensioncatalog.static java.lang.StringICONGenerated constant - Attribute key ofProductReference.iconattribute defined at extensioncatalog.static java.lang.StringPRESELECTEDGenerated constant - Attribute key ofProductReference.preselectedattribute defined at extensioncatalog.static java.lang.StringQUALIFIERGenerated constant - Attribute key ofProductReference.qualifierattribute defined at extensioncatalog.static java.lang.StringQUANTITYGenerated constant - Attribute key ofProductReference.quantityattribute defined at extensioncatalog.static java.lang.StringREFERENCETYPEGenerated constant - Attribute key ofProductReference.referenceTypeattribute defined at extensioncatalog.static java.lang.StringSOURCEGenerated constant - Attribute key ofProductReference.sourceattribute defined at extensioncatalog.static java.lang.StringSOURCEPOSGenerated constant - Attribute key ofProductReference.sourcePOSattribute defined at extensioncatalog.static java.lang.StringTARGETGenerated constant - Attribute key ofProductReference.targetattribute 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.BooleangetActive()Generated method - Getter of theProductReference.activeattribute defined at extensioncatalog.java.lang.StringgetDescription()Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.MediaModelgetIcon()Generated method - Getter of theProductReference.iconattribute defined at extensioncatalog.java.lang.BooleangetPreselected()Generated method - Getter of theProductReference.preselectedattribute defined at extensioncatalog.java.lang.StringgetQualifier()Generated method - Getter of theProductReference.qualifierattribute defined at extensioncatalog.java.lang.IntegergetQuantity()Generated method - Getter of theProductReference.quantityattribute defined at extensioncatalog.ProductReferenceTypeEnumgetReferenceType()Generated method - Getter of theProductReference.referenceTypeattribute defined at extensioncatalog.ProductModelgetSource()Generated method - Getter of theProductReference.sourceattribute defined at extensioncatalog.ProductModelgetTarget()Generated method - Getter of theProductReference.targetattribute defined at extensioncatalog.voidsetActive(java.lang.Boolean value)Generated method - Setter ofProductReference.activeattribute defined at extensioncatalog.voidsetDescription(java.lang.String value)Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.voidsetIcon(MediaModel value)Generated method - Setter ofProductReference.iconattribute defined at extensioncatalog.voidsetPreselected(java.lang.Boolean value)Generated method - Setter ofProductReference.preselectedattribute defined at extensioncatalog.voidsetQualifier(java.lang.String value)Generated method - Setter ofProductReference.qualifierattribute defined at extensioncatalog.voidsetQuantity(java.lang.Integer value)Generated method - Setter ofProductReference.quantityattribute defined at extensioncatalog.voidsetReferenceType(ProductReferenceTypeEnum value)Generated method - Setter ofProductReference.referenceTypeattribute defined at extensioncatalog.voidsetSource(ProductModel value)Generated method - Initial setter ofProductReference.sourceattribute defined at extensioncatalog.voidsetTarget(ProductModel value)Generated method - Setter ofProductReference.targetattribute 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 relationProductReferenceRelationdefining source attributesourcein extensioncatalog.- See Also:
- Constant Field Values
-
QUALIFIER
public static final java.lang.String QUALIFIER
Generated constant - Attribute key ofProductReference.qualifierattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
TARGET
public static final java.lang.String TARGET
Generated constant - Attribute key ofProductReference.targetattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
QUANTITY
public static final java.lang.String QUANTITY
Generated constant - Attribute key ofProductReference.quantityattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
REFERENCETYPE
public static final java.lang.String REFERENCETYPE
Generated constant - Attribute key ofProductReference.referenceTypeattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
ICON
public static final java.lang.String ICON
Generated constant - Attribute key ofProductReference.iconattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofProductReference.descriptionattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
PRESELECTED
public static final java.lang.String PRESELECTED
Generated constant - Attribute key ofProductReference.preselectedattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofProductReference.activeattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
SOURCEPOS
public static final java.lang.String SOURCEPOS
Generated constant - Attribute key ofProductReference.sourcePOSattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
SOURCE
public static final java.lang.String SOURCE
Generated constant - Attribute key ofProductReference.sourceattribute 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 typeProductReferenceat extensioncatalog_preselected- initial attribute declared by typeProductReferenceat extensioncatalog_source- initial attribute declared by typeProductReferenceat extensioncatalog_target- initial attribute declared by typeProductReferenceat 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 typeProductReferenceat extensioncatalog_owner- initial attribute declared by typeItemat extensioncore_preselected- initial attribute declared by typeProductReferenceat extensioncatalog_source- initial attribute declared by typeProductReferenceat extensioncatalog_target- initial attribute declared by typeProductReferenceat extensioncatalog
-
-
Method Detail
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theProductReference.activeattribute defined at extensioncatalog.- Returns:
- the active
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theProductReference.descriptionattribute 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.descriptionattribute 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.iconattribute defined at extensioncatalog.- Returns:
- the icon
-
getPreselected
@Accessor(qualifier="preselected", type=GETTER) public java.lang.Boolean getPreselected()
Generated method - Getter of theProductReference.preselectedattribute defined at extensioncatalog.- Returns:
- the preselected
-
getQualifier
@Accessor(qualifier="qualifier", type=GETTER) public java.lang.String getQualifier()
Generated method - Getter of theProductReference.qualifierattribute defined at extensioncatalog.- Returns:
- the qualifier - Qualifier
-
getQuantity
@Accessor(qualifier="quantity", type=GETTER) public java.lang.Integer getQuantity()
Generated method - Getter of theProductReference.quantityattribute defined at extensioncatalog.- Returns:
- the quantity - Quantity
-
getReferenceType
@Accessor(qualifier="referenceType", type=GETTER) public ProductReferenceTypeEnum getReferenceType()
Generated method - Getter of theProductReference.referenceTypeattribute defined at extensioncatalog.- Returns:
- the referenceType
-
getSource
@Accessor(qualifier="source", type=GETTER) public ProductModel getSource()
Generated method - Getter of theProductReference.sourceattribute defined at extensioncatalog.- Returns:
- the source
-
getTarget
@Accessor(qualifier="target", type=GETTER) public ProductModel getTarget()
Generated method - Getter of theProductReference.targetattribute defined at extensioncatalog.- Returns:
- the target - Target
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofProductReference.activeattribute defined at extensioncatalog.- Parameters:
value- the active
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofProductReference.descriptionattribute 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.descriptionattribute 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.iconattribute defined at extensioncatalog.- Parameters:
value- the icon
-
setPreselected
@Accessor(qualifier="preselected", type=SETTER) public void setPreselected(java.lang.Boolean value)
Generated method - Setter ofProductReference.preselectedattribute defined at extensioncatalog.- Parameters:
value- the preselected
-
setQualifier
@Accessor(qualifier="qualifier", type=SETTER) public void setQualifier(java.lang.String value)
Generated method - Setter ofProductReference.qualifierattribute 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.quantityattribute defined at extensioncatalog.- Parameters:
value- the quantity - Quantity
-
setReferenceType
@Accessor(qualifier="referenceType", type=SETTER) public void setReferenceType(ProductReferenceTypeEnum value)
Generated method - Setter ofProductReference.referenceTypeattribute defined at extensioncatalog.- Parameters:
value- the referenceType
-
setSource
@Accessor(qualifier="source", type=SETTER) public void setSource(ProductModel value)
Generated method - Initial setter ofProductReference.sourceattribute 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.targetattribute defined at extensioncatalog.- Parameters:
value- the target - Target
-
-