public static interface TraceEventListener.TraceContext
TraceEventListener.roundTrip(Sequence, TraceContext, Object).
Provides limited ability to set state for the duration of the round trip.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
actualSqlText()
Return the SQL text the driver is sending to the database, if any.
|
DatabaseFunction |
databaseFunction()
Returns current roundtrip database function.
|
java.lang.String |
databaseOperation()
Returns a short String describing the purpose of the round trip, e.g.
|
java.lang.String |
getClientInfo(java.lang.String name)
Get a single client info value.
|
java.lang.String |
getConnectionId()
Returns the Connection id.
|
java.lang.String |
getSqlId()
Returns the SQL ID of the executing Statement.
|
java.lang.Boolean |
isCompletedExceptionally()
Returns true if this round trip completed exceptionally, in any way.
|
java.lang.String |
originalSqlText()
Returns the original SQL text the user code passed to the driver, if any.
|
void |
setClientInfo(java.lang.String name,
java.lang.String value)
Set the client info name, value pairs.
|
java.lang.String |
tenant()
Return the current tenant (PDB) ID.
|
java.lang.String |
user()
Return the current user ID.
|
java.lang.String getConnectionId()
nulljava.lang.String databaseOperation()
DatabaseFunction's descriptions.
This is the same as #databaseFunction().getDescription().java.lang.IllegalStateException - if the call to
TraceEventListener.roundTrip(Sequence, TraceContext, Object)
has ended.DatabaseFunction databaseFunction()
java.lang.IllegalStateException - if the call to
TraceEventListener.roundTrip(Sequence, TraceContext, Object)java.lang.String originalSqlText()
null.java.lang.String actualSqlText()
null.java.lang.String user()
null.java.lang.String tenant()
null.java.lang.String getSqlId()
OracleStatement.getSqlId().java.lang.Boolean isCompletedExceptionally()
void setClientInfo(java.lang.String name,
java.lang.String value)
throws java.sql.SQLClientInfoException
the - set of name, value pairs. Names must be namespace, key pairsjava.sql.SQLClientInfoException - if a name is of the wrong form or if the
namespace is not supportedjava.lang.String getClientInfo(java.lang.String name)
throws java.sql.SQLException
name - namespace, key pairjava.sql.SQLException - if the connection is closed