Class AssociationSimpleSketch

All Implemented Interfaces:
Sketch

public final class AssociationSimpleSketch extends AssociationSketch
This class defines a simple association : 1-1 or 1-n. A simple association
Author:
jcassignol, pchretien
  • Constructor Details

    • AssociationSimpleSketch

      public AssociationSimpleSketch(String name, String fkFieldName, AssociationSketchNode associationNodeA, AssociationSketchNode 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 AssociationSketchNode getPrimaryAssociationNode()
      Returns:
      the key node
    • getForeignAssociationNode

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

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