Class 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​(java.lang.String constraintName, boolean enforced, boolean self, java.lang.String targetSchema, java.lang.String targetTable, java.lang.String targetColumnName, java.lang.String... column)  
      ForeignKeyConstraint​(java.lang.String constraintName, boolean enforced, java.lang.String targetSchema, java.lang.String targetTable, java.lang.String targetColumnName, java.lang.String... column)  
    • Constructor Detail

      • ForeignKeyConstraint

        public ForeignKeyConstraint​(java.lang.String constraintName,
                                    boolean enforced,
                                    boolean self,
                                    java.lang.String targetSchema,
                                    java.lang.String targetTable,
                                    java.lang.String targetColumnName,
                                    java.lang.String... column)
        Parameters:
        constraintName -
        enforced -
        self -
        targetSchema -
        targetTable -
        targetColumName -
        column -
      • ForeignKeyConstraint

        public ForeignKeyConstraint​(java.lang.String constraintName,
                                    boolean enforced,
                                    java.lang.String targetSchema,
                                    java.lang.String targetTable,
                                    java.lang.String targetColumnName,
                                    java.lang.String... column)
    • Method Detail

      • getTargetColumnName

        public java.lang.String getTargetColumnName()
        returns the target column name
        Returns:
      • isSelf

        public boolean isSelf()
      • getTargetTable

        public java.lang.String getTargetTable()
        Getter for the target table name
        Returns:
      • isEnforced

        public boolean isEnforced()
        Getter for the enforced boolean flag
        Returns:
      • getTargetSchema

        public java.lang.String getTargetSchema()
        Getter for the target schema name
        Returns:
      • getColumns

        public java.util.List<java.lang.String> getColumns()
        Getter for the target schema name
        Returns:
      • getQualifiedTargetName

        public java.lang.String getQualifiedTargetName()
      • apply

        public void apply​(java.lang.String schemaName,
                          java.lang.String name,
                          java.lang.String tenantColumnName,
                          IDatabaseAdapter target)
        Parameters:
        name -
        target -