Class UsageUnitModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class UsageUnitModel
    extends ItemModel
    Generated model class for type UsageUnit first defined at extension subscriptionservices.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

        de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String ACCUMULATIVE
      Generated constant - Attribute key of UsageUnit.accumulative attribute defined at extension subscriptionservices.
      static java.lang.String ID
      Generated constant - Attribute key of UsageUnit.id attribute defined at extension subscriptionservices.
      static java.lang.String NAME
      Generated constant - Attribute key of UsageUnit.name attribute defined at extension subscriptionservices.
      static java.lang.String NAMEPLURAL
      Generated constant - Attribute key of UsageUnit.namePlural attribute defined at extension subscriptionservices.
      static java.lang.String UNITCONVERSIONMAP
      Generated constant - Attribute key of UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
      • Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

        LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
    • Constructor Summary

      Constructors 
      Constructor Description
      UsageUnitModel()
      Generated constructor - Default constructor for generic creation.
      UsageUnitModel​(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      UsageUnitModel​(java.lang.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 parameters
      UsageUnitModel​(java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean getAccumulative()
      Generated method - Getter of the UsageUnit.accumulative attribute defined at extension subscriptionservices.
      java.lang.String getId()
      Generated method - Getter of the UsageUnit.id attribute defined at extension subscriptionservices.
      java.lang.String getName()
      Generated method - Getter of the UsageUnit.name attribute defined at extension subscriptionservices.
      java.lang.String getName​(java.util.Locale loc)
      Generated method - Getter of the UsageUnit.name attribute defined at extension subscriptionservices.
      java.lang.String getNamePlural()
      Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
      java.lang.String getNamePlural​(java.util.Locale loc)
      Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
      java.util.Map<java.lang.String,​java.lang.String> getUnitConversionMap()
      Generated method - Getter of the UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
      void setAccumulative​(java.lang.Boolean value)
      Generated method - Setter of UsageUnit.accumulative attribute defined at extension subscriptionservices.
      void setId​(java.lang.String value)
      Generated method - Initial setter of UsageUnit.id attribute defined at extension subscriptionservices.
      void setName​(java.lang.String value)
      Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
      void setName​(java.lang.String value, java.util.Locale loc)
      Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
      void setNamePlural​(java.lang.String value)
      Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
      void setNamePlural​(java.lang.String value, java.util.Locale loc)
      Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
      void setUnitConversionMap​(java.util.Map<java.lang.String,​java.lang.String> value)
      Generated method - Setter of UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
      • 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • ID

        public static final java.lang.String ID
        Generated constant - Attribute key of UsageUnit.id attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Generated constant - Attribute key of UsageUnit.name attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • NAMEPLURAL

        public static final java.lang.String NAMEPLURAL
        Generated constant - Attribute key of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • ACCUMULATIVE

        public static final java.lang.String ACCUMULATIVE
        Generated constant - Attribute key of UsageUnit.accumulative attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • UNITCONVERSIONMAP

        public static final java.lang.String UNITCONVERSIONMAP
        Generated constant - Attribute key of UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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(since="4.1.1",
                    forRemoval=true)
        public UsageUnitModel​(java.lang.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 parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _id - initial attribute declared by type UsageUnit at extension subscriptionservices
      • UsageUnitModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public UsageUnitModel​(java.lang.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
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _id - initial attribute declared by type UsageUnit at extension subscriptionservices
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getAccumulative

        @Accessor(qualifier="accumulative",
                  type=GETTER)
        public java.lang.Boolean getAccumulative()
        Generated method - Getter of the UsageUnit.accumulative attribute defined at extension subscriptionservices.
        Returns:
        the accumulative - Accumulative
      • getId

        @Accessor(qualifier="id",
                  type=GETTER)
        public java.lang.String getId()
        Generated method - Getter of the UsageUnit.id attribute defined at extension subscriptionservices.
        Returns:
        the id - Identifier
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName()
        Generated method - Getter of the UsageUnit.name attribute defined at extension subscriptionservices.
        Returns:
        the name - Name
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName​(java.util.Locale loc)
        Generated method - Getter of the UsageUnit.name attribute defined at extension subscriptionservices.
        Parameters:
        loc - the value localization key
        Returns:
        the name - Name
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getNamePlural

        @Accessor(qualifier="namePlural",
                  type=GETTER)
        public java.lang.String getNamePlural()
        Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Returns:
        the namePlural - Name (Plural)
      • getNamePlural

        @Accessor(qualifier="namePlural",
                  type=GETTER)
        public java.lang.String getNamePlural​(java.util.Locale loc)
        Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        loc - the value localization key
        Returns:
        the namePlural - Name (Plural)
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getUnitConversionMap

        @Accessor(qualifier="unitConversionMap",
                  type=GETTER)
        public java.util.Map<java.lang.String,​java.lang.String> getUnitConversionMap()
        Generated method - Getter of the UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
        Returns:
        the unitConversionMap
      • setAccumulative

        @Accessor(qualifier="accumulative",
                  type=SETTER)
        public void setAccumulative​(java.lang.Boolean value)
        Generated method - Setter of UsageUnit.accumulative attribute defined at extension subscriptionservices.
        Parameters:
        value - the accumulative - Accumulative
      • setId

        @Accessor(qualifier="id",
                  type=SETTER)
        public void setId​(java.lang.String value)
        Generated method - Initial setter of UsageUnit.id attribute defined at extension subscriptionservices. Can only be used at creation of model - before first save.
        Parameters:
        value - the id - Identifier
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value)
        Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
        Parameters:
        value - the name - Name
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
        Parameters:
        value - the name - Name
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setNamePlural

        @Accessor(qualifier="namePlural",
                  type=SETTER)
        public void setNamePlural​(java.lang.String value)
        Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        value - the namePlural - Name (Plural)
      • setNamePlural

        @Accessor(qualifier="namePlural",
                  type=SETTER)
        public void setNamePlural​(java.lang.String value,
                                  java.util.Locale loc)
        Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        value - the namePlural - Name (Plural)
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setUnitConversionMap

        @Accessor(qualifier="unitConversionMap",
                  type=SETTER)
        public void setUnitConversionMap​(java.util.Map<java.lang.String,​java.lang.String> value)
        Generated method - Setter of UsageUnit.unitConversionMap attribute defined at extension b2ctelcoservices.
        Parameters:
        value - the unitConversionMap