Interface MetaData.ForeignKeyInfo

Enclosing interface:
MetaData

public static interface MetaData.ForeignKeyInfo
  • Method Details

    • getUpdateRule

      int getUpdateRule()
      See DatabaseMetaData for constant values.

      What happens to foreign key when parent key is updated:

      • importedNoAction - do not allow update of parent key if it has been imported
      • importedKeyCascade - change imported key to agree with parent key update
      • importedKeySetNull - change imported key to NULL if its parent key has been updated
      • importedKeySetDefault - change imported key to default values if its parent key has been updated
      • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
    • getDeleteRule

      int getDeleteRule()
      See DatabaseMetaData for constant values.

      What happens to the foreign key when parent key is deleted.

      • importedKeyNoAction - do not allow delete of parent key if it has been imported
      • importedKeyCascade - delete rows that import a deleted key
      • importedKeySetNull - change imported key to NULL if its primary key has been deleted
      • importedKeyRestrict - same as importedKeyNoAction (for ODBC 2.x compatibility)
      • importedKeySetDefault - change imported key to default if its parent key has been deleted
    • getForeignKey

      MetaData.IndexInfo getForeignKey()
    • getPrimaryKey

      MetaData.IndexInfo getPrimaryKey()