Class TestOpenClose.MyDatabaseEventListener

java.lang.Object
org.h2.test.db.TestOpenClose.MyDatabaseEventListener
All Implemented Interfaces:
EventListener, DatabaseEventListener
Enclosing class:
TestOpenClose

public static final class TestOpenClose.MyDatabaseEventListener extends Object implements DatabaseEventListener
A database event listener used in this test.
  • Constructor Details

    • MyDatabaseEventListener

      public MyDatabaseEventListener()
  • Method Details

    • exceptionThrown

      public void exceptionThrown(SQLException e, String sql)
      Description copied from interface: DatabaseEventListener
      This method is called if an exception occurred.
      Specified by:
      exceptionThrown in interface DatabaseEventListener
      Parameters:
      e - the exception
      sql - the SQL statement
    • setProgress

      public void setProgress(int state, String name, long current, long max)
      Description copied from interface: DatabaseEventListener
      This method is called for long running events, such as recovering, scanning a file or building an index.

      More states might be added in future versions, therefore implementations should silently ignore states that they don't understand.

      Specified by:
      setProgress in interface DatabaseEventListener
      Parameters:
      state - the state
      name - the object name
      current - the current position
      max - the highest possible value or 0 if unknown