Class C2LItem

    • Constructor Detail

      • C2LItem

        public C2LItem()
    • Method Detail

      • getAllNames

        @Deprecated(since="ages",
                    forRemoval=false)
        public java.util.Map getAllNames​(SessionContext ctx)
        Deprecated.
        Returns all localized name values of this C2LItem in a Map (Mapping: Language -> String).
        Parameters:
        ctx - the SessionContext which will be used
        Returns:
        all localized name values of this C2LItem in a Map
      • setAllNames

        @Deprecated(since="ages",
                    forRemoval=false)
        public void setAllNames​(SessionContext ctx,
                                java.util.Map names)
        Deprecated.
        Sets multiple name values for different languages at once. Name values are specified in a Map which must have the following structure Language -> String.
        Parameters:
        ctx - A SessionContext object
        names - a Map containing all localized name values (Mapping: Language -> String)
      • setActive

        public void setActive​(SessionContext ctx,
                              java.lang.Boolean active)
                       throws ConsistencyCheckException
        Sets this item active or passive.
        Overrides:
        setActive in class GeneratedC2LItem
        Parameters:
        ctx - the SessionContext which will be used
        active - boolean indicating if this C2LItem is active or inactive.
        Throws:
        ConsistencyCheckException - if you want to deactivate a C2LItem, but this is forbidden. There must be always at least one active Language and Currency in the system.
      • getIsoCode

        @Deprecated(since="ages",
                    forRemoval=false)
        public java.lang.String getIsoCode()
        Deprecated.
        since ages - useGeneratedC2LItem.getIsocode() instead
        Returns the isocode of this C2LItem.
        Returns:
        the isocode of this C2LItem
      • getIsoCode

        @Deprecated(since="ages",
                    forRemoval=false)
        public java.lang.String getIsoCode​(SessionContext ctx)
        Deprecated.
        since ages - useGeneratedC2LItem.getIsocode() instead
        Returns the isocode of this C2LItem.
        Parameters:
        ctx - the SessionContext which will be used
        Returns:
        the isocode of this C2LItem
      • setIsoCode

        @Deprecated(since="ages",
                    forRemoval=false)
        public void setIsoCode​(java.lang.String iso)
                        throws ConsistencyCheckException
        Deprecated.
        since ages - useGeneratedC2LItem.setIsocode(String) instead
        Sets the isocode of this C2LItem. ISOCodes must be unique within the instances of each C2LItem subclass.
        Parameters:
        iso - the new isocode
        Throws:
        ConsistencyCheckException - if there is a duplicate isocode found within a subclass of C2LItem
      • setIsoCode

        @Deprecated(since="ages",
                    forRemoval=false)
        public void setIsoCode​(SessionContext ctx,
                               java.lang.String iso)
                        throws ConsistencyCheckException
        Deprecated.
        since ages - usesetIsocode(SessionContext, String) instead
        Sets the isocode of this C2LItem. ISOCodes must be unique within the instances of each C2LItem subclass.
        Parameters:
        ctx - the SessionContext which will be used
        iso - the new isocode
        Throws:
        ConsistencyCheckException - if there is a duplicate isocode found within a subclass of C2LItem
      • toString

        public java.lang.String toString()
        Returns the String representation of a C2LItem.

        The format of the String representation is 'PK of C2LItem'->'ISOCode of C2LItem'. For example 578345030459940344->de

        Overrides:
        toString in class Item
        Returns:
        the String representation of a C2LItem