Class UsageUnitModel

All Implemented Interfaces:
Serializable

public class UsageUnitModel extends ItemModel
Generated model class for type UsageUnit first defined at extension subscriptionservices.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • ID

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

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

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

      public static final String ACCUMULATIVE
      Generated constant - Attribute key of UsageUnit.accumulative attribute defined at extension subscriptionservices.
      See Also:
  • Constructor Details

    • UsageUnitModel

      public UsageUnitModel()
      Generated constructor - Default constructor for generic creation.
    • UsageUnitModel

      public UsageUnitModel(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(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(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 Details

    • getAccumulative

      @Accessor(qualifier="accumulative", type=GETTER) public 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 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 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 String getName(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:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getNamePlural

      @Accessor(qualifier="namePlural", type=GETTER) public 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 String getNamePlural(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:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setAccumulative

      @Accessor(qualifier="accumulative", type=SETTER) public void setAccumulative(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(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(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(String value, Locale loc)
      Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
      Parameters:
      value - the name - Name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setNamePlural

      @Accessor(qualifier="namePlural", type=SETTER) public void setNamePlural(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(String value, 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:
      IllegalArgumentException - if localization key cannot be mapped to data language