1 /*
2 * Created on 2003-6-20 17:04:01 by joel guo
3 *
4 * vTradEx Information Technology Inc.
5 */
6 package com.cyclops.dbdigger.model.base.database;
7 import com.cyclops.dbdigger.DBDigger;
8 import com.cyclops.dbdigger.model.DBObject1Metadata;
9 import com.cyclops.dbdigger.model.DefaultDatabase;
10 import com.cyclops.dbdigger.schema.Database;
11 import com.cyclops.dbdigger.schema.Schema;
12 import com.cyclops.dbdigger.schema.Table;
13 /*** Add description <font color="red">HERE</font>!
14 *
15 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a>
16 * @since 2003-6-20 17:04:01
17 */
18 public class BaseDefaultDatabase implements Database {
19 /*** Single instance */
20 public static final DefaultDatabase INSTANCE = new DefaultDatabase();
21 /*** Name of this Database */
22 public static final String NAME = "default";
23 /*** Description of this Database */
24 public static final String DESCRIPTION = "";
25 /*** C_FOO_OBJECT1S table meta*/
26 public static final DBObject1Metadata C_FOO_OBJECT1S =
27 DBObject1Metadata.INSTANCE;
28 /*** Override method getDescription() of super class
29 * @see com.cyclops.dbdigger.schema.Database#getDescription()
30 */
31 public String getDescription() {
32 return DefaultDatabase.DESCRIPTION;
33 }
34 /*** Override method getName() of super class
35 * @see com.cyclops.dbdigger.schema.Database#getName()
36 */
37 public String getName() {
38 return DefaultDatabase.NAME;
39 }
40 /*** Override method getSchema() of super class
41 * @see com.cyclops.dbdigger.schema.Database#getSchema()
42 */
43 public Schema getSchema() {
44 return DBDigger.getSchema();
45 }
46 /*** Override method getTable() of super class
47 * @see com.cyclops.dbdigger.schema.Database#getTable(java.lang.String)
48 */
49 public Table getTable(String tableName) {
50 return getSchema().getDatabase(getName()).getTable(tableName);
51 }
52 /*** Override method getTables() of super class
53 * @see com.cyclops.dbdigger.schema.Database#getTables()
54 */
55 public Table[] getTables() {
56 return getSchema().getDatabase(getName()).getTables();
57 }
58 }
This page was automatically generated by Maven