Class AssociationSimpleDefinition
java.lang.Object
io.vertigo.core.node.definition.AbstractDefinition<AssociationSimpleDefinition>
io.vertigo.datamodel.data.definitions.association.AssociationDefinition<AssociationSimpleDefinition>
io.vertigo.datamodel.data.definitions.association.AssociationSimpleDefinition
- All Implemented Interfaces:
io.vertigo.core.node.definition.Definition
public final class AssociationSimpleDefinition
extends AssociationDefinition<AssociationSimpleDefinition>
This class defines a simple association : 1-1 or 1-n.
A simple association
- Author:
- jcassignol, pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationSimpleDefinition(String name, String fkFieldName, AssociationNode associationNodeA, AssociationNode associationNodeB) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class io.vertigo.datamodel.data.definitions.association.AssociationDefinition
getAssociationNodeA, getAssociationNodeBMethods inherited from class io.vertigo.core.node.definition.AbstractDefinition
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.node.definition.Definition
getName
-
Constructor Details
-
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 Details
-
getPrimaryAssociationNode
- Returns:
- the key node
-
getForeignAssociationNode
- Returns:
- the linked node
-
getFKField
- Returns:
- the field that supports the link
-