Class ForeignKeyConstraint


  • @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2023-12-06T11:25:47.362934Z[Etc/UTC]")
    public class ForeignKeyConstraint
    extends java.lang.Object
    Description of a foreign key constraint in a schema.
    • Constructor Detail

      • ForeignKeyConstraint

        public ForeignKeyConstraint()
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Name of the constraint, likely provided from the source
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • foreignFields

        public ForeignKeyConstraint foreignFields​(java.util.List<java.lang.String> foreignFields)
      • addForeignFieldsItem

        public ForeignKeyConstraint addForeignFieldsItem​(java.lang.String foreignFieldsItem)
      • getForeignFields

        @NotNull
        public @NotNull java.util.List<java.lang.String> getForeignFields()
        Fields the constraint maps to on the foreign dataset
        Returns:
        foreignFields
      • setForeignFields

        public void setForeignFields​(java.util.List<java.lang.String> foreignFields)
      • sourceFields

        public ForeignKeyConstraint sourceFields​(java.util.List<java.lang.String> sourceFields)
      • addSourceFieldsItem

        public ForeignKeyConstraint addSourceFieldsItem​(java.lang.String sourceFieldsItem)
      • getSourceFields

        @NotNull
        public @NotNull java.util.List<java.lang.String> getSourceFields()
        Fields the constraint maps to on the source dataset
        Returns:
        sourceFields
      • setSourceFields

        public void setSourceFields​(java.util.List<java.lang.String> sourceFields)
      • getForeignDataset

        @NotNull
        public @NotNull java.lang.String getForeignDataset()
        Reference to the foreign dataset for ease of lookup
        Returns:
        foreignDataset
      • setForeignDataset

        public void setForeignDataset​(java.lang.String foreignDataset)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object