Package com.ibm.fhir.schema.control
Class EnableForeignKey
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.DataModelVisitorBase
-
- com.ibm.fhir.schema.control.EnableForeignKey
-
- All Implemented Interfaces:
DataModelVisitor
public class EnableForeignKey extends DataModelVisitorBase
Visitor adapter used to disable all the foreign key constraints associated with partitioned tables in the schema. Expects any transaction handling to be performed outside this class.
-
-
Constructor Summary
Constructors Constructor Description EnableForeignKey(IDatabaseAdapter 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
-
EnableForeignKey
public EnableForeignKey(IDatabaseAdapter adapter)
Public constructor- Parameters:
adapter
-pdm
- the PhysicalDataModel used to identify the target tables of FK constraints
-
-
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
-
-