Class FieldInformation

    • Field Detail

      • logger

        protected org.slf4j.Logger logger
      • name

        protected String name
        Name of field
      • field

        protected Field field
        The field itself
      • getter

        protected Method getter
        Getter for field
      • setter

        protected Method setter
        Setter for field
      • map

        protected boolean map
        If the field is a map type
      • fieldClass

        protected Class fieldClass
        Type that is stored in this field
    • Method Detail

      • getName

        public String getName()
      • get

        public Object get​(Object object)
        Returns the field value as database value!
        Parameters:
        object - to be returned from
        Returns:
        value the field has as is (can be null)
      • prepareForDb

        public void prepareForDb​(Object object,
                                 Map<String,​Object> map)
        Returns the field value as database value!
        Parameters:
        object - to be returned from
        map - that will be stored in DB
      • set

        public void set​(Object object,
                        Object value)
        Sets the field to a given value in an object.
        Parameters:
        object - whose field should be set
        value - that the field should be set to -> is a database Value!
      • isMap

        public boolean isMap()
      • getField

        public Field getField()