Class ExtendedField

    • Constructor Detail

      • ExtendedField

        public ExtendedField​(String aExtendedFieldTypeID)
        Constructor for the extendedfield with only one value - the id.
        Parameters:
        aExtendedFieldTypeID - the Id of the extendededfieldtype
      • ExtendedField

        public ExtendedField​(Long aExtendedFieldID,
                             Long aExtendedFieldTypeID,
                             String aName,
                             String aFormattingPattern,
                             int aDatatype,
                             boolean aMandatory,
                             int aSequenceNr,
                             String aDefaultValue,
                             String aOptions,
                             int aMaxlen)
        Constructor for ExtendedField, that requires all data.
        Parameters:
        aExtendedFieldID - The extendedfieldId of the extendedfield
        aExtendedFieldTypeID - The extendedfieldtypeId of the extendedfield
        aName - The name of the extendedfield
        aFormattingPattern - The name of the extendedfield
        aDatatype - The datatype of the extendedfield
        aMandatory - The mandatory state of the extendedfield
        aSequenceNr - The sequencenr of the extendedfield
        aDefaultValue - The default value of the extendedfield
        aOptions - The options of the extendedfield
        aMaxlen - The maxlen of the extendedfield
    • Method Detail

      • getExtendedFieldID

        public Long getExtendedFieldID()
        Returns:
        the extendedFieldID
      • setExtendedFieldID

        public void setExtendedFieldID​(Long extendedFieldID)
        Set the ID of the extendedField..
        Parameters:
        extendedFieldID - the ID of the extendedField..
      • getExtendedFieldTypeID

        public Long getExtendedFieldTypeID()
        Returns:
        the extendedFieldTypeID
      • setExtendedFieldTypeID

        public void setExtendedFieldTypeID​(Long extendedFieldTypeID)
        Set the name of the extendedFieldTypeID.
        Parameters:
        extendedFieldTypeID - an extendedfieldtypeId
      • getName

        public String getName()
        Returns:
        the name of the extendedField
      • setName

        public void setName​(String name)
        Set the name of the extendedField.
        Parameters:
        name - the name of the extendedField
      • getFormattingPattern

        public String getFormattingPattern()
        Returns:
        the formatting pattern of the extendedField
      • setFormattingPattern

        public void setFormattingPattern​(String aFormattingPattern)
        Set a formatting pattern for this extendefield.
        Parameters:
        aFormattingPattern - a formatting pattern for this extendedfield
      • getDatatype

        public int getDatatype()
        Returns:
        the datatype of the extendedField
      • setDatatype

        public void setDatatype​(int datatype)
        Set the datatype of this extendedField.
        Parameters:
        datatype - a datatype for this extendedfield
      • isMandatory

        public boolean isMandatory()
        Returns:
        true, if extendedfield is mandatory, otherwise false.
      • setMandatory

        public void setMandatory​(boolean mandatory)
        Set the mandatory-state of this extendedField.
        Parameters:
        mandatory - A mandatory-state of this extendedField
      • getSequencenr

        public int getSequencenr()
        Returns:
        the sequencenr of the extendedField
      • setSequencenr

        public void setSequencenr​(int sequencenr)
        Set the sequencenr of this extendedField.
        Parameters:
        sequencenr - a new sequencenr of this extendedField.
      • getDefaultValue

        public String getDefaultValue()
        Returns:
        the default value of the extendedField
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
        Set the defaultvalue of this extendedField.
        Parameters:
        defaultValue - the defaultvalue of this extendedField.
      • getOptions

        public String getOptions()
        Returns:
        the options of the extendedField
      • getMaxlen

        public int getMaxlen()
        Returns:
        the max length of the extendedField
      • setMaxlen

        public void setMaxlen​(int aMaxlen)
        Set the maxlen of this extendedField.
        Parameters:
        aMaxlen - for this extendedfield
      • setOptions

        public void setOptions​(String options)
        Set the options of the extendedField.
        Parameters:
        options - the options of the extendedField
      • getOptionValues

        public Map<String,​String> getOptionValues()
        Returns:
        a map of option values.
      • getJspFieldname

        public String getJspFieldname()
        Returns:
        the JSP field name.