File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\command\ddl\SchemaCommand.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.engine.Session;
10 import org.h2.schema.Schema;
11
12 /**
13 * This class represents a non-transaction statement that involves a schema.
14 */
15 public abstract class SchemaCommand extends DefineCommand {
16
17 private final Schema schema;
18
19 /**
20 * Create a new command.
21 *
22 * @param session the session
23 * @param schema the schema
24 */
25 public SchemaCommand(Session session, Schema schema) {
26 super(session);
27 this.schema = schema;
28 }
29
30 /**
31 * Get the schema
32 *
33 * @return the schema
34 */
35 protected Schema getSchema() {
36 return schema;
37 }
38
39 }
40