Class SerialVoucherModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class SerialVoucherModel
    extends VoucherModel
    Generated model class for type SerialVoucher first defined at extension voucher.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • CODES

        public static final java.lang.String CODES
        Generated constant - Attribute key of SerialVoucher.codes attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SerialVoucherModel

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

        public SerialVoucherModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • SerialVoucherModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public SerialVoucherModel​(java.lang.String _code)
        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:
        _code - initial attribute declared by type Voucher at extension voucher
      • SerialVoucherModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public SerialVoucherModel​(java.lang.String _code,
                                  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:
        _code - initial attribute declared by type Voucher at extension voucher
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getCodes

        @Accessor(qualifier="codes",
                  type=GETTER)
        public java.util.Collection<MediaModel> getCodes()
        Generated method - Getter of the SerialVoucher.codes attribute defined at extension voucher. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the codes - the generated codes of this voucher.
      • setCodes

        @Accessor(qualifier="codes",
                  type=SETTER)
        public void setCodes​(java.util.Collection<MediaModel> value)
        Generated method - Setter of SerialVoucher.codes attribute defined at extension voucher.
        Parameters:
        value - the codes - the generated codes of this voucher.