Class AssociationSimpleDefinition
- java.lang.Object
-
- io.vertigo.core.node.definition.AbstractDefinition
-
- io.vertigo.datamodel.structure.definitions.association.AssociationDefinition
-
- io.vertigo.datamodel.structure.definitions.association.AssociationSimpleDefinition
-
- All Implemented Interfaces:
io.vertigo.core.node.definition.Definition
public final class AssociationSimpleDefinition extends AssociationDefinition
This class defines a simple association : 1-1 or 1-n. A simple association- Author:
- jcassignol, pchretien
-
-
Constructor Summary
Constructors Constructor Description AssociationSimpleDefinition(String name, String fkFieldName, AssociationNode associationNodeA, AssociationNode associationNodeB)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DtField
getFKField()
AssociationNode
getForeignAssociationNode()
AssociationNode
getPrimaryAssociationNode()
-
Methods inherited from class io.vertigo.datamodel.structure.definitions.association.AssociationDefinition
getAssociationNodeA, getAssociationNodeB
-
-
-
-
Constructor Detail
-
AssociationSimpleDefinition
public AssociationSimpleDefinition(String name, String fkFieldName, AssociationNode associationNodeA, AssociationNode associationNodeB)
Constructor.- Parameters:
name
- the name of the associationfkFieldName
- the fieldname that represents the foreign keyassociationNodeA
- the A node for this assocationassociationNodeB
- the B node for this assocation
-
-
Method Detail
-
getPrimaryAssociationNode
public AssociationNode getPrimaryAssociationNode()
- Returns:
- the key node
-
getForeignAssociationNode
public AssociationNode getForeignAssociationNode()
- Returns:
- the linked node
-
getFKField
public DtField getFKField()
- Returns:
- the field that supports the link
-
-