Package de.hybris.platform.b2b.model
Class B2BBudgetModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.b2b.model.B2BBudgetModel
- All Implemented Interfaces:
Serializable
Generated model class for type B2BBudget first defined at extension b2bcommerce.
- 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 relation code constant for relationB2BUnit2B2BBudgetdefining source attributeUnitin extensionb2bcommerce.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofB2BBudget.activeattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.budgetattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.codeattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.CostCentersattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.currencyattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.dateRangeattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.nameattribute defined at extensionb2bcommerce.static final StringGenerated constant - Attribute key ofB2BBudget.Unitattribute defined at extensionb2bcommerce.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.B2BBudgetModel(B2BUnitModel _Unit, String _code, CurrencyModel _currency) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersB2BBudgetModel(B2BUnitModel _Unit, String _code, CurrencyModel _currency, 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 parametersB2BBudgetModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theB2BBudget.activeattribute defined at extensionb2bcommerce.Generated method - Getter of theB2BBudget.budgetattribute defined at extensionb2bcommerce.getCode()Generated method - Getter of theB2BBudget.codeattribute defined at extensionb2bcommerce.Generated method - Getter of theB2BBudget.CostCentersattribute defined at extensionb2bcommerce.Generated method - Getter of theB2BBudget.currencyattribute defined at extensionb2bcommerce.de.hybris.platform.util.StandardDateRangeGenerated method - Getter of theB2BBudget.dateRangeattribute defined at extensionb2bcommerce.getName()Generated method - Getter of theB2BBudget.nameattribute defined at extensionb2bcommerce.Generated method - Getter of theB2BBudget.nameattribute defined at extensionb2bcommerce.getUnit()Generated method - Getter of theB2BBudget.Unitattribute defined at extensionb2bcommerce.voidGenerated method - Setter ofB2BBudget.activeattribute defined at extensionb2bcommerce.voidsetBudget(BigDecimal value) Generated method - Setter ofB2BBudget.budgetattribute defined at extensionb2bcommerce.voidGenerated method - Setter ofB2BBudget.codeattribute defined at extensionb2bcommerce.voidsetCostCenters(Set<B2BCostCenterModel> value) Generated method - Setter ofB2BBudget.CostCentersattribute defined at extensionb2bcommerce.voidsetCurrency(CurrencyModel value) Generated method - Setter ofB2BBudget.currencyattribute defined at extensionb2bcommerce.voidsetDateRange(de.hybris.platform.util.StandardDateRange value) Generated method - Setter ofB2BBudget.dateRangeattribute defined at extensionb2bcommerce.voidGenerated method - Setter ofB2BBudget.nameattribute defined at extensionb2bcommerce.voidGenerated method - Setter ofB2BBudget.nameattribute defined at extensionb2bcommerce.voidsetUnit(B2BUnitModel value) Generated method - Setter ofB2BBudget.Unitattribute defined at extensionb2bcommerce.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:
-
_B2BUNIT2B2BBUDGET
Generated relation code constant for relationB2BUnit2B2BBudgetdefining source attributeUnitin extensionb2bcommerce.- See Also:
-
CODE
Generated constant - Attribute key ofB2BBudget.codeattribute defined at extensionb2bcommerce.- See Also:
-
NAME
Generated constant - Attribute key ofB2BBudget.nameattribute defined at extensionb2bcommerce.- See Also:
-
BUDGET
Generated constant - Attribute key ofB2BBudget.budgetattribute defined at extensionb2bcommerce.- See Also:
-
CURRENCY
Generated constant - Attribute key ofB2BBudget.currencyattribute defined at extensionb2bcommerce.- See Also:
-
DATERANGE
Generated constant - Attribute key ofB2BBudget.dateRangeattribute defined at extensionb2bcommerce.- See Also:
-
ACTIVE
Generated constant - Attribute key ofB2BBudget.activeattribute defined at extensionb2bcommerce.- See Also:
-
UNIT
Generated constant - Attribute key ofB2BBudget.Unitattribute defined at extensionb2bcommerce.- See Also:
-
COSTCENTERS
Generated constant - Attribute key ofB2BBudget.CostCentersattribute defined at extensionb2bcommerce.- See Also:
-
-
Constructor Details
-
B2BBudgetModel
public B2BBudgetModel()Generated constructor - Default constructor for generic creation. -
B2BBudgetModel
public B2BBudgetModel(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
-
B2BBudgetModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BBudgetModel(B2BUnitModel _Unit, String _code, CurrencyModel _currency) 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:
_Unit- initial attribute declared by typeB2BBudgetat extensionb2bcommerce_code- initial attribute declared by typeB2BBudgetat extensionb2bcommerce_currency- initial attribute declared by typeB2BBudgetat extensionb2bcommerce
-
B2BBudgetModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BBudgetModel(B2BUnitModel _Unit, String _code, CurrencyModel _currency, 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:
_Unit- initial attribute declared by typeB2BBudgetat extensionb2bcommerce_code- initial attribute declared by typeB2BBudgetat extensionb2bcommerce_currency- initial attribute declared by typeB2BBudgetat extensionb2bcommerce_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getActive
Generated method - Getter of theB2BBudget.activeattribute defined at extensionb2bcommerce.- Returns:
- the active
-
getBudget
Generated method - Getter of theB2BBudget.budgetattribute defined at extensionb2bcommerce.- Returns:
- the budget
-
getCode
Generated method - Getter of theB2BBudget.codeattribute defined at extensionb2bcommerce.- Returns:
- the code
-
getCostCenters
Generated method - Getter of theB2BBudget.CostCentersattribute defined at extensionb2bcommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the CostCenters
-
getCurrency
Generated method - Getter of theB2BBudget.currencyattribute defined at extensionb2bcommerce.- Returns:
- the currency
-
getDateRange
@Accessor(qualifier="dateRange", type=GETTER) public de.hybris.platform.util.StandardDateRange getDateRange()Generated method - Getter of theB2BBudget.dateRangeattribute defined at extensionb2bcommerce.- Returns:
- the dateRange - date range the budget is active
-
getName
Generated method - Getter of theB2BBudget.nameattribute defined at extensionb2bcommerce.- Returns:
- the name
-
getName
Generated method - Getter of theB2BBudget.nameattribute defined at extensionb2bcommerce.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getUnit
Generated method - Getter of theB2BBudget.Unitattribute defined at extensionb2bcommerce.- Returns:
- the Unit
-
setActive
Generated method - Setter ofB2BBudget.activeattribute defined at extensionb2bcommerce.- Parameters:
value- the active
-
setBudget
Generated method - Setter ofB2BBudget.budgetattribute defined at extensionb2bcommerce.- Parameters:
value- the budget
-
setCode
Generated method - Setter ofB2BBudget.codeattribute defined at extensionb2bcommerce.- Parameters:
value- the code
-
setCostCenters
@Accessor(qualifier="CostCenters", type=SETTER) public void setCostCenters(Set<B2BCostCenterModel> value) Generated method - Setter ofB2BBudget.CostCentersattribute defined at extensionb2bcommerce.- Parameters:
value- the CostCenters
-
setCurrency
Generated method - Setter ofB2BBudget.currencyattribute defined at extensionb2bcommerce.- Parameters:
value- the currency
-
setDateRange
@Accessor(qualifier="dateRange", type=SETTER) public void setDateRange(de.hybris.platform.util.StandardDateRange value) Generated method - Setter ofB2BBudget.dateRangeattribute defined at extensionb2bcommerce.- Parameters:
value- the dateRange - date range the budget is active
-
setName
Generated method - Setter ofB2BBudget.nameattribute defined at extensionb2bcommerce.- Parameters:
value- the name
-
setName
Generated method - Setter ofB2BBudget.nameattribute defined at extensionb2bcommerce.- Parameters:
value- the nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setUnit
Generated method - Setter ofB2BBudget.Unitattribute defined at extensionb2bcommerce.- Parameters:
value- the Unit
-