Interface ForeignKeyContributingSource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean createForeignKeyConstraint()
      Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).
      java.lang.String getExplicitForeignKeyName()
      Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
      boolean isCascadeDeleteEnabled()
      Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?
    • Method Detail

      • getExplicitForeignKeyName

        java.lang.String getExplicitForeignKeyName()
        Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
        Returns:
        The user supplied foreign key name.
      • createForeignKeyConstraint

        boolean createForeignKeyConstraint()
        Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).
        Returns:
        true if the FK constraint should be created, false if not.
      • isCascadeDeleteEnabled

        boolean isCascadeDeleteEnabled()
        Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?
        Returns:
        true, if the cascade delete is enabled; false, otherwise.