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:
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
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACCUMULATIVEGenerated constant - Attribute key ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.static java.lang.StringIDGenerated constant - Attribute key ofUsageUnit.idattribute defined at extensionsubscriptionservices.static java.lang.StringNAMEGenerated constant - Attribute key ofUsageUnit.nameattribute defined at extensionsubscriptionservices.static java.lang.StringNAMEPLURALGenerated constant - Attribute key ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.-
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 UsageUnitModel()Generated constructor - Default constructor for generic creation.UsageUnitModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextUsageUnitModel(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 parametersUsageUnitModel(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.BooleangetAccumulative()Generated method - Getter of theUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.java.lang.StringgetId()Generated method - Getter of theUsageUnit.idattribute defined at extensionsubscriptionservices.java.lang.StringgetName()Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.java.lang.StringgetNamePlural()Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.java.lang.StringgetNamePlural(java.util.Locale loc)Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.voidsetAccumulative(java.lang.Boolean value)Generated method - Setter ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.voidsetId(java.lang.String value)Generated method - Initial setter ofUsageUnit.idattribute defined at extensionsubscriptionservices.voidsetName(java.lang.String value)Generated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.voidsetNamePlural(java.lang.String value)Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.voidsetNamePlural(java.lang.String value, java.util.Locale loc)Generated method - Setter ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.-
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
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofUsageUnit.idattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
NAMEPLURAL
public static final java.lang.String NAMEPLURAL
Generated constant - Attribute key ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
ACCUMULATIVE
public static final java.lang.String ACCUMULATIVE
Generated constant - Attribute key ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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(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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_id- initial attribute declared by typeUsageUnitat extensionsubscriptionservices
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_id- initial attribute declared by typeUsageUnitat extensionsubscriptionservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getAccumulative
@Accessor(qualifier="accumulative", type=GETTER) public java.lang.Boolean getAccumulative()
Generated method - Getter of theUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- Returns:
- the accumulative - Accumulative
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theUsageUnit.idattribute defined at extensionsubscriptionservices.- Returns:
- the id - Identifier
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.- Returns:
- the name - Name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theUsageUnit.nameattribute defined at extensionsubscriptionservices.- 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 theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Returns:
- the namePlural - Name (Plural)
-
getNamePlural
@Accessor(qualifier="namePlural", type=GETTER) public java.lang.String getNamePlural(java.util.Locale loc)
Generated method - Getter of theUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the namePlural - Name (Plural)
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setAccumulative
@Accessor(qualifier="accumulative", type=SETTER) public void setAccumulative(java.lang.Boolean value)
Generated method - Setter ofUsageUnit.accumulativeattribute defined at extensionsubscriptionservices.- Parameters:
value- the accumulative - Accumulative
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
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
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- 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 ofUsageUnit.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Nameloc- 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 ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- 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 ofUsageUnit.namePluralattribute defined at extensionsubscriptionservices.- Parameters:
value- the namePlural - Name (Plural)loc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-