Package dev.morphia.mapping.experimental
Class SetReference<T>
- java.lang.Object
-
- dev.morphia.mapping.experimental.MorphiaReference<C>
-
- dev.morphia.mapping.experimental.CollectionReference<Set<T>>
-
- dev.morphia.mapping.experimental.SetReference<T>
-
- Type Parameters:
T
-
@MorphiaInternal @Deprecated(forRemoval=true, since="2.3") public class SetReference<T> extends CollectionReference<Set<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 SetReference(Datastore datastore, Mapper mapper, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.SetReference(Set<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 Set<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
-
SetReference
@MorphiaInternal public SetReference(Datastore datastore, Mapper mapper, EntityModel entityModel, 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 useentityModel
- the entity's mapped classids
- the IDs
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 Set<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<Set<T>>
- Returns:
- the referenced entities
-
-