类 NativeResultset

    • 字段详细资料

      • columnDefinition

        protected ColumnDefinition columnDefinition
        The metadata for this result set
      • nextResultset

        protected Resultset nextResultset
      • resultId

        protected int resultId
        The id (used when profiling) to identify us
      • updateCount

        protected long updateCount
        How many rows were affected by UPDATE/INSERT/DELETE?
      • updateId

        protected long updateId
        Value generated for AUTO_INCREMENT columns
      • serverInfo

        protected String serverInfo
        Any info message from the server that was created while generating this result set (if 'info parsing' is enabled for the connection).
      • thisRow

        protected Row thisRow
        Pointer to current row data
    • 构造器详细资料

      • NativeResultset

        public NativeResultset()
      • NativeResultset

        public NativeResultset​(OkPacket ok)
        Create a result set for an executeUpdate statement.
        参数:
        ok - OkPacket
      • NativeResultset

        public NativeResultset​(ResultsetRows rows)
    • 方法详细资料

      • setColumnDefinition

        public void setColumnDefinition​(ColumnDefinition metadata)
        从接口复制的说明: Resultset
        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.
        指定者:
        setColumnDefinition 在接口中 Resultset
        参数:
        metadata - field-level metadata for the result set
      • hasRows

        public boolean hasRows()
        从接口复制的说明: Resultset
        Does the result set contain rows, or is it the result of a DDL or DML statement?
        指定者:
        hasRows 在接口中 Resultset
        返回:
        true if result set contains rows
      • getResultId

        public int getResultId()
        从接口复制的说明: Resultset
        The id (used when profiling) to identify us
        指定者:
        getResultId 在接口中 Resultset
        返回:
        result id
      • initRowsWithMetadata

        public void initRowsWithMetadata()
        从接口复制的说明: Resultset
        Set metadata of this Resultset to ResultsetRows it contains.
        指定者:
        initRowsWithMetadata 在接口中 Resultset
      • setNextResultset

        public void setNextResultset​(Resultset nextResultset)
        指定者:
        setNextResultset 在接口中 Resultset
        参数:
        nextResultset - Sets the next result set in the result set chain for multiple result sets.
      • getNextResultset

        public Resultset getNextResultset()
        从接口复制的说明: Resultset
        Returns the next ResultSet in a multi-resultset "chain", if any, null if none exists.
        指定者:
        getNextResultset 在接口中 Resultset
        返回:
        the nextResultSet, if any, null if none exists.
      • clearNextResultset

        public void clearNextResultset()
        We can't do this ourselves, otherwise the contract for Statement.getMoreResults() won't work correctly.
        指定者:
        clearNextResultset 在接口中 Resultset
      • getUpdateCount

        public long getUpdateCount()
        从接口复制的说明: Resultset
        Returns the update count for this result set (if one exists), otherwise -1.
        指定者:
        getUpdateCount 在接口中 Resultset
        返回:
        return the update count for this result set (if one exists), otherwise -1.
      • getUpdateID

        public long getUpdateID()
        从接口复制的说明: Resultset
        Returns the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
        指定者:
        getUpdateID 在接口中 Resultset
        返回:
        the AUTO_INCREMENT value for the DDL/DML statement which created this result set.
      • getServerInfo

        public String getServerInfo()
        从接口复制的说明: Resultset
        Returns the server informational message returned from a DDL or DML statement (if any), or null if none.
        指定者:
        getServerInfo 在接口中 Resultset
        返回:
        the server informational message