类 XProtocolRow

  • 所有已实现的接口:
    ProtocolEntity, Row

    public class XProtocolRow
    extends Object
    implements Row
    ProtocolEntity representing an X Protocol result row.
    • 方法详细资料

      • getValue

        public <T> T getValue​(int columnIndex,
                              ValueFactory<T> vf)
        从接口复制的说明: Row
        Retrieve a value for the given column. This is the main facility to access values from the Row involving ValueDecoder and ValueFactory chain. Metadata must be set via Row constructor or Row.setMetadata(ColumnDefinition) call before calling this method to allow correct columnIndex boundaries check and data type recognition.
        指定者:
        getValue 在接口中 Row
        类型参数:
        T - type to decode to
        参数:
        columnIndex - index of column to retrieve value from (0-indexed, not JDBC 1-indexed)
        vf - value factory used to create the return value after decoding
        返回:
        The return value from the value factory
      • getNull

        public boolean getNull​(int columnIndex)
        从接口复制的说明: Row
        Check whether a column is NULL and update the 'wasNull' status.
        指定者:
        getNull 在接口中 Row
        参数:
        columnIndex - of the column value (starting at 0) to check.
        返回:
        true if the column value is NULL, false if not.
      • wasNull

        public boolean wasNull()
        从接口复制的说明: Row
        Was the last value retrieved a NULL value?
        指定者:
        wasNull 在接口中 Row
        返回:
        true if the last retrieved value was NULL.