01: /*
02: * WbDisableOraOutput.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.sql.wbcommands;
13:
14: import java.sql.SQLException;
15:
16: import workbench.db.WbConnection;
17: import workbench.resource.ResourceMgr;
18: import workbench.sql.SqlCommand;
19: import workbench.sql.StatementRunnerResult;
20:
21: /**
22: *
23: * @author support@sql-workbench.net
24: */
25: public class WbDisableOraOutput extends SqlCommand {
26: public static final String VERB = "DISABLEOUT";
27:
28: public WbDisableOraOutput() {
29: }
30:
31: public String getVerb() {
32: return VERB;
33: }
34:
35: public StatementRunnerResult execute(String aSql)
36: throws SQLException {
37: StatementRunnerResult result = new StatementRunnerResult();
38: currentConnection.getMetadata().disableOutput();
39: result.addMessage(ResourceMgr
40: .getString("MsgDbmsOutputDisabled"));
41: return result;
42: }
43:
44: }
|