接口 JdbcStatement

    • 字段详细资料

    • 方法详细资料

      • enableStreamingResults

        void enableStreamingResults()
                             throws SQLException
        Workaround for containers that 'check' for sane values of Statement.setFetchSize() so that applications can use the Java variant of libmysql's mysql_use_result() behavior.
        抛出:
        SQLException - if an error occurs
      • disableStreamingResults

        void disableStreamingResults()
                              throws SQLException
        Resets this statements fetch size and result set type to the values they had before enableStreamingResults() was called.
        抛出:
        SQLException - if an error occurs
      • setLocalInfileInputStream

        void setLocalInfileInputStream​(InputStream stream)
        Sets an InputStream instance that will be used to send data to the MySQL server for a "LOAD DATA LOCAL INFILE" statement rather than a FileInputStream or URLInputStream that represents the path given as an argument to the statement. This stream will be read to completion upon execution of a "LOAD DATA LOCAL INFILE" statement, and will automatically be closed by the driver, so it needs to be reset before each call to execute*() that would cause the MySQL server to request data to fulfill the request for "LOAD DATA LOCAL INFILE". If this value is set to NULL, the driver will revert to using a FileInputStream or URLInputStream as required.
        参数:
        stream - input stream
      • getLocalInfileInputStream

        InputStream getLocalInfileInputStream()
        Returns the InputStream instance that will be used to send data in response to a "LOAD DATA LOCAL INFILE" statement. This method returns NULL if no such stream has been set via setLocalInfileInputStream().
        返回:
        input stream
      • setPingTarget

        void setPingTarget​(PingTarget pingTarget)
      • removeOpenResultSet

        void removeOpenResultSet​(ResultSetInternalMethods rs)
        Callback for result set instances to remove them from the Set that tracks them per-statement
        参数:
        rs - result set
      • getOpenResultSetCount

        int getOpenResultSetCount()
        Returns the number of open result sets for this statement.
        返回:
        the number of open result sets for this statement
      • setHoldResultsOpenOverClose

        void setHoldResultsOpenOverClose​(boolean holdResultsOpenOverClose)
      • getQuery

        Query getQuery()
      • setAttribute

        void setAttribute​(String name,
                          Object value)
      • clearAttributes

        void clearAttributes()