Class MutableTraceAttributes

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<TraceAttributes.Entry>

    public class MutableTraceAttributes
    extends TraceAttributes
    Adding a new ConnectionAttribute should not necessitate any changes to this class.
    See Also:
    Serialized Form
    • Constructor Detail

      • MutableTraceAttributes

        public MutableTraceAttributes()
        Create a TraceAttributes with all values set to null.
    • Method Detail

      • set

        public void set​(TraceKey key,
                        java.lang.String value)
        Modifies the trace attributes value corresponding to the key and also, If key is not OracleTraceKey.SQL then both cached attributes are set to null. Otherwise (if key is OracleTraceKey.SQL): 1) if value is null and values[SQL_index] is not null, cached attributes are swapped 2) if value is not null and values[SQL_index] is not null, cachedImmutableCopy is set to null 3) if value is null and values[SQL_index] is null, cached attributes are swapped and if cachedImmutableCopy.values[SQL_index] is not equal to value, cachedImmutableCopy is set to null
        Parameters:
        key - key corresponding to the value to be modified
        value - the new value