Class PropertyMapImpl

    • Constructor Detail

      • PropertyMapImpl

        public PropertyMapImpl​(String name,
                               short type,
                               PropertyMaps owner)
    • Method Detail

      • getType

        public short getType()
      • getValue

        public Object getValue​(String name)
        Specified by:
        getValue in interface PropertyMap
        Returns:
        the value of the property with the given name, if any
      • getValue

        public Object getValue​(String name,
                               Object defaultValue)
        Specified by:
        getValue in interface PropertyMap
        Returns:
        the value of the property with the given name, if any, otherwise the given defaultValue
      • put

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put​(String name,
                                                                                      Object value)
        Description copied from interface: PropertyMap
        Creates a new (or updates an existing) property in the map. Attempts to determine the type of the property based on the name and value (the property names listed above have their types builtin, otherwise the type of the value is used).

        Note, this change will not be persisted until the PropertyMap.save() method has been called.

        Specified by:
        put in interface PropertyMap
        Returns:
        the newly created (or updated) property
      • put

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put​(String name,
                                                                                      DataType type,
                                                                                      Object value)
        Description copied from interface: PropertyMap
        Creates a new (or updates an existing) property in the map.

        Note, this change will not be persisted until the PropertyMap.save() method has been called.

        Specified by:
        put in interface PropertyMap
        Returns:
        the newly created (or updated) property
      • putAll

        public void putAll​(Iterable<? extends PropertyMap.Property> props)
        Description copied from interface: PropertyMap
        Puts all the given properties into this map.
        Specified by:
        putAll in interface PropertyMap
        Parameters:
        props - the properties to put into this map (null is tolerated and ignored).
      • put

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put​(PropertyMap.Property prop)
      • put

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put​(String name,
                                                                                      DataType type,
                                                                                      Object value,
                                                                                      boolean isDdl)
        Puts a property into this map with the given information.
        Specified by:
        put in interface PropertyMap
        Returns:
        the newly created (or updated) property
      • put

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put​(String name,
                                                                                      DataType type,
                                                                                      Object value,
                                                                                      boolean isDdl,
                                                                                      boolean isSkipHandler)
        Description copied from interface: PropertyMap
        Creates a new (or updates an existing) property in the map, setting both of the flag bits ms access defines.

        Note, this change will not be persisted until the PropertyMap.save() method has been called.

        Specified by:
        put in interface PropertyMap
        Returns:
        the newly created (or updated) property
      • remove

        public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl remove​(String name)
        Description copied from interface: PropertyMap
        Removes the property with the given name
        Specified by:
        remove in interface PropertyMap
        Returns:
        the removed property, or null if none found