Class DatabaseKey

java.lang.Object
org.compiere.model.DatabaseKey

public class DatabaseKey extends Object
Database foreign or primary key
Author:
Elaine
  • Constructor Details

    • DatabaseKey

      public DatabaseKey(String keyName, String keyTable, String[] keyColumns, short deleteRule)
      Parameters:
      keyName -
      keyTable -
      keyColumns -
      deleteRule -
  • Method Details

    • getKeyName

      public String getKeyName()
      Returns:
      constraint name
    • setKeyName

      public void setKeyName(String keyName)
      Parameters:
      keyName -
    • getKeyTable

      public String getKeyTable()
      Returns:
      table name
    • setKeyTable

      public void setKeyTable(String keyTable)
      Parameters:
      keyTable - table name
    • getKeyColumns

      public String[] getKeyColumns()
      Returns:
      columns
    • setKeyColumns

      public void setKeyColumns(String[] keyColumns)
      Parameters:
      keyColumns -
    • getDeleteRule

      public short getDeleteRule()
      Returns:
      delete rule (no action, cascade, set null or prevent)
    • setDeleteRule

      public void setDeleteRule(short deleteRule)
      Parameters:
      deleteRule -