Class ForeignKeyConstraint


  • public class ForeignKeyConstraint
    extends Constraint
    Represents a FOREIGN KEY constraint referencing the primary key of a parent table
    • 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 -
      • ForeignKeyConstraint

        public ForeignKeyConstraint​(String constraintName,
                                    boolean enforced,
                                    String targetSchema,
                                    String targetTable,
                                    String targetColumnName,
                                    String... 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:
      • getColumns

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

        public String getQualifiedTargetName()