Class MapReference<T>

  • Type Parameters:
    T -

    @MorphiaInternal
    @Deprecated(forRemoval=true,
                since="2.3")
    public class MapReference<T>
    extends MorphiaReference<Map<Object,​T>>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • MapReference

        @MorphiaInternal
        public MapReference​(Datastore datastore,
                            Mapper mapper,
                            Map<String,​Object> ids,
                            EntityModel entityModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        datastore - the datastore to use
        mapper - the mapper to use
        ids - the IDs of the entities
        entityModel - the model of the entity type
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • decode

        public static MapReference decode​(Datastore datastore,
                                          Mapper mapper,
                                          PropertyModel property,
                                          Document document)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Decodes a document in to entities
        Parameters:
        datastore - the datastore
        mapper - the mapper
        property - the property model
        document - the Document to decode
        Returns:
        the entities
      • get

        public Map<Object,​T> get()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        get in class MorphiaReference<Map<Object,​T>>
        Returns:
        returns the referenced entity if it exists. May return null.
      • getIds

        public List<Object> getIds()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getIds in class MorphiaReference<Map<Object,​T>>
        Returns:
        the referenced IDs
      • getId

        public Map<String,​Object> getId​(Mapper mapper,
                                              EntityModel field)
        Deprecated, for removal: This API element is subject to removal in a future version.