接口 Resultset

  • 所有超级接口:
    ProtocolEntity
    所有已知子接口:
    ResultSetInternalMethods
    所有已知实现类:
    NativeResultset, ResultSetImpl, UpdatableResultSet

    public interface Resultset
    extends ProtocolEntity
    Represents protocol specific result set, eg., for native protocol, a ProtocolText::Resultset or ProtocolBinary::Resultset entity. See: http://dev.mysql.com/doc/internals/en/com-query-response.html#packet-ProtocolText::Resultset http://dev.mysql.com/doc/internals/en/binary-protocol-resultset.html
    • 方法详细资料

      • setColumnDefinition

        void setColumnDefinition​(ColumnDefinition metadata)
        Sometimes the driver doesn't have metadata before consuming the result set rows (because it's cached), or need to coerce the metadata returned by queries into that required by the particular specification (eg metadata returned by metadata queries into that required by the JDBC specification). So it can call this to set it after the fact.
        参数:
        metadata - field-level metadata for the result set
      • hasRows

        boolean hasRows()
        Does the result set contain rows, or is it the result of a DDL or DML statement?
        返回:
        true if result set contains rows
      • initRowsWithMetadata

        void initRowsWithMetadata()
        Set metadata of this Resultset to ResultsetRows it contains.
      • getResultId

        int getResultId()
        The id (used when profiling) to identify us
        返回:
        result id
      • setNextResultset

        void setNextResultset​(Resultset nextResultset)
        参数:
        nextResultset - Sets the next result set in the result set chain for multiple result sets.
      • getNextResultset

        Resultset getNextResultset()
        Returns the next ResultSet in a multi-resultset "chain", if any, null if none exists.
        返回:
        the next Resultset
      • clearNextResultset

        void clearNextResultset()
        Clears the reference to the next result set in a multi-result set "chain".
      • getUpdateCount

        long getUpdateCount()
        Returns the update count for this result set (if one exists), otherwise -1.
        返回:
        return the update count for this result set (if one exists), otherwise -1.
      • getUpdateID

        long getUpdateID()
        Returns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
        返回:
        the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
      • getServerInfo

        String getServerInfo()
        Returns the server informational message returned from a DDL or DML statement (if any), or null if none.
        返回:
        the server informational message