File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\command\ddl\DeallocateProcedure.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.command.ddl;
8
9 import org.h2.command.CommandInterface;
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() {
25 session.removeProcedure(procedureName);
26 return 0;
27 }
28
29 public void setProcedureName(String name) {
30 this.procedureName = name;
31 }
32
33 public int getType() {
34 return CommandInterface.DEALLOCATE;
35 }
36
37 }
38