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 -
Method Summary
Methods inherited from class io.vertigo.datamodel.data.model.VAccessor
get, getId, getRole, getUID, isLoaded, set, setId, setUID
-
Constructor Details
-
StoreVAccessor
Constructor.- Parameters:
clazz- the entity classrole- 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.This usage is discouraged : prefer explicit loading by using load() then get()Loads the value if needed.
-