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 |
getConnectionUrl()
Gets the connection URL.
|
java.lang.String |
getDatabaseName()
Gets the database name.
|
java.lang.String |
getInstanceName()
Gets the instance name.
|
long |
getNumRows()
Gets the number of rows returned.
|
java.lang.String |
getProtocol()
Gets the protocol.
|
java.lang.String |
getSchema()
Gets the schema.
|
java.lang.String |
getServerAddress()
Gets the server address.
|
java.lang.String |
getServerPID()
Gets the server process id.
|
int |
getServerPort()
Gets the server port.
|
java.lang.String |
getServiceName()
Gets the service name.
|
java.lang.String |
getSessionID()
Gets the session ID.
|
java.lang.String |
getShardName()
Gets the shard name.
|
java.lang.String |
getSqlId()
Returns the SQL ID of the executing Statement.
|
java.lang.String |
getSqlType()
When executing a statements gets the type of the SQL statement
|
java.lang.Throwable |
getThrowable()
If the round trip completed exceptionally, returns the throwable that
caused the exception.
|
java.lang.Boolean |
isCompletedExceptionally()
Returns true if this round trip completed exceptionally, in any way.
|
boolean |
isConnectionClosed()
Retrieves whether the connection has been closed.
|
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()
null.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 closedboolean isConnectionClosed()
java.lang.Throwable getThrowable()
java.lang.String getServiceName()
null.java.lang.String getInstanceName()
null.int getServerPort()
null.java.lang.String getServerAddress()
null.java.lang.String getProtocol()
null.java.lang.String getSchema()
null.java.lang.String getDatabaseName()
null.java.lang.String getSqlType()
null.java.lang.String getConnectionUrl()
null.java.lang.String getShardName()
null.java.lang.String getServerPID()
null.java.lang.String getSessionID()
null.long getNumRows()