Package de.hybris.platform.b2b.model
Class B2BCostCenterModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.b2b.model.B2BCostCenterModel
-
- All Implemented Interfaces:
java.io.Serializable
public class B2BCostCenterModel extends ItemModel
Generated model class for type B2BCostCenter first defined at extension b2bcommerce.- 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_B2BBUDGETS2COSTCENTERSGenerated relation code constant for relationB2BBudgets2CostCentersdefining source attributeBudgetsin extensionb2bcommerce.static java.lang.String_B2BUNIT2B2BCOSTCENTERGenerated relation code constant for relationB2BUnit2B2BCostCenterdefining source attributeUnitin extensionb2bcommerce.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIVEGenerated constant - Attribute key ofB2BCostCenter.activeattribute defined at extensionb2bcommerce.static java.lang.StringBUDGETSGenerated constant - Attribute key ofB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce.static java.lang.StringCODEGenerated constant - Attribute key ofB2BCostCenter.codeattribute defined at extensionb2bcommerce.static java.lang.StringCURRENCYGenerated constant - Attribute key ofB2BCostCenter.currencyattribute defined at extensionb2bcommerce.static java.lang.StringNAMEGenerated constant - Attribute key ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.static java.lang.StringUNITGenerated constant - Attribute key ofB2BCostCenter.Unitattribute defined at extensionb2bcommerce.-
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 B2BCostCenterModel()Generated constructor - Default constructor for generic creation.B2BCostCenterModel(B2BUnitModel _Unit, java.lang.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 parametersB2BCostCenterModel(B2BUnitModel _Unit, java.lang.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 parametersB2BCostCenterModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetActive()Generated method - Getter of theB2BCostCenter.activeattribute defined at extensionb2bcommerce.java.util.Set<B2BBudgetModel>getBudgets()Generated method - Getter of theB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce.java.lang.StringgetCode()Generated method - Getter of theB2BCostCenter.codeattribute defined at extensionb2bcommerce.CurrencyModelgetCurrency()Generated method - Getter of theB2BCostCenter.currencyattribute defined at extensionb2bcommerce.java.lang.StringgetName()Generated method - Getter of theB2BCostCenter.nameattribute defined at extensionb2bcommerce.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theB2BCostCenter.nameattribute defined at extensionb2bcommerce.B2BUnitModelgetUnit()Generated method - Getter of theB2BCostCenter.Unitattribute defined at extensionb2bcommerce.voidsetActive(java.lang.Boolean value)Generated method - Setter ofB2BCostCenter.activeattribute defined at extensionb2bcommerce.voidsetBudgets(java.util.Set<B2BBudgetModel> value)Generated method - Setter ofB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce.voidsetCode(java.lang.String value)Generated method - Setter ofB2BCostCenter.codeattribute defined at extensionb2bcommerce.voidsetCurrency(CurrencyModel value)Generated method - Setter ofB2BCostCenter.currencyattribute defined at extensionb2bcommerce.voidsetName(java.lang.String value)Generated method - Setter ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.voidsetUnit(B2BUnitModel value)Generated method - Setter ofB2BCostCenter.Unitattribute defined at extensionb2bcommerce.-
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
-
_B2BUNIT2B2BCOSTCENTER
public static final java.lang.String _B2BUNIT2B2BCOSTCENTER
Generated relation code constant for relationB2BUnit2B2BCostCenterdefining source attributeUnitin extensionb2bcommerce.- See Also:
- Constant Field Values
-
_B2BBUDGETS2COSTCENTERS
public static final java.lang.String _B2BBUDGETS2COSTCENTERS
Generated relation code constant for relationB2BBudgets2CostCentersdefining source attributeBudgetsin extensionb2bcommerce.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofB2BCostCenter.codeattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Generated constant - Attribute key ofB2BCostCenter.currencyattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofB2BCostCenter.activeattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
Generated constant - Attribute key ofB2BCostCenter.Unitattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
BUDGETS
public static final java.lang.String BUDGETS
Generated constant - Attribute key ofB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
B2BCostCenterModel
public B2BCostCenterModel()
Generated constructor - Default constructor for generic creation.
-
B2BCostCenterModel
public B2BCostCenterModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
B2BCostCenterModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BCostCenterModel(B2BUnitModel _Unit, java.lang.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 typeB2BCostCenterat extensionb2bcommerce_code- initial attribute declared by typeB2BCostCenterat extensionb2bcommerce_currency- initial attribute declared by typeB2BCostCenterat extensionb2bcommerce
-
B2BCostCenterModel
@Deprecated(since="4.1.1", forRemoval=true) public B2BCostCenterModel(B2BUnitModel _Unit, java.lang.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 typeB2BCostCenterat extensionb2bcommerce_code- initial attribute declared by typeB2BCostCenterat extensionb2bcommerce_currency- initial attribute declared by typeB2BCostCenterat extensionb2bcommerce_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theB2BCostCenter.activeattribute defined at extensionb2bcommerce.- Returns:
- the active
-
getBudgets
@Accessor(qualifier="Budgets", type=GETTER) public java.util.Set<B2BBudgetModel> getBudgets()
Generated method - Getter of theB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the Budgets
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theB2BCostCenter.codeattribute defined at extensionb2bcommerce.- Returns:
- the code
-
getCurrency
@Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
Generated method - Getter of theB2BCostCenter.currencyattribute defined at extensionb2bcommerce.- Returns:
- the currency
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theB2BCostCenter.nameattribute defined at extensionb2bcommerce.- Returns:
- the name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theB2BCostCenter.nameattribute defined at extensionb2bcommerce.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getUnit
@Accessor(qualifier="Unit", type=GETTER) public B2BUnitModel getUnit()
Generated method - Getter of theB2BCostCenter.Unitattribute defined at extensionb2bcommerce.- Returns:
- the Unit - The Parent B2BUnit
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofB2BCostCenter.activeattribute defined at extensionb2bcommerce.- Parameters:
value- the active
-
setBudgets
@Accessor(qualifier="Budgets", type=SETTER) public void setBudgets(java.util.Set<B2BBudgetModel> value)
Generated method - Setter ofB2BCostCenter.Budgetsattribute defined at extensionb2bcommerce.- Parameters:
value- the Budgets
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofB2BCostCenter.codeattribute defined at extensionb2bcommerce.- Parameters:
value- the code
-
setCurrency
@Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
Generated method - Setter ofB2BCostCenter.currencyattribute defined at extensionb2bcommerce.- Parameters:
value- the currency
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.- Parameters:
value- the name
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofB2BCostCenter.nameattribute defined at extensionb2bcommerce.- Parameters:
value- the nameloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setUnit
@Accessor(qualifier="Unit", type=SETTER) public void setUnit(B2BUnitModel value)
Generated method - Setter ofB2BCostCenter.Unitattribute defined at extensionb2bcommerce.- Parameters:
value- the Unit - The Parent B2BUnit
-
-