Class GeneratedUsageCharge

    • Field Detail

      • ID

        public static final java.lang.String ID
        Qualifier of the UsageCharge.id attribute
        See Also:
        Constant Field Values
      • CATALOGVERSION

        public static final java.lang.String CATALOGVERSION
        Qualifier of the UsageCharge.catalogVersion attribute
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Qualifier of the UsageCharge.name attribute
        See Also:
        Constant Field Values
      • USAGEUNIT

        public static final java.lang.String USAGEUNIT
        Qualifier of the UsageCharge.usageUnit attribute
        See Also:
        Constant Field Values
      • SUBSCRIPTIONPRICEPLANUSAGE

        public static final java.lang.String SUBSCRIPTIONPRICEPLANUSAGE
        Qualifier of the UsageCharge.subscriptionPricePlanUsage attribute
        See Also:
        Constant Field Values
      • USAGECHARGEENTRIES

        public static final java.lang.String USAGECHARGEENTRIES
        Qualifier of the UsageCharge.usageChargeEntries attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedUsageCharge

        public GeneratedUsageCharge()
    • Method Detail

      • getCatalogVersion

        public CatalogVersion getCatalogVersion​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.catalogVersion attribute.
        Returns:
        the catalogVersion - Catalog Version
      • getCatalogVersion

        public CatalogVersion getCatalogVersion()
        Generated method - Getter of the UsageCharge.catalogVersion attribute.
        Returns:
        the catalogVersion - Catalog Version
      • setCatalogVersion

        protected void setCatalogVersion​(SessionContext ctx,
                                         CatalogVersion value)
        Generated method - Setter of the UsageCharge.catalogVersion attribute.
        Parameters:
        value - the catalogVersion - Catalog Version
      • setCatalogVersion

        protected void setCatalogVersion​(CatalogVersion value)
        Generated method - Setter of the UsageCharge.catalogVersion attribute.
        Parameters:
        value - the catalogVersion - Catalog Version
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getId

        public java.lang.String getId​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.id attribute.
        Returns:
        the id - Identifier
      • getId

        public java.lang.String getId()
        Generated method - Getter of the UsageCharge.id attribute.
        Returns:
        the id - Identifier
      • setId

        protected void setId​(SessionContext ctx,
                             java.lang.String value)
        Generated method - Setter of the UsageCharge.id attribute.
        Parameters:
        value - the id - Identifier
      • setId

        protected void setId​(java.lang.String value)
        Generated method - Setter of the UsageCharge.id attribute.
        Parameters:
        value - the id - Identifier
      • getName

        public java.lang.String getName​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.name attribute.
        Returns:
        the name - Name
      • getName

        public java.lang.String getName()
        Generated method - Getter of the UsageCharge.name attribute.
        Returns:
        the name - Name
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.name attribute.
        Returns:
        the localized name - Name
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName()
        Generated method - Getter of the UsageCharge.name attribute.
        Returns:
        the localized name - Name
      • setName

        public void setName​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the UsageCharge.name attribute.
        Parameters:
        value - the name - Name
      • setName

        public void setName​(java.lang.String value)
        Generated method - Setter of the UsageCharge.name attribute.
        Parameters:
        value - the name - Name
      • setAllName

        public void setAllName​(SessionContext ctx,
                               java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the UsageCharge.name attribute.
        Parameters:
        value - the name - Name
      • setAllName

        public void setAllName​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the UsageCharge.name attribute.
        Parameters:
        value - the name - Name
      • getSubscriptionPricePlanUsage

        public SubscriptionPricePlan getSubscriptionPricePlanUsage​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.subscriptionPricePlanUsage attribute.
        Returns:
        the subscriptionPricePlanUsage
      • getSubscriptionPricePlanUsage

        public SubscriptionPricePlan getSubscriptionPricePlanUsage()
        Generated method - Getter of the UsageCharge.subscriptionPricePlanUsage attribute.
        Returns:
        the subscriptionPricePlanUsage
      • setSubscriptionPricePlanUsage

        public void setSubscriptionPricePlanUsage​(SessionContext ctx,
                                                  SubscriptionPricePlan value)
        Generated method - Setter of the UsageCharge.subscriptionPricePlanUsage attribute.
        Parameters:
        value - the subscriptionPricePlanUsage
      • setSubscriptionPricePlanUsage

        public void setSubscriptionPricePlanUsage​(SubscriptionPricePlan value)
        Generated method - Setter of the UsageCharge.subscriptionPricePlanUsage attribute.
        Parameters:
        value - the subscriptionPricePlanUsage
      • getUsageChargeEntries

        public java.util.Collection<UsageChargeEntry> getUsageChargeEntries​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.usageChargeEntries attribute.
        Returns:
        the usageChargeEntries
      • getUsageChargeEntries

        public java.util.Collection<UsageChargeEntry> getUsageChargeEntries()
        Generated method - Getter of the UsageCharge.usageChargeEntries attribute.
        Returns:
        the usageChargeEntries
      • setUsageChargeEntries

        public void setUsageChargeEntries​(SessionContext ctx,
                                          java.util.Collection<UsageChargeEntry> value)
        Generated method - Setter of the UsageCharge.usageChargeEntries attribute.
        Parameters:
        value - the usageChargeEntries
      • setUsageChargeEntries

        public void setUsageChargeEntries​(java.util.Collection<UsageChargeEntry> value)
        Generated method - Setter of the UsageCharge.usageChargeEntries attribute.
        Parameters:
        value - the usageChargeEntries
      • addToUsageChargeEntries

        public void addToUsageChargeEntries​(SessionContext ctx,
                                            UsageChargeEntry value)
        Generated method - Adds value to usageChargeEntries.
        Parameters:
        value - the item to add to usageChargeEntries
      • addToUsageChargeEntries

        public void addToUsageChargeEntries​(UsageChargeEntry value)
        Generated method - Adds value to usageChargeEntries.
        Parameters:
        value - the item to add to usageChargeEntries
      • removeFromUsageChargeEntries

        public void removeFromUsageChargeEntries​(SessionContext ctx,
                                                 UsageChargeEntry value)
        Generated method - Removes value from usageChargeEntries.
        Parameters:
        value - the item to remove from usageChargeEntries
      • removeFromUsageChargeEntries

        public void removeFromUsageChargeEntries​(UsageChargeEntry value)
        Generated method - Removes value from usageChargeEntries.
        Parameters:
        value - the item to remove from usageChargeEntries
      • getUsageUnit

        public UsageUnit getUsageUnit​(SessionContext ctx)
        Generated method - Getter of the UsageCharge.usageUnit attribute.
        Returns:
        the usageUnit - Usage Unit
      • getUsageUnit

        public UsageUnit getUsageUnit()
        Generated method - Getter of the UsageCharge.usageUnit attribute.
        Returns:
        the usageUnit - Usage Unit
      • setUsageUnit

        public void setUsageUnit​(SessionContext ctx,
                                 UsageUnit value)
        Generated method - Setter of the UsageCharge.usageUnit attribute.
        Parameters:
        value - the usageUnit - Usage Unit
      • setUsageUnit

        public void setUsageUnit​(UsageUnit value)
        Generated method - Setter of the UsageCharge.usageUnit attribute.
        Parameters:
        value - the usageUnit - Usage Unit