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.schema;
07:
08: import org.h2.engine.DbObjectBase;
09:
10: /**
11: * The base class for classes implementing SchemaObject.
12: */
13: public abstract class SchemaObjectBase extends DbObjectBase implements
14: SchemaObject {
15:
16: private Schema schema;
17:
18: protected SchemaObjectBase(Schema schema, int id, String name,
19: String traceModule) {
20: super (schema.getDatabase(), id, name, traceModule);
21: this .schema = schema;
22: }
23:
24: public Schema getSchema() {
25: return schema;
26: }
27:
28: public String getSQL() {
29: return schema.getSQL() + "." + super.getSQL();
30: }
31:
32: }
|