net.sf.farrago.util
Class FarragoWarningQueue
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tracer
private static final Logger tracer
warnings
private SQLWarning warnings
FarragoWarningQueue
public FarragoWarningQueue()
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