Class B2BBudgetModel

All Implemented Interfaces:
Serializable

public class B2BBudgetModel extends ItemModel
Generated model class for type B2BBudget first defined at extension b2bcommerce.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String _B2BUNIT2B2BBUDGET
      Generated relation code constant for relation B2BUnit2B2BBudget defining source attribute Unit in extension b2bcommerce.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of B2BBudget.code attribute defined at extension b2bcommerce.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of B2BBudget.name attribute defined at extension b2bcommerce.
      See Also:
    • BUDGET

      public static final String BUDGET
      Generated constant - Attribute key of B2BBudget.budget attribute defined at extension b2bcommerce.
      See Also:
    • CURRENCY

      public static final String CURRENCY
      Generated constant - Attribute key of B2BBudget.currency attribute defined at extension b2bcommerce.
      See Also:
    • DATERANGE

      public static final String DATERANGE
      Generated constant - Attribute key of B2BBudget.dateRange attribute defined at extension b2bcommerce.
      See Also:
    • ACTIVE

      public static final String ACTIVE
      Generated constant - Attribute key of B2BBudget.active attribute defined at extension b2bcommerce.
      See Also:
    • UNIT

      public static final String UNIT
      Generated constant - Attribute key of B2BBudget.Unit attribute defined at extension b2bcommerce.
      See Also:
    • COSTCENTERS

      public static final String COSTCENTERS
      Generated constant - Attribute key of B2BBudget.CostCenters attribute defined at extension b2bcommerce.
      See Also:
  • Constructor Details

    • B2BBudgetModel

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

      public B2BBudgetModel(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _Unit - initial attribute declared by type B2BBudget at extension b2bcommerce
      _code - initial attribute declared by type B2BBudget at extension b2bcommerce
      _currency - initial attribute declared by type B2BBudget at extension b2bcommerce
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _Unit - initial attribute declared by type B2BBudget at extension b2bcommerce
      _code - initial attribute declared by type B2BBudget at extension b2bcommerce
      _currency - initial attribute declared by type B2BBudget at extension b2bcommerce
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getActive

      @Accessor(qualifier="active", type=GETTER) public Boolean getActive()
      Generated method - Getter of the B2BBudget.active attribute defined at extension b2bcommerce.
      Returns:
      the active
    • getBudget

      @Accessor(qualifier="budget", type=GETTER) public BigDecimal getBudget()
      Generated method - Getter of the B2BBudget.budget attribute defined at extension b2bcommerce.
      Returns:
      the budget
    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the B2BBudget.code attribute defined at extension b2bcommerce.
      Returns:
      the code
    • getCostCenters

      @Accessor(qualifier="CostCenters", type=GETTER) public Set<B2BCostCenterModel> getCostCenters()
      Generated method - Getter of the B2BBudget.CostCenters attribute defined at extension b2bcommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the CostCenters
    • getCurrency

      @Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
      Generated method - Getter of the B2BBudget.currency attribute defined at extension b2bcommerce.
      Returns:
      the currency
    • getDateRange

      @Accessor(qualifier="dateRange", type=GETTER) public StandardDateRange getDateRange()
      Generated method - Getter of the B2BBudget.dateRange attribute defined at extension b2bcommerce.
      Returns:
      the dateRange - date range the budget is active
    • getName

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

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the B2BBudget.name attribute defined at extension b2bcommerce.
      Parameters:
      loc - the value localization key
      Returns:
      the name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getUnit

      @Accessor(qualifier="Unit", type=GETTER) public B2BUnitModel getUnit()
      Generated method - Getter of the B2BBudget.Unit attribute defined at extension b2bcommerce.
      Returns:
      the Unit
    • setActive

      @Accessor(qualifier="active", type=SETTER) public void setActive(Boolean value)
      Generated method - Setter of B2BBudget.active attribute defined at extension b2bcommerce.
      Parameters:
      value - the active
    • setBudget

      @Accessor(qualifier="budget", type=SETTER) public void setBudget(BigDecimal value)
      Generated method - Setter of B2BBudget.budget attribute defined at extension b2bcommerce.
      Parameters:
      value - the budget
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of B2BBudget.code attribute defined at extension b2bcommerce.
      Parameters:
      value - the code
    • setCostCenters

      @Accessor(qualifier="CostCenters", type=SETTER) public void setCostCenters(Set<B2BCostCenterModel> value)
      Generated method - Setter of B2BBudget.CostCenters attribute defined at extension b2bcommerce.
      Parameters:
      value - the CostCenters
    • setCurrency

      @Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
      Generated method - Setter of B2BBudget.currency attribute defined at extension b2bcommerce.
      Parameters:
      value - the currency
    • setDateRange

      @Accessor(qualifier="dateRange", type=SETTER) public void setDateRange(StandardDateRange value)
      Generated method - Setter of B2BBudget.dateRange attribute defined at extension b2bcommerce.
      Parameters:
      value - the dateRange - date range the budget is active
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of B2BBudget.name attribute defined at extension b2bcommerce.
      Parameters:
      value - the name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of B2BBudget.name attribute defined at extension b2bcommerce.
      Parameters:
      value - the name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setUnit

      @Accessor(qualifier="Unit", type=SETTER) public void setUnit(B2BUnitModel value)
      Generated method - Setter of B2BBudget.Unit attribute defined at extension b2bcommerce.
      Parameters:
      value - the Unit