|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.test.TestBase
org.h2.test.db.TestListener
public class TestListener
Tests the DatabaseEventListener.
| Field Summary |
|---|
| Fields inherited from class org.h2.test.TestBase |
|---|
BASE_TEST_DIR, config, start, TEMP_DIR, uniqueId |
| Fields inherited from interface org.h2.api.DatabaseEventListener |
|---|
STATE_BACKUP_FILE, STATE_CREATE_INDEX, STATE_RECONNECTED, STATE_RECOVER, STATE_SCAN_FILE |
| Constructor Summary | |
|---|---|
TestListener()
|
|
| Method Summary | |
|---|---|
void |
closingDatabase()
This method is called before the database is closed normally. |
void |
exceptionThrown(java.sql.SQLException e,
java.lang.String sql)
This method is called if an exception occurred. |
void |
init(java.lang.String url)
This method is called just after creating the object. |
static void |
main(java.lang.String... a)
Run just this test. |
void |
opened()
This method is called after the database has been opened. |
void |
setProgress(int state,
java.lang.String name,
int current,
int max)
This method is called for long running events, such as recovering, scanning a file or building an index. |
void |
test()
This method will be called by the test framework. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestListener()
| Method Detail |
|---|
public static void main(java.lang.String... a)
throws java.lang.Exception
a - ignored
java.lang.Exception
public void test()
throws java.sql.SQLException
TestBase
test in class TestBasejava.sql.SQLException
public void exceptionThrown(java.sql.SQLException e,
java.lang.String sql)
DatabaseEventListener
exceptionThrown in interface DatabaseEventListenere - the exceptionsql - the SQL statement
public void setProgress(int state,
java.lang.String name,
int current,
int max)
DatabaseEventListener
setProgress in interface DatabaseEventListenerstate - the statename - the object namecurrent - the current positionmax - the highest valuepublic void closingDatabase()
DatabaseEventListener
closingDatabase in interface DatabaseEventListenerpublic void init(java.lang.String url)
DatabaseEventListener
init in interface DatabaseEventListenerurl - - the database URLpublic void opened()
DatabaseEventListener
opened in interface DatabaseEventListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||