Package dev.morphia.mapping.experimental
Class ListReference<T>
- java.lang.Object
-
- dev.morphia.mapping.experimental.MorphiaReference<C>
-
- dev.morphia.mapping.experimental.CollectionReference<List<T>>
-
- dev.morphia.mapping.experimental.ListReference<T>
-
- Type Parameters:
T
-
@MorphiaInternal @Deprecated(forRemoval=true, since="2.3") public class ListReference<T> extends CollectionReference<List<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 ListReference(Datastore datastore, Mapper mapper, EntityModel model, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.ListReference(List<T> values)
Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance with prepopulated values.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<T>
get()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the referenced entities.protected void
setValues(List ids)
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class dev.morphia.mapping.experimental.CollectionReference
getIds, getType
-
Methods inherited from class dev.morphia.mapping.experimental.MorphiaReference
equals, getDatastore, getMapper, hashCode, ignoreMissing, ignoreMissing, isResolved, resolve, toString, wrap
-
-
-
-
Constructor Detail
-
ListReference
@MorphiaInternal public ListReference(Datastore datastore, Mapper mapper, EntityModel model, List ids)
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 entitiesmodel
- the EntityModel for 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
-
setValues
protected void setValues(List ids)
Deprecated, for removal: This API element is subject to removal in a future version.
-
get
public List<T> get()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:CollectionReference
Gets the referenced entities. This may require at least one request to the server.- Specified by:
get
in classCollectionReference<List<T>>
- Returns:
- the referenced entities
-
-