1 | /* |
2 | * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, |
3 | * and the EPL 1.0 (http://h2database.com/html/license.html). |
4 | * Initial Developer: H2 Group |
5 | */ |
6 | package org.h2.engine; |
7 | |
8 | import org.h2.command.Prepared; |
9 | |
10 | /** |
11 | * Represents a procedure. Procedures are implemented for PostgreSQL |
12 | * compatibility. |
13 | */ |
14 | public class Procedure { |
15 | |
16 | private final String name; |
17 | private final Prepared prepared; |
18 | |
19 | public Procedure(String name, Prepared prepared) { |
20 | this.name = name; |
21 | this.prepared = prepared; |
22 | } |
23 | |
24 | public String getName() { |
25 | return name; |
26 | } |
27 | |
28 | public Prepared getPrepared() { |
29 | return prepared; |
30 | } |
31 | |
32 | } |