01: /*
02: * Connectable.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 workbench.db.ConnectionProfile;
15: import workbench.db.WbConnection;
16:
17: /**
18: *
19: * @author support@sql-workbench.net
20: */
21: public interface Connectable {
22: void connectCancelled();
23:
24: void connectBegin(ConnectionProfile profile);
25:
26: String getConnectionId(ConnectionProfile profile);
27:
28: void connectFailed(String error);
29:
30: void connected(WbConnection conn);
31:
32: void connectEnded();
33: }
|