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
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
ConstructorsConstructorDescriptionAssociationSimpleSketch(String name, String fkFieldName, AssociationSketchNode associationNodeA, AssociationSketchNode associationNodeB) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class io.vertigo.studio.notebook.domain.association.AssociationSketch
getAssociationNodeA, getAssociationNodeBMethods inherited from class io.vertigo.studio.notebook.AbstractSketch
getKey, getLocalName, toString
-
Constructor Details
-
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 Details
-
getPrimaryAssociationNode
- Returns:
- the key node
-
getForeignAssociationNode
- Returns:
- the linked node
-
getFKField
- Returns:
- the field that supports the link
-