Package com.amazonaws.xray.sql
Class TracingStatement
- java.lang.Object
-
- com.amazonaws.xray.sql.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.CallcallableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql)
to decorate yourCallableStatement
in 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.CallpreparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql)
to decorate yourPreparedStatement
in order to have the queries recorded with an X-Ray Subsegment.static java.sql.Statement
decorateStatement(java.sql.Statement statement)
Deprecated.Callstatement = TracingStatement.decorateStatement(statement)
to decorate yourStatement
in 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 yourStatement
in order to have the queries recorded with an X-Ray Subsegment. Do not use the method onPreparedStatement
andCallableStatement
. 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.CallpreparedStatement = TracingStatement.decoratePreparedStatement(preparedStatement, sql)
to decorate yourPreparedStatement
in order to have the queries recorded with an X-Ray Subsegment.- Parameters:
statement
- thePreparedStatement
to decoratesql
- 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.CallcallableStatement = TracingStatement.decorateCallableStatement(callableStatement, sql)
to decorate yourCallableStatement
in order to have the queries recorded with an X-Ray Subsegment.- Parameters:
statement
- theCallableStatement
to decoratesql
- the sql query to execute- Returns:
- a
CallableStatement
that traces all SQL queries in X-Ray
-
-