Package com.ibm.fhir.schema.control
Class DropForeignKey
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.DataModelVisitorBase
-
- com.ibm.fhir.schema.control.DropForeignKey
-
- All Implemented Interfaces:
DataModelVisitor
public class DropForeignKey extends DataModelVisitorBase
Visitor adapter used to drop 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 DropForeignKey(IDatabaseAdapter adapter, java.util.Set<Table> childTables)
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
-
DropForeignKey
public DropForeignKey(IDatabaseAdapter adapter, java.util.Set<Table> childTables)
Public constructor- Parameters:
adapter
-childTables
- set of childTable
objects collected along the way
-
-
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
-
-