Interface TeiidStatement

    • Method Detail

      • getExecutionProperty

        String getExecutionProperty​(String name)
        Deprecated.
        use show statement
        Get the execution property value.
        Parameters:
        name - Execution property name
        Returns:
        Execution property value or null if not set
      • setExecutionProperty

        void setExecutionProperty​(String name,
                                  String value)
        Deprecated.
        use set statement
        Set the execution property value.
        Parameters:
        name - Execution property name
        value - Execution property value
      • getPlanDescription

        PlanNode getPlanDescription()
        Obtain the query plan object representation from the last command executed on this Statement, if a query plan was requested in the command. If no plan was requested, this method will return null.
        Returns:
        PlanNode representing the root of the query plan
      • getDebugLog

        String getDebugLog()
        Deprecated.
        use show statement
        Obtain the query planner debug log from the last command executed on this Statement, if it was requested with SHOWPLAN DEBUG. If no debug output was requested, this method will return null.
        Returns:
        Debug log or null if no log exists
      • getAnnotations

        Collection<Annotation> getAnnotations()
        Deprecated.
        use show statement
        Get collection of annotations from the query planner from the last command executed on the Statement
        Returns:
        Collection of Annotations, may return null
      • getRequestIdentifier

        String getRequestIdentifier()
        Get ID for last execution which can be used for matching up executions on the client side with executions in the server logs.
        Returns:
        String identifier for the last execution
      • setPayload

        void setPayload​(Serializable payload)
        Set the per-statement security payload. This optional payload will accompany each request to the data source(s) so that the connector will have access to it.

        To remove an existing payload from a statement, call this method with a null argument.

        Parameters:
        payload - The payload that is to accompany requests executed from this statement.
        Since:
        4.2
      • submitExecute

        void submitExecute​(String sql,
                           StatementCallback callback,
                           RequestOptions options)
                    throws SQLException
        Execute the given statement using a non-blocking callback. This method is only valid for use with embedded connections. Note that a single Statement may only have 1 asynch query executing at a time.
        Parameters:
        callback -
        options -
        Throws:
        SQLException