Class TracingStatement


  • @Deprecated
    public class TracingStatement
    extends java.lang.Object
    Deprecated.
    For internal use only.
    • Constructor Summary

      Constructors 
      Constructor Description
      TracingStatement()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.sql.CallableStatement decorateCallableStatement​(java.sql.CallableStatement statement, java.lang.String sql)
      Deprecated.
      Call callableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql) to decorate your CallableStatementin order to have the queries recorded with an X-Ray Subsegment.
      static java.sql.PreparedStatement decoratePreparedStatement​(java.sql.PreparedStatement statement, java.lang.String sql)
      Deprecated.
      Call preparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql) to decorate your PreparedStatement in order to have the queries recorded with an X-Ray Subsegment.
      static java.sql.Statement decorateStatement​(java.sql.Statement statement)
      Deprecated.
      Call statement = TracingStatement.decorateStatement(statement) to decorate your Statement in order to have the queries recorded with an X-Ray Subsegment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TracingStatement

        public TracingStatement()
        Deprecated.
    • Method Detail

      • decorateStatement

        public static java.sql.Statement decorateStatement​(java.sql.Statement statement)
        Deprecated.
        Call statement = TracingStatement.decorateStatement(statement) to decorate your Statement in order to have the queries recorded with an X-Ray Subsegment. Do not use the method on PreparedStatement and CallableStatement. Use another two specific decorating method instead.
        Parameters:
        statement - the statement to decorate
        Returns:
        a Statement that traces all SQL queries in X-Ray
      • decoratePreparedStatement

        public static java.sql.PreparedStatement decoratePreparedStatement​(java.sql.PreparedStatement statement,
                                                                           java.lang.String sql)
        Deprecated.
        Call preparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql) to decorate your PreparedStatement in order to have the queries recorded with an X-Ray Subsegment.
        Parameters:
        statement - the PreparedStatement to decorate
        sql - the sql query to execute
        Returns:
        a PreparedStatement that traces all SQL queries in X-Ray
      • decorateCallableStatement

        public static java.sql.CallableStatement decorateCallableStatement​(java.sql.CallableStatement statement,
                                                                           java.lang.String sql)
        Deprecated.
        Call callableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql) to decorate your CallableStatementin order to have the queries recorded with an X-Ray Subsegment.
        Parameters:
        statement - the CallableStatement to decorate
        sql - the sql query to execute
        Returns:
        a CallableStatement that traces all SQL queries in X-Ray