01: /*
02: * ObjectDropper.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.interfaces;
13:
14: import java.sql.SQLException;
15: import java.util.List;
16: import workbench.db.DbObject;
17: import workbench.db.TableIdentifier;
18: import workbench.db.WbConnection;
19:
20: /**
21: *
22: * @author support@sql-workbench.net
23: */
24: public interface ObjectDropper {
25: boolean supportsCascade();
26:
27: void setCascade(boolean flag);
28:
29: void setConnection(WbConnection con);
30:
31: void setObjectTable(TableIdentifier tbl);
32:
33: void setObjects(List<? extends DbObject> objects);
34:
35: List<? extends DbObject> getObjects();
36:
37: void dropObjects() throws SQLException;
38:
39: void cancel() throws SQLException;
40: }
|