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 void
apply(String schemaName, String name, String tenantColumnName, IDatabaseAdapter target)
List<String>
getColumns()
Getter for the target schema nameString
getQualifiedTargetName()
String
getTargetColumnName()
returns the target column nameString
getTargetSchema()
Getter for the target schema nameString
getTargetTable()
Getter for the target table nameboolean
isEnforced()
Getter for the enforced boolean flagboolean
isSelf()
-
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
-
-
-