1 package org.melati.courteouspoem.poem;
2
3 import org.melati.courteouspoem.poem.generated.CourteouspoemDatabaseBase;
4 import org.melati.poem.PoemException;
5
6
7
8
9 public class CourteouspoemDatabase extends CourteouspoemDatabaseBase
10 implements CourteouspoemDatabaseTables {
11
12
13
14 @Override
15 public void disconnect() throws PoemException {
16 beginStructuralModification();
17 try {
18 modifyStructure("DROP TABLE " + getGroupMembershipTable().quotedName());
19 modifyStructure("DROP TABLE " + getGroupCapabilityTable().quotedName());
20 modifyStructure("DROP TABLE " + getGroupTable().quotedName());
21 modifyStructure("DROP TABLE " + getColumnInfoTable().quotedName());
22 modifyStructure("DROP TABLE " + getTableInfoTable().quotedName());
23 modifyStructure("DROP TABLE " + getCapabilityTable().quotedName());
24 modifyStructure("DROP TABLE " + getTableCategoryTable().quotedName());
25 modifyStructure("DROP TABLE " + getUserTable().quotedName());
26 modifyStructure("DROP TABLE " + getSettingTable().quotedName());
27 }
28 finally {
29 endStructuralModification();
30 }
31 super.disconnect();
32 }
33
34 }
35
36