Class SQLUniqueConstraint

java.lang.Object
io.trino.hive.thrift.metastore.SQLUniqueConstraint
All Implemented Interfaces:
Serializable, Cloneable, Comparable<SQLUniqueConstraint>, org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>, org.apache.thrift.TSerializable

@Generated("Autogenerated by Thrift Compiler (0.17.0)") public class SQLUniqueConstraint extends Object implements org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>, Serializable, Cloneable, Comparable<SQLUniqueConstraint>
See Also:
  • Field Details

  • Constructor Details

    • SQLUniqueConstraint

      public SQLUniqueConstraint()
    • SQLUniqueConstraint

      public SQLUniqueConstraint(String catName, String table_db, String table_name, String column_name, int key_seq, String uk_name, boolean enable_cstr, boolean validate_cstr, boolean rely_cstr)
    • SQLUniqueConstraint

      public SQLUniqueConstraint(SQLUniqueConstraint other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public SQLUniqueConstraint deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • getCatName

      public String getCatName()
    • setCatName

      public SQLUniqueConstraint setCatName(String catName)
    • unsetCatName

      public void unsetCatName()
    • isSetCatName

      public boolean isSetCatName()
      Returns true if field catName is set (has been assigned a value) and false otherwise
    • setCatNameIsSet

      public void setCatNameIsSet(boolean value)
    • getTableDb

      public String getTableDb()
    • setTableDb

      public SQLUniqueConstraint setTableDb(String table_db)
    • unsetTableDb

      public void unsetTableDb()
    • isSetTableDb

      public boolean isSetTableDb()
      Returns true if field table_db is set (has been assigned a value) and false otherwise
    • setTableDbIsSet

      public void setTableDbIsSet(boolean value)
    • getTableName

      public String getTableName()
    • setTableName

      public SQLUniqueConstraint setTableName(String table_name)
    • unsetTableName

      public void unsetTableName()
    • isSetTableName

      public boolean isSetTableName()
      Returns true if field table_name is set (has been assigned a value) and false otherwise
    • setTableNameIsSet

      public void setTableNameIsSet(boolean value)
    • getColumnName

      public String getColumnName()
    • setColumnName

      public SQLUniqueConstraint setColumnName(String column_name)
    • unsetColumnName

      public void unsetColumnName()
    • isSetColumnName

      public boolean isSetColumnName()
      Returns true if field column_name is set (has been assigned a value) and false otherwise
    • setColumnNameIsSet

      public void setColumnNameIsSet(boolean value)
    • getKeySeq

      public int getKeySeq()
    • setKeySeq

      public SQLUniqueConstraint setKeySeq(int key_seq)
    • unsetKeySeq

      public void unsetKeySeq()
    • isSetKeySeq

      public boolean isSetKeySeq()
      Returns true if field key_seq is set (has been assigned a value) and false otherwise
    • setKeySeqIsSet

      public void setKeySeqIsSet(boolean value)
    • getUkName

      public String getUkName()
    • setUkName

      public SQLUniqueConstraint setUkName(String uk_name)
    • unsetUkName

      public void unsetUkName()
    • isSetUkName

      public boolean isSetUkName()
      Returns true if field uk_name is set (has been assigned a value) and false otherwise
    • setUkNameIsSet

      public void setUkNameIsSet(boolean value)
    • isEnableCstr

      public boolean isEnableCstr()
    • setEnableCstr

      public SQLUniqueConstraint setEnableCstr(boolean enable_cstr)
    • unsetEnableCstr

      public void unsetEnableCstr()
    • isSetEnableCstr

      public boolean isSetEnableCstr()
      Returns true if field enable_cstr is set (has been assigned a value) and false otherwise
    • setEnableCstrIsSet

      public void setEnableCstrIsSet(boolean value)
    • isValidateCstr

      public boolean isValidateCstr()
    • setValidateCstr

      public SQLUniqueConstraint setValidateCstr(boolean validate_cstr)
    • unsetValidateCstr

      public void unsetValidateCstr()
    • isSetValidateCstr

      public boolean isSetValidateCstr()
      Returns true if field validate_cstr is set (has been assigned a value) and false otherwise
    • setValidateCstrIsSet

      public void setValidateCstrIsSet(boolean value)
    • isRelyCstr

      public boolean isRelyCstr()
    • setRelyCstr

      public SQLUniqueConstraint setRelyCstr(boolean rely_cstr)
    • unsetRelyCstr

      public void unsetRelyCstr()
    • isSetRelyCstr

      public boolean isSetRelyCstr()
      Returns true if field rely_cstr is set (has been assigned a value) and false otherwise
    • setRelyCstrIsSet

      public void setRelyCstrIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(SQLUniqueConstraint._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • getFieldValue

      public Object getFieldValue(SQLUniqueConstraint._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • isSet

      public boolean isSet(SQLUniqueConstraint._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(SQLUniqueConstraint that)
    • hashCode

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

      public int compareTo(SQLUniqueConstraint other)
      Specified by:
      compareTo in interface Comparable<SQLUniqueConstraint>
    • fieldForId

      public SQLUniqueConstraint._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<SQLUniqueConstraint,SQLUniqueConstraint._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException