| Modifier and Type | Field and Description |
|---|---|
| public static final int | STATE_BACKUP_FILE
This state is used during the BACKUP command. |
| public static final int | STATE_CREATE_INDEX
This state is used when re-creating an index. |
| public static final int | STATE_RECONNECTED
This state is used after re-connecting to a database (if auto-reconnect is enabled). |
| public static final int | STATE_RECOVER
This state is used when re-applying the transaction log or rolling back uncommitted transactions. |
| public static final int | STATE_SCAN_FILE
This state is used when scanning the database file. |
| public static final int | STATE_STATEMENT_END
This state is used when a query ends. |
| public static final int | STATE_STATEMENT_PROGRESS
This state is used for periodic notification during long-running queries. |
| public static final int | STATE_STATEMENT_START
This state is used when a query starts. |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | exceptionThrown(SQLException
the exception e, String the SQL statement sql)This method is called if an exception occurred. |
| public default void | |
| public default void | |
| public default void | setProgress(int
the state state, String the object name name, long the current position x, long the highest possible value or 0 if unknown max)This method is called for long running events, such as recovering, scanning a file or building an index. |
| STATE_BACKUP_FILE | back to summary |
|---|---|
| public static final int STATE_BACKUP_FILE This state is used during the BACKUP command. | |
| STATE_CREATE_INDEX | back to summary |
|---|---|
| public static final int STATE_CREATE_INDEX This state is used when re-creating an index. | |
| STATE_RECONNECTED | back to summary |
|---|---|
| public static final int STATE_RECONNECTED This state is used after re-connecting to a database (if auto-reconnect is enabled). | |
| STATE_RECOVER | back to summary |
|---|---|
| public static final int STATE_RECOVER This state is used when re-applying the transaction log or rolling back uncommitted transactions. | |
| STATE_SCAN_FILE | back to summary |
|---|---|
| public static final int STATE_SCAN_FILE This state is used when scanning the database file. | |
| STATE_STATEMENT_END | back to summary |
|---|---|
| public static final int STATE_STATEMENT_END This state is used when a query ends. | |
| STATE_STATEMENT_PROGRESS | back to summary |
|---|---|
| public static final int STATE_STATEMENT_PROGRESS This state is used for periodic notification during long-running queries. | |
| STATE_STATEMENT_START | back to summary |
|---|---|
| public static final int STATE_STATEMENT_START This state is used when a query starts. | |
| closingDatabase | back to summary |
|---|---|
| public default void closingDatabase() This method is called before the database is closed normally. It is safe to connect to the database and execute statements at this point, however the connection must be closed before the method returns. | |
| exceptionThrown | back to summary |
|---|---|
| public default void exceptionThrown(SQLException e, String sql) This method is called if an exception occurred.
| |
| init | back to summary |
|---|---|
| public default void init(String url) This method is called just after creating the object. This is done when opening the database if the listener is specified in the database URL, but may be later if the listener is set at runtime with the SET SQL statement.
| |
| opened | back to summary |
|---|---|
| public default void opened() This method is called after the database has been opened. It is safe to connect to the database and execute statements at this point. | |
| setProgress | back to summary |
|---|---|
| public default void setProgress(int state, String name, long x, long max) 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.
| |