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: * $Id: SessionPropertyCommand.java,v 1.2 2005/06/18 04:58:13 hzeller Exp $
05: * author: Henner Zeller <H.Zeller@acm.org>
06: */
07: package henplus.commands.properties;
08:
09: import henplus.HenPlus;
10: import henplus.PropertyRegistry;
11:
12: /**
13: * handle session local properties.
14: */
15: public class SessionPropertyCommand extends AbstractPropertyCommand {
16: private final HenPlus _henplus;
17:
18: public SessionPropertyCommand(HenPlus henplus) {
19: _henplus = henplus;
20: }
21:
22: protected String getSetCommand() {
23: return "set-session-property";
24: }
25:
26: protected String getHelpHeader() {
27: return "SQL-connection specific";
28: }
29:
30: protected PropertyRegistry getRegistry() {
31: return _henplus.getCurrentSession().getPropertyRegistry();
32: }
33:
34: public boolean requiresValidSession(String cmd) {
35: return true;
36: }
37: }
38:
39: /*
40: * Local variables:
41: * c-basic-offset: 4
42: * compile-command: "ant -emacs -find build.xml"
43: * End:
44: */
|