Class ClassificationAttributeUnitModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.catalog.model.classification.ClassificationAttributeUnitModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ClassificationAttributeUnitModel extends ItemModel
Generated model class for type ClassificationAttributeUnit 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_TYPECODEGenerated model type code constant.static java.lang.StringCODEGenerated constant - Attribute key ofClassificationAttributeUnit.codeattribute defined at extensioncatalog.static java.lang.StringCONVERSIONFACTORGenerated constant - Attribute key ofClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.static java.lang.StringCONVERTIBLEUNITSGenerated constant - Attribute key ofClassificationAttributeUnit.convertibleUnitsattribute defined at extensioncatalog.static java.lang.StringEXTERNALIDGenerated constant - Attribute key ofClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.static java.lang.StringNAMEGenerated constant - Attribute key ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.static java.lang.StringSAPCODEGenerated constant - Attribute key ofClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.static java.lang.StringSYMBOLGenerated constant - Attribute key ofClassificationAttributeUnit.symbolattribute defined at extensioncatalog.static java.lang.StringSYSTEMVERSIONGenerated constant - Attribute key ofClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog.static java.lang.StringUNITTYPEGenerated constant - Attribute key ofClassificationAttributeUnit.unitTypeattribute 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 ClassificationAttributeUnitModel()Generated constructor - Default constructor for generic creation.ClassificationAttributeUnitModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextClassificationAttributeUnitModel(java.lang.String _code, ItemModel _owner, java.lang.String _symbol, ClassificationSystemVersionModel _systemVersion)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersClassificationAttributeUnitModel(java.lang.String _code, java.lang.String _symbol, ClassificationSystemVersionModel _systemVersion)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.StringgetCode()Generated method - Getter of theClassificationAttributeUnit.codeattribute defined at extensioncatalog.java.lang.DoublegetConversionFactor()Generated method - Getter of theClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.java.util.Set<ClassificationAttributeUnitModel>getConvertibleUnits()Generated method - Getter of theClassificationAttributeUnit.convertibleUnitsattribute defined at extensioncatalog.java.lang.StringgetExternalID()Generated method - Getter of theClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.java.lang.StringgetName()Generated method - Getter of theClassificationAttributeUnit.nameattribute defined at extensioncatalog.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theClassificationAttributeUnit.nameattribute defined at extensioncatalog.java.lang.StringgetSapCode()Generated method - Getter of theClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.java.lang.StringgetSymbol()Generated method - Getter of theClassificationAttributeUnit.symbolattribute defined at extensioncatalog.ClassificationSystemVersionModelgetSystemVersion()Generated method - Getter of theClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog.java.lang.StringgetUnitType()Generated method - Getter of theClassificationAttributeUnit.unitTypeattribute defined at extensioncatalog.voidsetCode(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.codeattribute defined at extensioncatalog.voidsetConversionFactor(java.lang.Double value)Generated method - Setter ofClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.voidsetExternalID(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.voidsetName(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.voidsetSapCode(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.voidsetSymbol(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.symbolattribute defined at extensioncatalog.voidsetSystemVersion(ClassificationSystemVersionModel value)Generated method - Initial setter ofClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog.voidsetUnitType(java.lang.String value)Generated method - Setter ofClassificationAttributeUnit.unitTypeattribute 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
-
SYSTEMVERSION
public static final java.lang.String SYSTEMVERSION
Generated constant - Attribute key ofClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofClassificationAttributeUnit.codeattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
EXTERNALID
public static final java.lang.String EXTERNALID
Generated constant - Attribute key ofClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
SYMBOL
public static final java.lang.String SYMBOL
Generated constant - Attribute key ofClassificationAttributeUnit.symbolattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
UNITTYPE
public static final java.lang.String UNITTYPE
Generated constant - Attribute key ofClassificationAttributeUnit.unitTypeattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
CONVERSIONFACTOR
public static final java.lang.String CONVERSIONFACTOR
Generated constant - Attribute key ofClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
CONVERTIBLEUNITS
public static final java.lang.String CONVERTIBLEUNITS
Generated constant - Attribute key ofClassificationAttributeUnit.convertibleUnitsattribute defined at extensioncatalog.- See Also:
- Constant Field Values
-
SAPCODE
public static final java.lang.String SAPCODE
Generated constant - Attribute key ofClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassificationAttributeUnitModel
public ClassificationAttributeUnitModel()
Generated constructor - Default constructor for generic creation.
-
ClassificationAttributeUnitModel
public ClassificationAttributeUnitModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ClassificationAttributeUnitModel
@Deprecated(since="4.1.1", forRemoval=true) public ClassificationAttributeUnitModel(java.lang.String _code, java.lang.String _symbol, ClassificationSystemVersionModel _systemVersion)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:
_code- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog_symbol- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog_systemVersion- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog
-
ClassificationAttributeUnitModel
@Deprecated(since="4.1.1", forRemoval=true) public ClassificationAttributeUnitModel(java.lang.String _code, ItemModel _owner, java.lang.String _symbol, ClassificationSystemVersionModel _systemVersion)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:
_code- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog_owner- initial attribute declared by typeItemat extensioncore_symbol- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog_systemVersion- initial attribute declared by typeClassificationAttributeUnitat extensioncatalog
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theClassificationAttributeUnit.codeattribute defined at extensioncatalog.- Returns:
- the code - external identifier refering to the actual classification system definition
-
getConversionFactor
@Accessor(qualifier="conversionFactor", type=GETTER) public java.lang.Double getConversionFactor()
Generated method - Getter of theClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.- Returns:
- the conversionFactor - Conversion factor
-
getConvertibleUnits
@Accessor(qualifier="convertibleUnits", type=GETTER) public java.util.Set<ClassificationAttributeUnitModel> getConvertibleUnits()
Generated method - Getter of theClassificationAttributeUnit.convertibleUnitsattribute defined at extensioncatalog. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the convertibleUnits - Convertible units
-
getExternalID
@Accessor(qualifier="externalID", type=GETTER) public java.lang.String getExternalID()
Generated method - Getter of theClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.- Returns:
- the externalID - external identifier refering to the actual classification system definition
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theClassificationAttributeUnit.nameattribute defined at extensioncatalog.- Returns:
- the name - optional localized name of this class
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theClassificationAttributeUnit.nameattribute defined at extensioncatalog.- Parameters:
loc- the value localization key- Returns:
- the name - optional localized name of this class
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getSapCode
@Accessor(qualifier="sapCode", type=GETTER) public java.lang.String getSapCode()
Generated method - Getter of theClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.- Returns:
- the sapCode - SAP Code (ERP Table T006 field MSEHI)
-
getSymbol
@Accessor(qualifier="symbol", type=GETTER) public java.lang.String getSymbol()
Generated method - Getter of theClassificationAttributeUnit.symbolattribute defined at extensioncatalog.- Returns:
- the symbol - Symbol
-
getSystemVersion
@Accessor(qualifier="systemVersion", type=GETTER) public ClassificationSystemVersionModel getSystemVersion()
Generated method - Getter of theClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog.- Returns:
- the systemVersion
-
getUnitType
@Accessor(qualifier="unitType", type=GETTER) public java.lang.String getUnitType()
Generated method - Getter of theClassificationAttributeUnit.unitTypeattribute defined at extensioncatalog.- Returns:
- the unitType - Unit type
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofClassificationAttributeUnit.codeattribute defined at extensioncatalog.- Parameters:
value- the code - external identifier refering to the actual classification system definition
-
setConversionFactor
@Accessor(qualifier="conversionFactor", type=SETTER) public void setConversionFactor(java.lang.Double value)
Generated method - Setter ofClassificationAttributeUnit.conversionFactorattribute defined at extensioncatalog.- Parameters:
value- the conversionFactor - Conversion factor
-
setExternalID
@Accessor(qualifier="externalID", type=SETTER) public void setExternalID(java.lang.String value)
Generated method - Setter ofClassificationAttributeUnit.externalIDattribute defined at extensioncatalog.- Parameters:
value- the externalID - external identifier refering to the actual classification system definition
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.- Parameters:
value- the name - optional localized name of this class
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofClassificationAttributeUnit.nameattribute defined at extensioncatalog.- Parameters:
value- the name - optional localized name of this classloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setSapCode
@Accessor(qualifier="sapCode", type=SETTER) public void setSapCode(java.lang.String value)
Generated method - Setter ofClassificationAttributeUnit.sapCodeattribute defined at extensionsapmodel.- Parameters:
value- the sapCode - SAP Code (ERP Table T006 field MSEHI)
-
setSymbol
@Accessor(qualifier="symbol", type=SETTER) public void setSymbol(java.lang.String value)
Generated method - Setter ofClassificationAttributeUnit.symbolattribute defined at extensioncatalog.- Parameters:
value- the symbol - Symbol
-
setSystemVersion
@Accessor(qualifier="systemVersion", type=SETTER) public void setSystemVersion(ClassificationSystemVersionModel value)
Generated method - Initial setter ofClassificationAttributeUnit.systemVersionattribute defined at extensioncatalog. Can only be used at creation of model - before first save.- Parameters:
value- the systemVersion
-
-