类 ByteArrayRow

    • 方法详细资料

      • isBinaryEncoded

        public boolean isBinaryEncoded()
      • getBytes

        public byte[] getBytes​(int index)
        从接口复制的说明: Row
        Returns the value at the given column as a byte array. The bytes represent the raw values returned by the server.
        参数:
        index - index of column (starting at 0) to return from.
        返回:
        the value for the given column; if the value is SQL NULL, the value returned is null
      • setBytes

        public void setBytes​(int index,
                             byte[] value)
        从接口复制的说明: Row
        Sets the given byte array as a raw column value (only works currently with ByteArrayRow).
        参数:
        index - index of the column (starting at 0) to set to.
        value - the (raw) value to set
      • getNull

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

        public <T> T getValue​(int columnIndex,
                              ValueFactory<T> vf)
        Implementation of getValue() based on the underlying byte array. Delegate to superclass for decoding.
        类型参数:
        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