Class UsageUnitModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.subscriptionservices.model.UsageUnitModel
- All Implemented Interfaces:
Serializable
Generated model class for type UsageUnit first defined at extension subscriptionservices.
- 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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageUnit.idattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageUnit.nameattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.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.UsageUnitModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextUsageUnitModel(String _id) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersUsageUnitModel(String _id, ItemModel _owner) 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 theUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.getId()Generated method - Getter of theUsageUnit.idattribute defined at extensionsubscriptionservices.getName()Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.getNamePlural(Locale loc) Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.voidsetAccumulative(Boolean value) Generated method - Setter ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.voidGenerated method - Initial setter ofUsageUnit.idattribute defined at extensionsubscriptionservices.voidGenerated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.voidGenerated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.voidsetNamePlural(String value) Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.voidsetNamePlural(String value, Locale loc) Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.voidsetUnitConversionMap(Map<String, String> value) Generated method - Setter ofUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.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:
-
ID
Generated constant - Attribute key ofUsageUnit.idattribute defined at extensionsubscriptionservices.- See Also:
-
NAME
Generated constant - Attribute key ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- See Also:
-
NAMEPLURAL
Generated constant - Attribute key ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- See Also:
-
ACCUMULATIVE
Generated constant - Attribute key ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- See Also:
-
UNITCONVERSIONMAP
Generated constant - Attribute key ofUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.- See Also:
-
-
Constructor Details
-
UsageUnitModel
public UsageUnitModel()Generated constructor - Default constructor for generic creation. -
UsageUnitModel
public UsageUnitModel(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
-
UsageUnitModel
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:
_id- initial attribute declared by typeUsageUnitat extensionsubscriptionservices
-
UsageUnitModel
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:
_id- initial attribute declared by typeUsageUnitat extensionsubscriptionservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getAccumulative
Generated method - Getter of theUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- Returns:
- the accumulative - Accumulative
-
getId
Generated method - Getter of theUsageUnit.idattribute defined at extensionsubscriptionservices.- Returns:
- the id - Identifier
-
getName
Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.- Returns:
- the name - Name
-
getName
Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getNamePlural
Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Returns:
- the namePlural - Name (Plural)
-
getNamePlural
Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the namePlural - Name (Plural)
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getUnitConversionMap
@Accessor(qualifier="unitConversionMap", type=GETTER) public Map<String,String> getUnitConversionMap()Generated method - Getter of theUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.- Returns:
- the unitConversionMap
-
setAccumulative
Generated method - Setter ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- Parameters:
value- the accumulative - Accumulative
-
setId
Generated method - Initial setter ofUsageUnit.idattribute defined at extensionsubscriptionservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setName
Generated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Name
-
setName
Generated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setNamePlural
Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Parameters:
value- the namePlural - Name (Plural)
-
setNamePlural
Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Parameters:
value- the namePlural - Name (Plural)loc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setUnitConversionMap
@Accessor(qualifier="unitConversionMap", type=SETTER) public void setUnitConversionMap(Map<String, String> value) Generated method - Setter ofUsageUnit.unitConversionMapattribute defined at extensionb2ctelcoservices.- Parameters:
value- the unitConversionMap
-