KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > schema > SchemaObject


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.schema;
6
7 import org.h2.engine.DbObject;
8
9 public abstract class SchemaObject extends DbObject {
10
11     private Schema schema;
12     
13     protected SchemaObject(Schema schema, int id, String JavaDoc name, String JavaDoc traceModule) {
14         super(schema.getDatabase(), id, name, traceModule);
15         this.schema = schema;
16     }
17     
18     public Schema getSchema() {
19         return schema;
20     }
21     
22     public String JavaDoc getSQL() {
23         return schema.getSQL() + "." + super.getSQL();
24     }
25     
26 }
27
Popular Tags