01: /*
02: * WbEndBatch.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: import workbench.resource.ResourceMgr;
16: import workbench.sql.SqlCommand;
17: import workbench.sql.StatementRunnerResult;
18:
19: /**
20: * @author support@sql-workbench.net
21: */
22: public class WbEndBatch extends SqlCommand {
23: public static final String VERB = "WBENDBATCH";
24:
25: public WbEndBatch() {
26: }
27:
28: public String getVerb() {
29: return VERB;
30: }
31:
32: public StatementRunnerResult execute(String aSql)
33: throws SQLException, Exception {
34: StatementRunnerResult result = new StatementRunnerResult();
35: result.setSuccess();
36: result.addMessage(ResourceMgr
37: .getString("MsgJdbcBatchProcessingEnded"));
38: return result;
39: }
40:
41: }
|