Class AssociationSimpleSketch
- java.lang.Object
-
- io.vertigo.studio.notebook.AbstractSketch
-
- io.vertigo.studio.notebook.domain.association.AssociationSketch
-
- io.vertigo.studio.notebook.domain.association.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
-
-
Field Summary
-
Fields inherited from interface io.vertigo.studio.notebook.Sketch
REGEX_SKETCH_NAME
-
-
Constructor Summary
Constructors Constructor Description AssociationSimpleSketch(String name, String fkFieldName, AssociationSketchNode associationNodeA, AssociationSketchNode associationNodeB)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DtSketchField
getFKField()
AssociationSketchNode
getForeignAssociationNode()
AssociationSketchNode
getPrimaryAssociationNode()
-
Methods inherited from class io.vertigo.studio.notebook.domain.association.AssociationSketch
getAssociationNodeA, getAssociationNodeB
-
Methods inherited from class io.vertigo.studio.notebook.AbstractSketch
getKey, getLocalName, toString
-
-
-
-
Constructor Detail
-
AssociationSimpleSketch
public AssociationSimpleSketch(String name, String fkFieldName, AssociationSketchNode associationNodeA, AssociationSketchNode 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 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
-
-