Class StoreVAccessor<E extends Entity>

  • Type Parameters:
    E - the type of entity
    All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    EnumStoreVAccessor

    public class StoreVAccessor<E extends Entity>
    extends 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
    See Also:
    Serialized Form
    • Constructor Detail

      • 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)
        loadFunction - function that need to be applied to retrieve the targeted entity
    • Method Detail

      • load

        public void load()
        Loads the value if needed.