1 5 package org.h2.api; 6 7 import java.sql.SQLException ; 8 import java.util.EventListener ; 9 10 15 16 public interface DatabaseEventListener extends EventListener { 17 18 int STATE_SCAN_FILE = 0, STATE_CREATE_INDEX = 1, STATE_RECOVER = 2; 19 20 27 void init(String url); 28 29 35 void diskSpaceIsLow(long stillAvailable) throws SQLException ; 36 37 42 void exceptionThrown(SQLException e); 43 44 52 void setProgress(int state, String name, int x, int max); 53 54 57 void closingDatabase(); 58 59 } 60 | Popular Tags |