Package io.vertigo.datamodel.data.model
Class ListVAccessor<E extends Entity>
java.lang.Object
io.vertigo.datamodel.data.model.ListVAccessor<E>
- Type Parameters:
E- the type of the targetedEntity
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorsConstructorDescriptionListVAccessor(Entity entity, String associationDefinitionName, String roleName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionget()Loads the value if needed.final <A extends DtListURIForAssociation>
Afinal StringgetRole()protected io.vertigo.core.node.definition.DefinitionId<DataDefinition> final booleanisLoaded()final voidreset()Loads the value if needed.void
-
Constructor Details
-
ListVAccessor
Constructor.- Parameters:
entity- the entityroleName- the role of the association (case of multiple associations with the same entity)
-
-
Method Details
-
getDtListURI
- Returns:
- the entity uri
-
get
Loads the value if needed. -
set
-
reset
public final void reset()Loads the value if needed. -
isLoaded
public final boolean isLoaded()- Returns:
- if entity is already loaded
-
getRole
- Returns:
- Role of this relation
-
getSourceUID
-
getTargetDefinitionReference
protected io.vertigo.core.node.definition.DefinitionId<DataDefinition> getTargetDefinitionReference()
-