Class Inherits

java.lang.Object
org.pgcodekeeper.core.schema.Inherits
All Implemented Interfaces:
IHashable

public class Inherits extends Object implements IHashable
Represents a table inheritance relationship in PostgreSQL. Contains the schema and table name of a parent table that is inherited by another table.
  • Constructor Details

    • Inherits

      public Inherits(String key, String value)
      Creates a new inheritance relationship.
      Parameters:
      key - the inherits key
      value - the inherits value
  • Method Details

    • getKey

      public String getKey()
    • getValue

      public String getValue()
    • getQualifiedName

      public String getQualifiedName()
      Gets the qualified name of the inherited table.
      Returns:
      the qualified table name in the format schema.table
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • computeHash

      public void computeHash(Hasher hasher)
      Description copied from interface: IHashable
      Computes the hash of the implementing object using the provided hasher. The implementation should call appropriate put methods on the hasher for all fields that should contribute to the hash value.
      Specified by:
      computeHash in interface IHashable
      Parameters:
      hasher - the hasher instance to use for hash computation
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object