Class CollectionReference<C extends Collection>

  • 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 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 class MorphiaReference<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 class MorphiaReference<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 class MorphiaReference<C extends Collection>
        Returns:
        the referenced type