net.sf.farrago.util
Class FarragoWarningQueue

java.lang.Object
  extended by net.sf.farrago.util.FarragoWarningQueue

public class FarragoWarningQueue
extends Object

FarragoWarningQueue provides an implementation for objects such as Connection which store a queue of warnings.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/util/FarragoWarningQueue.java#6 $
Author:
John Sichi

Field Summary
private static Logger tracer
           
private  SQLWarning warnings
           
 
Constructor Summary
FarragoWarningQueue()
           
 
Method Summary
 void clearWarnings()
          Clears accumulated warnings.
 SQLWarning getWarnings()
          Retrieves warnings which have accumulated on this queue.
 void postWarning(SQLWarning warning)
          Posts a warning to this queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tracer

private static final Logger tracer

warnings

private SQLWarning warnings
Constructor Detail

FarragoWarningQueue

public FarragoWarningQueue()
Method Detail

getWarnings

public SQLWarning getWarnings()
Retrieves warnings which have accumulated on this queue. See Connection.getWarnings().

Returns:
warnings which have accumulated

clearWarnings

public void clearWarnings()
Clears accumulated warnings. See Connection.clearWarnings().


postWarning

public void postWarning(SQLWarning warning)
Posts a warning to this queue.

Parameters:
warning - a single warning to be posted; warning.getNextWarning() must be null on entry, since queue handles chaining itself