01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.command.ddl;
07:
08: import java.sql.SQLException;
09:
10: import org.h2.engine.Session;
11:
12: /**
13: * This class represents the statement
14: * DEALLOCATE
15: */
16: public class DeallocateProcedure extends DefineCommand {
17:
18: private String procedureName;
19:
20: public DeallocateProcedure(Session session) {
21: super (session);
22: }
23:
24: public int update() throws SQLException {
25: session.removeProcedure(procedureName);
26: return 0;
27: }
28:
29: public void setProcedureName(String name) {
30: this.procedureName = name;
31: }
32:
33: }
|