Class RowDescription.Field

java.lang.Object
io.r2dbc.postgresql.message.backend.RowDescription.Field
Enclosing class:
RowDescription

public static final class RowDescription.Field extends Object
The field within the RowDescription.
  • Constructor Details

    • Field

      public Field(short column, int dataType, int dataTypeModifier, short dataTypeSize, io.r2dbc.postgresql.message.Format format, String name, int table)
      Create a new message.
      Parameters:
      column - the attribute number of the column
      dataType - the object ID of the field's data type
      dataTypeModifier - the type modifier
      dataTypeSize - the data type size
      format - the format
      name - the field name
      table - the object ID of the table
      Throws:
      IllegalArgumentException - if format or name is null
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getColumn

      public short getColumn()
      Returns the attribute number of the column.
      Returns:
      the attribute number of the column
    • getDataType

      public int getDataType()
      Returns the object ID of the field's data type.
      Returns:
      the object ID of the field's data type
    • getDataTypeModifier

      public int getDataTypeModifier()
      Returns the type modifier.
      Returns:
      the type modifier
    • getDataTypeSize

      public short getDataTypeSize()
      Returns the data type size.
      Returns:
      the data type size
    • getFormat

      public io.r2dbc.postgresql.message.Format getFormat()
      Returns the format.
      Returns:
      the format
    • getName

      public String getName()
      Returns the field name.
      Returns:
      the field name
    • getTable

      public int getTable()
      Returns the object ID of the table.
      Returns:
      the object ID of the table
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object