程序包 com.mysql.cj

接口 Query

    • 方法详细资料

      • getId

        int getId()
        Returns the query id used when profiling
        返回:
        id
      • checkCancelTimeout

        void checkCancelTimeout()
      • getCancelTimeoutMutex

        Object getCancelTimeoutMutex()
      • resetCancelledState

        void resetCancelledState()
      • closeQuery

        void closeQuery()
      • addBatch

        void addBatch​(Object batch)
      • getBatchedArgs

        List<Object> getBatchedArgs()
        Get the batched args as added by the addBatch method(s). The list is unmodifiable and might contain any combination of String, ClientPreparedQueryBindings, or ServerPreparedQueryBindings depending on how the parameters were batched.
        返回:
        an unmodifiable List of batched args
      • clearBatchedArgs

        void clearBatchedArgs()
      • getResultFetchSize

        int getResultFetchSize()
      • setResultFetchSize

        void setResultFetchSize​(int fetchSize)
      • getTimeoutInMillis

        int getTimeoutInMillis()
      • setTimeoutInMillis

        void setTimeoutInMillis​(int timeoutInMillis)
      • setExecuteTime

        void setExecuteTime​(long executeTime)
      • getExecuteTime

        long getExecuteTime()
        Returns the elapsed time for the server to execute the query.
        返回:
        the time it took for the server to execute the query.
      • getCurrentDatabase

        String getCurrentDatabase()
      • setCurrentDatabase

        void setCurrentDatabase​(String currentDb)
      • isClearWarningsCalled

        boolean isClearWarningsCalled()
      • setClearWarningsCalled

        void setClearWarningsCalled​(boolean clearWarningsCalled)
      • statementBegins

        void statementBegins()
      • stopQueryTimer

        void stopQueryTimer​(CancelQueryTask timeoutTask,
                            boolean rethrowCancelReason,
                            boolean checkCancelTimeout)