Class 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 Detail

      • 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 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