Class AbstractResultsetRow

java.lang.Object
com.mysql.cj.protocol.result.AbstractResultsetRow
All Implemented Interfaces:
ProtocolEntity, ResultsetRow, Row
Direct Known Subclasses:
AbstractBufferRow, ByteArrayRow

public abstract class AbstractResultsetRow
extends java.lang.Object
implements ResultsetRow
  • Field Details

  • Constructor Details

  • Method Details

    • getValueFromBytes

      protected <T> T getValueFromBytes​(int columnIndex, byte[] bytes, int offset, int length, ValueFactory<T> vf)
      Get a value from a byte array. The byte array is interpreted by the ValueDecoder which uses the value factory create the return value.
      Type Parameters:
      T - value type
      Parameters:
      columnIndex - The (internal) index of the column
      bytes - byte array
      offset - offset into byte array
      length - length of value in byte array
      vf - value factory
      Returns:
      value
    • setMetadata

      public Row setMetadata​(ColumnDefinition f)
      Description copied from interface: Row
      Set metadata to enable getValue functionality.
      Specified by:
      setMetadata in interface Row
      Parameters:
      f - ColumnDefinition
      Returns:
      Row
    • wasNull

      public boolean wasNull()
      Description copied from interface: Row
      Was the last value retrieved a NULL value?
      Specified by:
      wasNull in interface Row
      Returns:
      true if the last retrieved value was NULL.