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 Details

    • AssociationSimpleDefinition

      public AssociationSimpleDefinition(String name, String fkFieldName, AssociationNode associationNodeA, AssociationNode associationNodeB)
      Constructor.
      Parameters:
      name - the name of the association
      fkFieldName - the fieldname that represents the foreign key
      associationNodeA - the A node for this assocation
      associationNodeB - the B node for this assocation
  • Method Details

    • getPrimaryAssociationNode

      public AssociationNode getPrimaryAssociationNode()
      Returns:
      the key node
    • getForeignAssociationNode

      public AssociationNode getForeignAssociationNode()
      Returns:
      the linked node
    • getFKField

      public DataField getFKField()
      Returns:
      the field that supports the link