Oracle Reports
Java API Reference
10g (9.0.4)
B12019-01

oracle.reports.plugin.utility
Class Trace

java.lang.Object
  |
  +--oracle.reports.plugin.utility.Trace

public class Trace
extends java.lang.Object

Provides the Reports Trace utility. A plugin can use this utility to write its trace log to the Reports trace file.


Field Summary
static int ALL
           
static int APP
           
static int BRK
           
static int DEBUG
           
static int DST
           
static int END_PRF
           
static int ERROR
           
static int EXCEPT
           
static int INFO
           
static int LOG
           
static int PLS
           
static int PRF
           
static int SQL
           
static int START_PRF
           
static int STATE
           
static int TMS
           
static int WARNING
           

 

Constructor Summary
Trace(oracle.reports.utility.TraceHandler rwtrace)
          Constructor.

 

Method Summary
 void writeln(java.lang.Exception e)
          Writes an exception to the trace file.
 void writeln(int traceFlag, java.lang.String location, int messageId, java.lang.String message)
          Writes a trace message to the trace file.
 void writeln(int traceFlag, java.lang.String location, java.lang.String message)
          Writes a trace message to the trace file.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

PRF

public static final int PRF

BRK

public static final int BRK

APP

public static final int APP

PLS

public static final int PLS

SQL

public static final int SQL

TMS

public static final int TMS

DST

public static final int DST

LOG

public static final int LOG

ERROR

public static final int ERROR

INFO

public static final int INFO

DEBUG

public static final int DEBUG

WARNING

public static final int WARNING

STATE

public static final int STATE

EXCEPT

public static final int EXCEPT

START_PRF

public static final int START_PRF

END_PRF

public static final int END_PRF

ALL

public static final int ALL
Constructor Detail

Trace

public Trace(oracle.reports.utility.TraceHandler rwtrace)
Constructor. NOTE: A plugin must never try to create any Reports objects by itself.
Method Detail

writeln

public void writeln(java.lang.Exception e)
Writes an exception to the trace file.

writeln

public void writeln(int traceFlag,
                    java.lang.String location,
                    java.lang.String message)
Writes a trace message to the trace file.
Parameters:
traceFlag - The trace flag to indicate what this message is for. For example, profiling, debugging, error, warning, and so on.
location - The location of the trace message.
message - The trace message.

writeln

public void writeln(int traceFlag,
                    java.lang.String location,
                    int messageId,
                    java.lang.String message)
Writes a trace message to the trace file.
Parameters:
traceFlag - The trace flag to indicate what this message is for. For example, profiling, debugging, error, warning, and so on.
location - The location of the trace message.
messageId - The ID of the trace message.
message - The trace message.

Oracle Reports
Java API Reference

Copyright © 2003 Oracle Corporation. All Rights Reserved.