org.openrdf.sesame.admin
Class DummyAdminListener

java.lang.Object
  extended byorg.openrdf.sesame.admin.DummyAdminListener
All Implemented Interfaces:
AdminListener

public class DummyAdminListener
extends Object
implements AdminListener

A dummy AdminListener that does absolutely nothing at all. This class is mainly meant for testing purposes where admin messages can be safely ignored.


Constructor Summary
DummyAdminListener()
          Creates a new DummyAdminListener object.
 
Method Summary
 void error(String msg, int lineNo, int columnNo, Statement stat)
          An error message with optionally line and column number and the statement to indicate the source of the error.
 void notification(String msg, int lineNo, int columnNo, Statement stat)
          A notification message (not an error) with optionally line and column number and the statement to indicate the source of the notification.
 void status(String msg, int lineNo, int columnNo)
          A status message with optional line and column number to indicate progress.
 void transactionEnd()
          Indicates the end of a transaction.
 void transactionStart()
          Indicates the start of a transaction.
 void warning(String msg, int lineNo, int columnNo, Statement stat)
          A warning message with optionally line and column number and the statement to indicate the source of the warning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyAdminListener

public DummyAdminListener()
Creates a new DummyAdminListener object.

Method Detail

transactionStart

public void transactionStart()
Description copied from interface: AdminListener
Indicates the start of a transaction.

Specified by:
transactionStart in interface AdminListener

transactionEnd

public void transactionEnd()
Description copied from interface: AdminListener
Indicates the end of a transaction.

Specified by:
transactionEnd in interface AdminListener

status

public void status(String msg,
                   int lineNo,
                   int columnNo)
Description copied from interface: AdminListener
A status message with optional line and column number to indicate progress.

Specified by:
status in interface AdminListener
Parameters:
msg - The status message.
lineNo - A line number, or -1 if unavailable or irrelevant.
columnNo - A column number, or -1 if unavailable or irrelevant.

notification

public void notification(String msg,
                         int lineNo,
                         int columnNo,
                         Statement stat)
Description copied from interface: AdminListener
A notification message (not an error) with optionally line and column number and the statement to indicate the source of the notification.

Specified by:
notification in interface AdminListener
Parameters:
msg - The notification message.
lineNo - A line number, or -1 if unavailable or irrelevant.
columnNo - A column number, or -1 if unavailable or irrelevant.
stat - The statement, or null if unavailable or irrelevant.

warning

public void warning(String msg,
                    int lineNo,
                    int columnNo,
                    Statement stat)
Description copied from interface: AdminListener
A warning message with optionally line and column number and the statement to indicate the source of the warning.

Specified by:
warning in interface AdminListener
Parameters:
msg - The warning message.
lineNo - A line number, or -1 if unavailable or irrelevant.
columnNo - A column number, or -1 if unavailable or irrelevant.
stat - The statement, or null if unavailable or irrelevant.

error

public void error(String msg,
                  int lineNo,
                  int columnNo,
                  Statement stat)
Description copied from interface: AdminListener
An error message with optionally line and column number and the statement to indicate the source of the error.

Specified by:
error in interface AdminListener
Parameters:
msg - The error message.
lineNo - A line number, or -1 if unavailable or irrelevant.
columnNo - A column number, or -1 if unavailable or irrelevant.
stat - The statement, or null if unavailable or irrelevant.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.