Class StoreListVAccessor<E extends io.vertigo.datamodel.data.model.Entity>

java.lang.Object
io.vertigo.datamodel.data.model.ListVAccessor<E>
io.vertigo.datastore.impl.entitystore.StoreListVAccessor<E>
Type Parameters:
E - the type of entity
All Implemented Interfaces:
Serializable

public class StoreListVAccessor<E extends io.vertigo.datamodel.data.model.Entity> extends io.vertigo.datamodel.data.model.ListVAccessor<E>
This class is a way to access a list of foreign entities defined by a relationship. It's a kind of box (aka optional) that offers a small list of methods.
Author:
pchretien, mlaroche, npiedeloup *
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    StoreListVAccessor(io.vertigo.datamodel.data.model.Entity entity, String associationDefinitionName, String roleName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertigo.datamodel.data.model.DtList<E>
    Deprecated.
    This usage is discouraged : prefer explicit loading by using load() then get()
    final void
    Loads the value if needed.
    void
    Loads the value if needed.
    final void
    set(io.vertigo.datamodel.data.model.DtList<E> dtList)
     

    Methods inherited from class io.vertigo.datamodel.data.model.ListVAccessor

    get, getDtListURI, getRole, getSourceUID, getTargetDefinitionReference, isLoaded, reset

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StoreListVAccessor

      public StoreListVAccessor(io.vertigo.datamodel.data.model.Entity entity, String associationDefinitionName, String roleName)
  • Method Details

    • load

      public final void load()
      Loads the value if needed.
    • set

      public final void set(io.vertigo.datamodel.data.model.DtList<E> dtList)
      Overrides:
      set in class io.vertigo.datamodel.data.model.ListVAccessor<E extends io.vertigo.datamodel.data.model.Entity>
    • loadIfAbsent

      public void loadIfAbsent()
      Loads the value if needed.
    • lazyGet

      @Deprecated public io.vertigo.datamodel.data.model.DtList<E> lazyGet()
      Deprecated.
      This usage is discouraged : prefer explicit loading by using load() then get()
      Loads the value if needed.