Class ForeignKeyConstraint
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.model.Constraint
 - 
- com.ibm.fhir.database.utils.model.ForeignKeyConstraint
 
 
 
- 
public class ForeignKeyConstraint extends Constraint
Represents a FOREIGN KEY constraint referencing the primary key of a parent table 
- 
- 
Constructor Summary
Constructors Constructor Description ForeignKeyConstraint(String constraintName, boolean enforced, boolean self, String targetSchema, String targetTable, String targetColumnName, String... column)ForeignKeyConstraint(String constraintName, boolean enforced, String targetSchema, String targetTable, String targetColumnName, String... column) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(String schemaName, String name, String tenantColumnName, IDatabaseAdapter target)List<String>getColumns()Getter for the target schema nameStringgetQualifiedTargetName()StringgetTargetColumnName()returns the target column nameStringgetTargetSchema()Getter for the target schema nameStringgetTargetTable()Getter for the target table namebooleanisEnforced()Getter for the enforced boolean flagbooleanisSelf()- 
Methods inherited from class com.ibm.fhir.database.utils.model.Constraint
getConstraintName 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ForeignKeyConstraint
public ForeignKeyConstraint(String constraintName, boolean enforced, boolean self, String targetSchema, String targetTable, String targetColumnName, String... column)
- Parameters:
 constraintName-enforced-self-targetSchema-targetTable-targetColumName-column-
 
 - 
 
- 
Method Detail
- 
getTargetColumnName
public String getTargetColumnName()
returns the target column name- Returns:
 
 
- 
isSelf
public boolean isSelf()
 
- 
getTargetTable
public String getTargetTable()
Getter for the target table name- Returns:
 
 
- 
isEnforced
public boolean isEnforced()
Getter for the enforced boolean flag- Returns:
 
 
- 
getTargetSchema
public String getTargetSchema()
Getter for the target schema name- Returns:
 
 
- 
getQualifiedTargetName
public String getQualifiedTargetName()
 
- 
apply
public void apply(String schemaName, String name, String tenantColumnName, IDatabaseAdapter target)
- Parameters:
 name-target-
 
 - 
 
 -