Package dev.morphia.mapping.experimental
Class CollectionReference<C extends Collection>
- java.lang.Object
-
- dev.morphia.mapping.experimental.MorphiaReference<C>
-
- dev.morphia.mapping.experimental.CollectionReference<C>
-
- Type Parameters:
C
-
- Direct Known Subclasses:
ListReference
,SetReference
@MorphiaInternal @Deprecated(forRemoval=true, since="2.3") public abstract class CollectionReference<C extends Collection> extends MorphiaReference<C>
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 Modifier Constructor Description protected
CollectionReference()
Deprecated, for removal: This API element is subject to removal in a future version.protected
CollectionReference(Datastore datastore, Mapper mapper, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract C
get()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the referenced entities.List<Object>
getIds()
Deprecated, for removal: This API element is subject to removal in a future version.Class<C>
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
-
CollectionReference
protected CollectionReference(Datastore datastore, Mapper mapper, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.
-
CollectionReference
protected CollectionReference()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
get
public abstract C get()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the referenced entities. This may require at least one request to the server.- Specified by:
get
in classMorphiaReference<C extends Collection>
- Returns:
- the referenced entities
-
getIds
public List<Object> getIds()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIds
in classMorphiaReference<C extends Collection>
- Returns:
- the referenced IDs
-
getType
public Class<C> getType()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getType
in classMorphiaReference<C extends Collection>
- Returns:
- the referenced type
-
-