Class AddForeignKey
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.model.DataModelVisitorBase
-
- org.linuxforhealth.fhir.schema.control.AddForeignKey
-
- All Implemented Interfaces:
DataModelVisitor
public class AddForeignKey extends DataModelVisitorBase
Visitor adapter used to add all the foreign key constraints associated with tables in the schema. Expects any transaction handling to be performed outside this class.
-
-
Constructor Summary
Constructors Constructor Description AddForeignKey(ISchemaAdapter adapter)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visited(Table fromChildTable, ForeignKeyConstraint fk)
Process a foreign key constraint from the model
-
-
-
Constructor Detail
-
AddForeignKey
public AddForeignKey(ISchemaAdapter adapter)
Public constructor- Parameters:
adapter
-
-
-
Method Detail
-
visited
public void visited(Table fromChildTable, ForeignKeyConstraint fk)
Description copied from interface:DataModelVisitor
Process a foreign key constraint from the model- Specified by:
visited
in interfaceDataModelVisitor
- Overrides:
visited
in classDataModelVisitorBase
-
-