Class ListVAccessor<E extends Entity>
- java.lang.Object
-
- io.vertigo.datamodel.structure.model.ListVAccessor<E>
-
- Type Parameters:
E
- the type of the targetedEntity
- All Implemented Interfaces:
Serializable
public class ListVAccessor<E extends Entity> extends Object implements Serializable
This class is a way to access to a list of entities managed by a relationship. It's a kind of box (aka optional) that offers a small list of methods.- Author:
- mlaroche
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListVAccessor(Entity entity, String associationDefinitionName, String roleName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DtList<E>
get()
Loads the value if needed.<A extends DtListURIForAssociation>
AgetDtListURI()
String
getRole()
protected UID<E>
getSourceUID()
protected io.vertigo.core.node.definition.DefinitionReference<DtDefinition>
getTargetDefinitionReference()
boolean
isLoaded()
void
reset()
Loads the value if needed.void
set(DtList<E> dtList)
-
-
-
Method Detail
-
getDtListURI
public final <A extends DtListURIForAssociation> A getDtListURI()
- Returns:
- the entity uri
-
reset
public final void reset()
Loads the value if needed.
-
isLoaded
public final boolean isLoaded()
- Returns:
- if entity is already loaded
-
getRole
public final String getRole()
- Returns:
- Role of this relation
-
getTargetDefinitionReference
protected io.vertigo.core.node.definition.DefinitionReference<DtDefinition> getTargetDefinitionReference()
-
-