01: /*
02: * This is free software, licensed under the Gnu Public License (GPL)
03: * get a copy from <http://www.gnu.org/licenses/gpl.html>
04: *
05: * author: Henner Zeller <H.Zeller@acm.org>
06: */
07: package henplus.event;
08:
09: import henplus.SQLSession;
10: import java.util.EventListener;
11:
12: /**
13: * A Listener that is called by the CommandDispatcher
14: * whenever a command is executed.
15: */
16: public interface ExecutionListener extends EventListener {
17: /**
18: * called before an command is to be executed.
19: */
20: void beforeExecution(SQLSession session, String command);
21:
22: /**
23: * called after a command is executed.
24: */
25: void afterExecution(SQLSession session, String command, int result);
26: }
|