Class SimpleColumn

java.lang.Object
org.pgcodekeeper.core.schema.SimpleColumn
All Implemented Interfaces:
Serializable, IHashable

public class SimpleColumn extends Object implements Serializable, IHashable
Represents a simple column reference with ordering and operator class information. Used primarily for index column definitions and similar contexts where column attributes like sorting, collation, and operator classes are needed.
See Also:
  • Constructor Details

    • SimpleColumn

      public SimpleColumn(String name)
  • Method Details

    • addOpClassParam

      public void addOpClassParam(String key, String value)
      Adds an operator class parameter.
      Parameters:
      key - the parameter key
      value - the parameter value
    • getOpClassParams

      public Map<String,String> getOpClassParams()
    • setCollation

      public void setCollation(String collation)
    • getCollation

      public String getCollation()
    • setOperator

      public void setOperator(String operator)
    • getOperator

      public String getOperator()
    • setOpClass

      public void setOpClass(String opClass)
    • getOpClass

      public String getOpClass()
    • setNullsOrdering

      public void setNullsOrdering(String nullsOrdering)
    • getNullsOrdering

      public String getNullsOrdering()
    • isDesc

      public boolean isDesc()
    • setDesc

      public void setDesc(boolean isDesc)
    • getName

      public String getName()
    • 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