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:
Serializable
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
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationProductReferenceRelationdefining source attributesourcein extensioncatalog.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofProductReference.activeattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.descriptionattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.iconattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.preselectedattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.qualifierattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.quantityattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.referenceTypeattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.sourceattribute defined at extensioncatalog.static final StringGenerated constant - Attribute key ofProductReference.sourcePOSattribute defined at extensioncatalog.static final StringGenerated 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, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextProductReferenceModel(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 parametersProductReferenceModel(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 TypeMethodDescriptionGenerated method - Getter of theProductReference.activeattribute defined at extensioncatalog.Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.getDescription(Locale loc) Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.getIcon()Generated method - Getter of theProductReference.iconattribute defined at extensioncatalog.Generated method - Getter of theProductReference.preselectedattribute defined at extensioncatalog.Generated method - Getter of theProductReference.qualifierattribute defined at extensioncatalog.Generated method - Getter of theProductReference.quantityattribute defined at extensioncatalog.Generated method - Getter of theProductReference.referenceTypeattribute defined at extensioncatalog.Generated method - Getter of theProductReference.sourceattribute defined at extensioncatalog.Generated method - Getter of theProductReference.targetattribute defined at extensioncatalog.voidGenerated method - Setter ofProductReference.activeattribute defined at extensioncatalog.voidsetDescription(String value) Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.voidsetDescription(String value, Locale loc) Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.voidsetIcon(MediaModel value) Generated method - Setter ofProductReference.iconattribute defined at extensioncatalog.voidsetPreselected(Boolean value) Generated method - Setter ofProductReference.preselectedattribute defined at extensioncatalog.voidsetQualifier(String value) Generated method - Setter ofProductReference.qualifierattribute defined at extensioncatalog.voidsetQuantity(Integer value) Generated method - Setter ofProductReference.quantityattribute defined at extensioncatalog.voidGenerated 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, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_PRODUCTREFERENCERELATION
Generated relation code constant for relationProductReferenceRelationdefining source attributesourcein extensioncatalog.- See Also:
-
QUALIFIER
Generated constant - Attribute key ofProductReference.qualifierattribute defined at extensioncatalog.- See Also:
-
TARGET
Generated constant - Attribute key ofProductReference.targetattribute defined at extensioncatalog.- See Also:
-
QUANTITY
Generated constant - Attribute key ofProductReference.quantityattribute defined at extensioncatalog.- See Also:
-
REFERENCETYPE
Generated constant - Attribute key ofProductReference.referenceTypeattribute defined at extensioncatalog.- See Also:
-
ICON
Generated constant - Attribute key ofProductReference.iconattribute defined at extensioncatalog.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofProductReference.descriptionattribute defined at extensioncatalog.- See Also:
-
PRESELECTED
Generated constant - Attribute key ofProductReference.preselectedattribute defined at extensioncatalog.- See Also:
-
ACTIVE
Generated constant - Attribute key ofProductReference.activeattribute defined at extensioncatalog.- See Also:
-
SOURCEPOS
Generated constant - Attribute key ofProductReference.sourcePOSattribute defined at extensioncatalog.- See Also:
-
SOURCE
Generated constant - Attribute key ofProductReference.sourceattribute defined at extensioncatalog.- See Also:
-
-
Constructor Details
-
ProductReferenceModel
public ProductReferenceModel()Generated constructor - Default constructor for generic creation. -
ProductReferenceModel
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 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(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 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 Details
-
getActive
Generated method - Getter of theProductReference.activeattribute defined at extensioncatalog.- Returns:
- the active
-
getDescription
Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.- Returns:
- the description
-
getDescription
Generated method - Getter of theProductReference.descriptionattribute defined at extensioncatalog.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getIcon
Generated method - Getter of theProductReference.iconattribute defined at extensioncatalog.- Returns:
- the icon
-
getPreselected
Generated method - Getter of theProductReference.preselectedattribute defined at extensioncatalog.- Returns:
- the preselected
-
getQualifier
Generated method - Getter of theProductReference.qualifierattribute defined at extensioncatalog.- Returns:
- the qualifier - Qualifier
-
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
Generated method - Getter of theProductReference.sourceattribute defined at extensioncatalog.- Returns:
- the source
-
getTarget
Generated method - Getter of theProductReference.targetattribute defined at extensioncatalog.- Returns:
- the target - Target
-
setActive
Generated method - Setter ofProductReference.activeattribute defined at extensioncatalog.- Parameters:
value- the active
-
setDescription
Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofProductReference.descriptionattribute defined at extensioncatalog.- Parameters:
value- the descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setIcon
Generated method - Setter ofProductReference.iconattribute defined at extensioncatalog.- Parameters:
value- the icon
-
setPreselected
Generated method - Setter ofProductReference.preselectedattribute defined at extensioncatalog.- Parameters:
value- the preselected
-
setQualifier
Generated method - Setter ofProductReference.qualifierattribute defined at extensioncatalog.- Parameters:
value- the qualifier - Qualifier
-
setQuantity
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
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
Generated method - Setter ofProductReference.targetattribute defined at extensioncatalog.- Parameters:
value- the target - Target
-