Package com.amazonaws.xray.sql
Class TracingStatement
- java.lang.Object
-
- com.amazonaws.xray.sql.TracingStatement
-
@Deprecated public class TracingStatement extends java.lang.ObjectDeprecated.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.CallableStatementdecorateCallableStatement(java.sql.CallableStatement statement, java.lang.String sql)Deprecated.CallcallableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql)to decorate yourCallableStatementin order to have the queries recorded with an X-Ray Subsegment.static java.sql.PreparedStatementdecoratePreparedStatement(java.sql.PreparedStatement statement, java.lang.String sql)Deprecated.CallpreparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql)to decorate yourPreparedStatementin order to have the queries recorded with an X-Ray Subsegment.static java.sql.StatementdecorateStatement(java.sql.Statement statement)Deprecated.Callstatement = TracingStatement.decorateStatement(statement)to decorate yourStatementin order to have the queries recorded with an X-Ray Subsegment.
-
-
-
Method Detail
-
decorateStatement
public static java.sql.Statement decorateStatement(java.sql.Statement statement)
Deprecated.Callstatement = TracingStatement.decorateStatement(statement)to decorate yourStatementin order to have the queries recorded with an X-Ray Subsegment. Do not use the method onPreparedStatementandCallableStatement. Use another two specific decorating method instead.- Parameters:
statement- the statement to decorate- Returns:
- a
Statementthat traces all SQL queries in X-Ray
-
decoratePreparedStatement
public static java.sql.PreparedStatement decoratePreparedStatement(java.sql.PreparedStatement statement, java.lang.String sql)Deprecated.CallpreparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql)to decorate yourPreparedStatementin order to have the queries recorded with an X-Ray Subsegment.- Parameters:
statement- thePreparedStatementto decoratesql- the sql query to execute- Returns:
- a
PreparedStatementthat traces all SQL queries in X-Ray
-
decorateCallableStatement
public static java.sql.CallableStatement decorateCallableStatement(java.sql.CallableStatement statement, java.lang.String sql)Deprecated.CallcallableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql)to decorate yourCallableStatementin order to have the queries recorded with an X-Ray Subsegment.- Parameters:
statement- theCallableStatementto decoratesql- the sql query to execute- Returns:
- a
CallableStatementthat traces all SQL queries in X-Ray
-
-