()
| 103 | } |
| 104 | |
| 105 | public void dropConfigs() throws Exception { |
| 106 | firePropertyChange(DatabaseMessage.DISCONNECT_NOW); |
| 107 | |
| 108 | dropTable(ListenPort.class); |
| 109 | dropTable(Server.class); |
| 110 | dropTable(Modification.class); |
| 111 | dropTable(SSLPassThrough.class); |
| 112 | |
| 113 | createTable(ListenPort.class, ListenPorts.getInstance()); |
| 114 | createTable(Server.class, Servers.getInstance()); |
| 115 | createTable(Modification.class, Modifications.getInstance()); |
| 116 | createTable(SSLPassThrough.class, SSLPassThroughs.getInstance()); |
| 117 | |
| 118 | firePropertyChange(DatabaseMessage.RECONNECT); |
| 119 | } |
| 120 | |
| 121 | public void dropPacketTableFaster() throws Exception { |
| 122 | Path src = Paths.get(instance.databasePath.getParent().toAbsolutePath().toString() + "/tmp.sqlite3"); |
no test coverage detected