Interface Keyable

All Known Implementing Classes:
BasicAttribute, ManyToOneAttribute

public interface Keyable
Contract that defines an attribute that can participate in a key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get whether the attribute is already participatig in a key.
    void
    setKey(boolean key)
    Set whether this attribute should or shouldn't participate as a key attribute.
  • Method Details

    • isKey

      boolean isKey()
      Get whether the attribute is already participatig in a key.
      Returns:
      true if the attribute is in the key; false otherwise
    • setKey

      void setKey(boolean key)
      Set whether this attribute should or shouldn't participate as a key attribute.
      Parameters:
      key - specifies if the attribute is part of the key