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

java.lang.Object
io.vertigo.datamodel.data.model.VAccessor<E>
io.vertigo.datastore.impl.entitystore.StoreVAccessor<E>
Type Parameters:
E - the type of entity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EnumStoreVAccessor

public class StoreVAccessor<E extends io.vertigo.datamodel.data.model.Entity> extends io.vertigo.datamodel.data.model.VAccessor<E>
This class is a way to access an entity 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
    StoreVAccessor(Class<E> clazz, String role)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    This usage is discouraged : prefer explicit loading by using load() then get()
    void
    Loads the value if needed.
    void
    Loads the value if needed.

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

    get, getId, getRole, getUID, isLoaded, set, setId, setUID

    Methods inherited from class java.lang.Object

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

    • StoreVAccessor

      public StoreVAccessor(Class<E> clazz, String role)
      Constructor.
      Parameters:
      clazz - the entity class
      role - the role of the association (case of multiple associations with the same entity)
  • Method Details

    • load

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

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

      @Deprecated public E lazyGet()
      Deprecated.
      This usage is discouraged : prefer explicit loading by using load() then get()
      Loads the value if needed.