Package dev.morphia.mapping.experimental
Class MapReference<T>
- java.lang.Object
-
- dev.morphia.mapping.experimental.MorphiaReference<Map<Object,T>>
-
- dev.morphia.mapping.experimental.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 Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MapReferencedecode(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 entitiesMap<Object,T>get()Deprecated, for removal: This API element is subject to removal in a future version.Map<String,Object>getId(Mapper mapper, EntityModel field)Deprecated, for removal: This API element is subject to removal in a future version.List<Object>getIds()Deprecated, for removal: This API element is subject to removal in a future version.Class<Map<Object,T>>getType()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class dev.morphia.mapping.experimental.MorphiaReference
equals, getDatastore, getMapper, hashCode, ignoreMissing, ignoreMissing, isResolved, resolve, toString, wrap
-
-
-
-
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 usemapper- the mapper to useids- the IDs of the entitiesentityModel- 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 datastoremapper- the mapperproperty- the property modeldocument- 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:
getin classMorphiaReference<Map<Object,T>>- Returns:
- returns the referenced entity if it exists. May return null.
-
getType
public Class<Map<Object,T>> getType()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getTypein classMorphiaReference<Map<Object,T>>- Returns:
- the referenced type
-
getIds
public List<Object> getIds()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIdsin classMorphiaReference<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.
-
-